mod mcp

module mcp

MCP stdio surface. Each CLI workflow is a tool here, and so are the sandboxed recipe and easyblock tools.

Functions

fn handle_message(message: &Value) -> Option<Value>

Answer one JSON-RPC message. None for a notification, which takes no reply.

fn run_server<R: BufRead, W: Write>(reader: R, mut writer: W) -> std::io::Result<()>

Serve MCP over a line-delimited JSON-RPC stream until the reader ends.