01 · live capture
MCP
Bridge 01 — MCP: tools and resources
- Handler
- services/superagent/src/superagent/handlers/mcp_handler.py
- Stack
- Python 3.11 · credential vault + auth cascade
- Surface
- Tools & Resources · SSE + stdio transports
The tool servers everyone already runs, composed into the run. The MCP handler speaks SSE and stdio, harvests capabilities from the live endpoint at registration, and routes every call through the credential vault with an auth cascade.
await handler.call_tool(agent_id="did:orcha:agent:finance-dashboard", capability_id="get_portfolio_dashboard", args={}, transport=transport) — one uniform call shape regardless of what ships underneath.
The harness doesn't care what protocol comes next. MCP is simply the first bridge: a subclass of AgentHandler, registered in middleware/pipeline.py, dispatch-mapped in emerge.yaml.