LatchkeyLatchkey
← Features

MCP agents and the approve gate

MCP agents

Agents and MCP tools should not inherit a whole .env. They ask; you approve; injection goes to the child process only.

Workflow

  1. Licence with MCP mode. Pro and up include MCP approval mode. latchkey login <licence>
  2. Register the MCP server. Point your IDE at npx -y @stitchaxis/latchkey@latest mcp with LATCHKEY_MCP_APPROVE=1
  3. Scope the repo. Only listed names in .latchkey.toml can be requested for that project
  4. Approve or deny in the prompt. A deny leaves the child without that value. An approve injects for that run

What you get

  • Same gate for CLI and MCP
  • Append-only audit of names and decisions
  • Cursor walkthrough: /integrations/cursor

Honest limit

Latchkey does not sandbox the child process. After approve, that process can still read its own environment.

Cursor + MCP setup

More use cases: Solo developer · CI leak scan · Team approvals · Leaked key response.