Skip to main content

Module mcp_server

Module mcp_server 

Source

Modules§

mcp_format_impls
Full-parameter MCP implementations for parse/serialize data-format tools.
mcp_stub_impls
Full implementations for MCP tools that previously returned tool_not_ready().
mcp_tool_impls
Full-parameter MCP tool implementations (cold path – serde JSON allowed).

Structs§

McpIntentFrame
RawToolPayload
Zero-deserialization view over an incoming tools/call byte buffer

Enums§

McpRuntimeState
Explicit operational states defining the execution boundaries
McpSystemError

Functions§

enforce_fiduciary_tool_dispatch⚠
Dispatches incoming tool actions without triggering dynamic heap allocations
handle_jsonrpc_message
Handle one JSON-RPC message — initialize, tools/list, tools/call, resources/list — returning the response text, or None for notifications/unparseable input (which get no reply).
parse_and_evaluate_mcp_stream⚠
The legacy raw-byte parser retained for compatibility with older tool-call callers.
scrub_transient_mcp_buffers⚠
Explicitly purges memory registers to prevent data harvesting
start_mcp_listener
Run the stdio MCP server with both optional tool families enabled.
start_mcp_listener_with_flags
Run the stdio MCP loop: one JSON-RPC message per stdin line, responses on stdout, until EOF. qpu_enabled/llm_enabled gate the optional tool families advertised/handled.