Learn how to enable MCP and use MCPTool-enabled agents inside your AgentOS
enable_mcp=True
when creating your AgentOS instance:
/mcp
endpoint that provides:
MCPTools
allows your agents to connect to external MCP servers and use their capabilities.
When using MCPTools within AgentOS, the system handles the lifecycle automatically:
MCPTools
within AgentOS, you should not use reload=True
when serving your AgentOS.
This can break the MCP connection during the FastAPI lifecycle.