src/cli/mcp.ts (+ mcp-rpc.ts) — Model Context Protocol server
Purpose
Section titled “Purpose”vx mcp exposes vx as a typed tool surface to AI agents (Claude Code,
Cursor, …) over stdio: workspace/task introspection, run history and
cache queries dispatched through internal JSON-RPC methods (the same
envelope the wire protocol commits to).
Invariants
Section titled “Invariants”- stdio transport for
vx mcp; the self-hosted platform ships a counterpart — an HTTPPOST /mcpendpoint behind its account/token gate, org/workspace-clamped (see the Cloud section of the docs). - Reports the real
VERSION; read-only against cache.db.