Skip to main content

MCP integration

The sanvex/mcp package exposes Sanvex drivers as an MCP server for IDE agents and other MCP clients.

Install

Stdio server

Start the MCP server over stdin/stdout (one JSON-RPC message per line):
Use this with Claude Desktop, Cursor, or any MCP client that supports stdio transport.

HTTP SSE (optional)

Enable HTTP transport in .env:
Routes registered:

Available tools

Run script tool

RunScriptTool is disabled by default because it uses eval. Only enable in trusted environments:

Tenancy note

The bundled JsonRpcServer uses global resolveDriver() — no for($owner) path. Multi-tenant apps should handle owner context in application code or custom MCP tooling. See Tenancy.