Some tools are only exposed via MCP servers, so the Agentica Python SDK allows users to provide an MCP config for agents and agentic functions to use inside the REPL. This makes the Agentica Python SDK backwards compatible with things like VSCode, Cursor and Claude Code MCP configurations!
We provide backwards compatibility with MCP by turning MCP tools back into regular functions to be compatible with the Agentica SDK’s execution model.
We call this process un-MCP. Both remote and local MCP servers are connected to from your local machine meaning all sensitive information (e.g. API keys) is secure.
Below is an example of an agent and an agentic function that can use tools from the Playwright MCP server in their REPL.
from agentica import spawnfrom dataclasses import dataclass@dataclassclass Report: """ Args: name: The official company name. blurb: A 1-2 sentence description of the company's main business focus. """ name: str blurb: stragent = await spawn(premise="You are a helpful assistant.")report = await agent.call(Report, f"Create a report on Google.", mcp="./mcp-config.json")