mcp=True to serve an MCP endpoint at /mcp alongside the AgentOS REST API.
mcp_server.py
OPENAI_API_KEY, then run python mcp_server.py. The MCP endpoint is available at http://localhost:7777/mcp.
The default MCP surface provides eight tools for discovering registered components, running agents, teams, and workflows, continuing or cancelling paused runs, and reading session history.
Publish Selected Components
UseMCPConfig to publish selected components or custom callables as MCP tools:
Connect MCP Clients
Choose the connection method based on where the client runs.ChatGPT and Claude
Deploy AgentOS to a public HTTPS URL. In ChatGPT or Claude, open Settings → Connectors → Add custom connector and enter:AgentOSBuiltinAuth, set AGENTOS_URL to the exact public origin, leave the optional OAuth client ID and client secret fields empty, then enter MCP_CONNECT_SECRET on the consent page. See the built-in OAuth example.
Local MCP Clients
Run Agno Connect on the machine where Claude Code, Claude Desktop, Codex, or Cursor is installed:/mcp. The command also works with a local AgentOS, such as http://localhost:7777.