MCP Support
Overview
Connecting to MCP Servers
class ResearchAgent(Agent):
provider = "openai"
model = "gpt-4.1"
mcp_servers = [
# HTTP MCP server
{
"url": "https://mcp.example.com/server",
"transport": "http",
},
# Local MCP server via stdio
{
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"],
},
]Exposing a Django App as an MCP Server
MCP Transport
Transport
Use case
Error Handling
Last updated
Was this helpful?