Skip to content

chimera.mcp

chimera.mcp is the Model Context Protocol client. It launches MCP servers (over stdio or HTTP) and exposes their tools to a Chimera agent.

from chimera.mcp import (
MCPClient,
MCPToolSource,
from_config,
)
SymbolModulePurpose
MCPClientchimera.mcp.clientJSON-RPC 2.0 client. Lifecycle: initializelist_toolscall_toolshutdown.
MCPToolSourcechimera.mcp.toolsWraps an MCPClient so its tools appear as Chimera BaseTools.
from_config(config)chimera.mcpBuild an MCPClient from a .mcp.json server entry.

Transport implementations live in chimera.mcp.transport (stdio subprocess + HTTP+SSE).

Six MCP servers ship under chimera/mcp_servers/:

ServerModule
chimera-searchchimera.mcp_servers.search_server
chimera-reviewchimera.mcp_servers.review_server
chimera-testgenchimera.mcp_servers.testgen_server
chimera-migrationchimera.mcp_servers.migration_server
chimera-ragchimera.mcp_servers.rag_server
chimera-benchmarkchimera.mcp_servers.benchmark_server

All speak JSON-RPC 2.0 over stdin/stdout and follow the MCP spec.

  • Build a Plugin for declaring MCP servers in plugin.json / .mcp.json.