Skip to main content

Module mcp

Module mcp 

Source
Expand description

Zero-dependency Model Context Protocol (MCP) server over stdio (JSON-RPC 2.0).

Exposes a sandboxed Linux 7.x micro-VM to MCP clients (Claude Desktop, Claude Code, Cursor, Antigravity, OpenCode, nono-agent) with Copy-on-Write workspace diff/commit, counterfactual snapshot -> branch_exec, and Level-3 VMI process/audit inspection.

The VM is booted lazily on the first tool call so MCP initialize and tools/list respond in <5 ms without blocking client startup.

Functions§

run_mcp_stdio
Run the MCP server on process stdin / stdout (the standard MCP stdio transport).
run_mcp_with_io
Run the MCP JSON-RPC 2.0 server reading newline-delimited requests from reader and writing responses to writer. Shuts down the VM cleanly when reader reaches EOF.