A minimal built-in Streamable HTTP MCP server, for tests and for operators
kicking the tyres on reactive setups. Hidden mode:
agentd --internal-mock-mcp-http <addr-file> <uri> [--no-emit].
The service pace registry behind a catalog entry’s rate:: one
process-global map, seeded at the from_spec chokepoint — the ONLY place
every process (reactor, turn worker, flat subagent) constructs its MCP
clients — so a rated catalog entry paces its consumers wherever the call
actually executes. Buckets are keyed by SERVICE name rather than by server,
so every server referencing one entry shares a single bucket per process.
Build an MCP client from a declared crate::config::McpServerSpec: resolve
its secret-free {{secret:…}} auth header templates (via auth) and connect
to the spec’s remote endpoint, stamping agentd’s client identity. The
config/auth-coupled counterpart of the crate’s transport-only
client::McpClient::connect. Call initialize on the result before use.