Skip to main content

Module mcp

Module mcp 

Source
Expand description

MCP (Model Context Protocol) server over stdio.

Implements the minimal MCP subset: initialize, tools/list, tools/call, and notifications/initialized. Communicates via newline-delimited JSON-RPC over stdin/stdout.

Functionsยง

run_mcp_server
Run the MCP server loop, reading JSON-RPC messages from stdin and writing responses to stdout. Each line is one JSON-RPC message.