MCPTools.
When using MCPTools within AgentOS, the lifecycle is automatically managed. No need to manually connect or disconnect the MCPTools instance.
mcp_tools_example.py
This does not automatically refresh connections that are interrupted or restarted, you can use
refresh_connection to do so.If you are using
MCPTools within AgentOS, you should not use reload=True when serving your AgentOS.
This can break the MCP connection during the FastAPI lifecycle.