What is MCP?
MCP (Model Context Protocol) is a standard protocol for connecting AI agents to external data sources, tools, and services. Agent Chassis supports three transport methods:- Stdio - Local subprocess communication
- SSE - Server-Sent Events (remote HTTP)
- Streamable HTTP - HTTP-based streaming (remote)
Configuration
MCP servers are configured inmcp_config.json:
Stdio Transport (Local)
For local Node.js-based MCP servers:SSE Transport (Remote)
For remote MCP servers using Server-Sent Events:Streamable HTTP Transport (Remote)
For remote MCP servers using HTTP streaming:Built-in MCP Servers
Context7
Documentation search and library information:resolve-library-id- Find library IDsget-library-docs- Fetch documentation
Memory Server
Persistent memory/knowledge graph:create_entity- Create entities in knowledge graphsearch_entities- Search the knowledge graphupdate_entity- Update entity properties
Using MCP Tools
1. Tools are Auto-Discovered
When you start the server, MCP tools are automatically discovered and registered:2. Use Tools in Agent Requests
Include MCP tools inallowed_tools:
3. Tool Filtering
Restrict which tools are available per request:Hybrid Tooling
Agent Chassis seamlessly mixes MCP tools and local Python tools:Tool Translation
All tools (MCP and local) are automatically translated to OpenAI’s JSON Schema format:OAuth for MCP Servers
Some MCP servers require OAuth authentication. Configure OAuth tokens:OAUTH_TOKENS_PATH directory and automatically refreshed.
Troubleshooting
MCP Server Not Connecting
- Check server configuration in
mcp_config.json - Verify transport type matches server capabilities
- Check network connectivity for remote servers
- Review server logs for error messages
Tools Not Available
- Verify MCP server is loaded (check startup logs)
- Check
allowed_toolsincludes the tool name - Verify tool name matches exactly (case-sensitive)
Stdio Server Hanging
- Ensure Node.js is installed:
node --version - Check
npxis available:npx --version - Verify command and args are correct
Remote Server Authentication
- Check
headersconfiguration inmcp_config.json - Verify token is valid and not expired
- Ensure server supports the transport type
Best Practices
- Use local servers for development/testing
- Use remote servers for production (better reliability)
- Filter tools per request for security
- Monitor tool usage for rate limits
- Cache tool results when possible