Skip to content

src/cli/mcp.ts (+ mcp-rpc.ts) — Model Context Protocol server

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).

  • stdio transport for vx mcp; the self-hosted platform ships a counterpart — an HTTP POST /mcp endpoint behind its account/token gate, org/workspace-clamped (see the Cloud section of the docs).
  • Reports the real VERSION; read-only against cache.db.