Skip to main content

Module mcp

Module mcp 

Source

Modules§

auth
Auth material resolution for remote MCP endpoints (RFC 0012 §3.7).
client
MCP client over the Streamable HTTP transport. RFC 0004; RFC 0012 (no local process spawn).
elicit
Elicitation → ask_human: letting an MCP server ask the operator.
http
The MCP Streamable HTTP client transport (v2.0.0). RFC 0004 §transport.
mock_http
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].

Functions§

from_spec
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.