Skip to main content

Module mcp

Module mcp 

Source
Available on crate feature mcp only.
Expand description

faucet mcp — an MCP server over stdio (issue #420).

Reads newline-delimited JSON-RPC 2.0 messages from stdin and writes each response to stdout (one JSON object per line), dispatching through the shared crate::mcp handler. stdio is local-trust: there is no bearer / RBAC layer, so mutating tools require the explicit --allow-mutations flag.

Logs go to stderr (installed in run_main) so the stdout JSON-RPC stream stays clean.

Functions§

run