Configuration
Addmcp_servers to any agent in config/agents.yaml:
How It Works
- Agent container reads
MCP_SERVERSfrom environment (set by the runtime) MCPClientlaunches each server subprocess via stdio transport- MCP protocol handshake discovers available tools and their schemas
- Tools are registered in
SkillRegistrywith OpenAI function-calling format - LLM tool calls route through
MCPClient.call_tool()to the correct server - Name conflicts with built-in skills are resolved by prefixing (
mcp_{server}_{tool})
Server Config Options
| Field | Type | Description |
|---|---|---|
name | string | Server identifier (used for logging and conflict prefixes) |
command | string | Command to launch the server |
args | list | Command-line arguments (optional) |
env | dict | Environment variables for the server process (optional) |
