Cursor
Connect Cursor to LatchGate so every tool call goes through the execution security kernel.
Prerequisites
Section titled “Prerequisites”- LatchGate running (
latchgate upor production deployment) latchgate-mcpbinary on PATH (from GitHub Releases orbrew install latchgate-ai/tap/latchgate)
Automatic setup
Section titled “Automatic setup”latchgate-mcp install --ide cursorThis writes the MCP server entry to ~/.cursor/mcp.json. Restart Cursor to pick up the configuration.
Preview first without writing:
latchgate-mcp install --ide cursor --dry-runManual setup
Section titled “Manual setup”Add to ~/.cursor/mcp.json:
{ "mcpServers": { "latchgate": { "command": "/usr/local/bin/latchgate-mcp", "args": ["serve", "--gate-url", "http://localhost:3000"], "env": { "LATCHGATE_AGENT_ID": "cursor", "RUST_LOG": "warn" } } }}Adjust the binary path if installed elsewhere. Use which latchgate-mcp to find it.
End-to-end verification
Section titled “End-to-end verification”- Start LatchGate:
latchgate up - Install config:
latchgate-mcp install --ide cursor - Restart Cursor.
- Open a project and ask the agent to perform an HTTP request.
- Verify the audit trail:
latchgate audit --limit 5 - Confirm the full pipeline: lease => policy => WASM sandbox => receipt.
Production (UDS transport)
Section titled “Production (UDS transport)”Replace --gate-url with UDS + public base URL for production:
{ "mcpServers": { "latchgate": { "command": "/usr/local/bin/latchgate-mcp", "args": ["serve", "--public-base-url", "http://localhost:3000"], "env": { "LATCHGATE_AGENT_ID": "cursor", "RUST_LOG": "warn" } } }}For production hardening with UDS transport, see Deployment.