Configuration
Transport Types
Three transport types are supported:| Transport | Use case |
|---|---|
stdio | Local servers — spawns a child process, communicates over stdin/stdout |
http | Remote servers via Streamable HTTP (recommended for production) |
sse | Remote servers via Server-Sent Events (legacy) |
Tool Namespacing
When multiple MCP servers are configured, tools are namespaced asserverName_toolName to avoid collisions. With a single server, tool names are used as-is.
Lazy Connection
MCP connections are established lazily on the firstrun() call and cached for the agent’s lifetime. This follows the same pattern as skills discovery. Always call agent.close() when done to clean up connections.