Add human approval to Claude Code with Contro1
Route selected Claude Code actions to a manager or other eligible reviewer before they run, with production deployment as a practical quickstart example.
Start here
Connect Claude Code with contro1 connect, add approvals for risky commands, and give Cursor the Contro1 MCP server. Exact commands and what you should see.
Updated Oct 21, 2026
Claude Code connects as its own agent with one command, which also adds the Contro1 MCP server; an approval hook then stops risky commands for a person. Cursor has no connect command: it runs the Contro1 MCP server locally and acts as you.
Coding assistants on your own computer. For: Claude Code, Cursor. Acts as: Claude Code: the agent itself. Cursor: you. Credential: Claude Code: a key in the Contro1 service. Cursor: your MCP sign-in.
Claude Code connects as its own agent with one command, which also adds the Contro1 MCP server; an approval hook then stops risky commands for a person. Cursor has no connect command: it runs the Contro1 MCP server locally and acts as you.
Claude Code on this computer becomes one Contro1 agent, named "Claude Code on <computer name>", with you as its accountable owner. A Contro1 service on the computer holds its key, which cannot be exported, so Claude Code never holds a credential. connect also registers the Contro1 MCP server with Claude Code for every folder.
| Step | What to do | What you should see |
|---|---|---|
| Install the Contro1 CLI | curl -fsSL https://contro1.com/install.sh | sh contro1 --version | The installer ends with "Installed contro1 to <folder>", and contro1 --version prints "contro1 version 0.2.29" or later. On Windows, if contro1 is not found, open a new terminal: the installer added it to your PATH. |
| Sign in to Contro1 on this computer | contro1 auth login | "Logged in as you@company.com (Org: <your organization>)". |
| Connect Claude Code | contro1 connect claude-code | The list includes "Register the Contro1 MCP server with Claude Code, for every folder: claude mcp add --scope user contro1 -- contro1 mcp serve --agent claude-code@<id>", then "Continue? [y/N]" and the administrator prompt. |
| Approve the agent as its owner | connect prints an approval link and waits up to 11 minutes. Open it and approve. A computer that is already connected skips this step: Contro1 reuses its agent. | "Approve at https://contro1.com/... Code: ABCD-EFGH", then "Approved.", "Configuring claude-code..." and "Checking each agent...". |
| Let connect add the MCP server, then restart Claude Code | claude mcp get contro1 | "Registered the Contro1 MCP server with Claude Code. New sessions load it; a session already open needs a restart." and "MCP connected: N actions available." claude mcp get contro1 shows "Scope: User config" and "Args: mcp serve --agent claude-code@<id>". In a restarted Claude Code, /mcp lists contro1 as connected. |
| Add the approval hook for risky commands | npm install -g @contro1/claude-code | Run contro1 connect claude-code again. The "Approvals for risky commands" line is gone, and it ends with "Try it: ask Claude Code to run a command that needs approval." |
| Check every line | contro1 doctor claude-code | The first line is "Contro1 doctor: claude-code is connected", and every check under it starts with ✓. A line marked ! or ✗ is followed by "Next (you): <command>". Run that command. |
| Try it | In a test project whose package.json has "deploy": "echo deployed", ask Claude Code to run npm run deploy. | Claude Code waits with "Waiting for approval in Contro1", and a request appears in Contro1. Approve it and the command runs. Reject it and Claude Code is told it was denied. |
| Optional: report every tool call | contro1 mcp endpoint | contro1 mcp endpoint prints one line such as unix:///... or npipe:////./pipe/.... After the next session, each tool call appears in the agent's traces in Contro1. With --fail-closed, a tool whose start could not be recorded is blocked (exit code 2). |
Once per computer. The installer downloads the contro1 program from its official GitHub releases. You can read it first at https://contro1.com/install.sh (PowerShell: https://contro1.com/install.ps1).
What you should see: The installer ends with "Installed contro1 to <folder>", and contro1 --version prints "contro1 version 0.2.29" or later. On Windows, if contro1 is not found, open a new terminal: the installer added it to your PATH.
A browser opens on a Contro1 approval page. Approve it with your Contro1 account.
What you should see: "Logged in as you@company.com (Org: <your organization>)".
connect lists every change before it makes any: the local Contro1 service, the settings file ~/.contro1/claude-code.env that the approval hook reads, and the Contro1 MCP server for Claude Code at user scope, so it works in every folder.
At "Continue? [y/N]" type y. It then asks once for administrator approval, to register the agent key with the Contro1 service: a Windows administrator prompt, or your password on macOS and Linux.
What you should see: The list includes "Register the Contro1 MCP server with Claude Code, for every folder: claude mcp add --scope user contro1 -- contro1 mcp serve --agent claude-code@<id>", then "Continue? [y/N]" and the administrator prompt.
connect prints an approval link and waits up to 11 minutes. Open it and approve. A computer that is already connected skips this step: Contro1 reuses its agent.
What you should see: "Approve at https://contro1.com/... Code: ABCD-EFGH", then "Approved.", "Configuring claude-code..." and "Checking each agent...".
Nothing to type: this is the end of the same run. connect runs claude mcp add itself, then calls the server through the agent's own endpoint. A Claude Code window that was already open does not see the new server until you restart it.
What you should see: "Registered the Contro1 MCP server with Claude Code. New sessions load it; a session already open needs a restart." and "MCP connected: N actions available." claude mcp get contro1 shows "Scope: User config" and "Args: mcp serve --agent claude-code@<id>". In a restarted Claude Code, /mcp lists contro1 as connected.
connect cannot install this, so until it is there the end of connect says "But it is not working end to end yet" and names it. The hook asks a person in Contro1 before Claude Code runs a matching command, and needs no key: on a connected computer it finds the connection by itself.
Install it, then add it to ~/.claude/settings.json, merged with what is already there.
What you should see: Run contro1 connect claude-code again. The "Approvals for risky commands" line is gone, and it ends with "Try it: ask Claude Code to run a command that needs approval."
doctor checks the Contro1 service, the agent's mapping and private endpoint, an approval round trip (a preview, nothing is created), the MCP server entry and a live MCP call.
What you should see: The first line is "Contro1 doctor: claude-code is connected", and every check under it starts with ✓. A line marked ! or ✗ is followed by "Next (you): <command>". Run that command.
In a test project whose package.json has "deploy": "echo deployed", ask Claude Code to run npm run deploy.
What you should see: Claude Code waits with "Waiting for approval in Contro1", and a request appears in Contro1. Approve it and the command runs. Reject it and Claude Code is told it was denied.
contro1 activity hook reports each Claude Code tool call to Contro1 from outside the model, one session per trace. On a connected computer it needs the agent's local endpoint, which contro1 mcp endpoint prints. Put that value in the hook command with --broker-endpoint.
What you should see: contro1 mcp endpoint prints one line such as unix:///... or npipe:////./pipe/.... After the next session, each tool call appears in the agent's traces in Contro1. With --fail-closed, a tool whose start could not be recorded is blocked (exit code 2).
There is no contro1 connect cursor. Cursor gets the Contro1 MCP server by running contro1 mcp serve as a local server, signed in as you. It can then list and run the Actions you may use, every call checked by Contro1 and recorded as yours.
Adding the remote address https://api.contro1.com/api/centcom/mcp directly in Cursor does not work today. Cursor's sign-in returns to a cursor:// address, which Contro1 refuses because the code would only reach the computer that opened the link. Use the local server below.
| Step | What to do | What you should see |
|---|---|---|
| Install the Contro1 CLI | curl -fsSL https://contro1.com/install.sh | sh contro1 --version | The installer ends with "Installed contro1 to <folder>", and contro1 --version prints "contro1 version 0.2.29" or later. On Windows, if contro1 is not found, open a new terminal: the installer added it to your PATH. |
| Sign the MCP connection in as you | contro1 mcp login --execute | "To connect, open this address on any device and approve: https://contro1.com/connect-app and enter the code: ABCD-EFGH". After you approve: "MCP connected for profile default (mcp:whoami, ..., mcp:actions:execute)." and "See or disconnect it anytime in Contro1: Settings > Connected apps." |
| Add Contro1 to Cursor | { "mcpServers": { "contro1": { "command": "contro1", "args": ["mcp", "serve"] } } } | In Cursor Settings, the MCP section (Tools & MCP in recent versions) lists contro1 as enabled, with its tools. |
| Try it | In Cursor's chat, ask: "Who am I in Contro1?" | Cursor calls the whoami tool, which names you and your organization. Ask it to list the Actions it can use, and it calls list_actions. |
Once per computer. The installer downloads the contro1 program from its official GitHub releases. You can read it first at https://contro1.com/install.sh (PowerShell: https://contro1.com/install.ps1).
What you should see: The installer ends with "Installed contro1 to <folder>", and contro1 --version prints "contro1 version 0.2.29" or later. On Windows, if contro1 is not found, open a new terminal: the installer added it to your PATH.
This gives the local Contro1 MCP server a sign-in of its own, separate from contro1 auth login. --execute asks for permission to run Actions; without it the connection can only read and preview.
It shows a code and opens the approval page. You can approve on this computer or on any other device, such as your phone. On the page, check that "Run Actions as you" is ticked, then press Approve.
What you should see: "To connect, open this address on any device and approve: https://contro1.com/connect-app and enter the code: ABCD-EFGH". After you approve: "MCP connected for profile default (mcp:whoami, ..., mcp:actions:execute)." and "See or disconnect it anytime in Contro1: Settings > Connected apps."
Put this in ~/.cursor/mcp.json for every project, or in .cursor/mcp.json inside one project. Merge it with any servers already there.
What you should see: In Cursor Settings, the MCP section (Tools & MCP in recent versions) lists contro1 as enabled, with its tools.
In Cursor's chat, ask: "Who am I in Contro1?"
What you should see: Cursor calls the whoami tool, which names you and your organization. Ask it to list the Actions it can use, and it calls list_actions.
A connected agent starts with nothing. It can ask people for approval and report what it did. To use an application such as Gmail, two things happen in Contro1:
No. After contro1 connect claude-code the key stays in the Contro1 service on the computer. The MCP server and the approval hook both reach Contro1 through the agent's private local endpoint.
No. Cursor runs contro1 mcp serve as a local MCP server, signed in with contro1 mcp login --execute, and acts as you. It is not registered as its own agent with a key in the Contro1 service.
Cursor's sign-in sends the authorization code to a cursor:// address on the same computer. Contro1 refuses loopback and private-scheme addresses, because the person approving is often on a different device. The local server signs in with a code instead, which works from any device.
Route selected Claude Code actions to a manager or other eligible reviewer before they run, with production deployment as a practical quickstart example.
Install and use the contro1 CLI to register AI agents, create approval requests, push AI inventory, retrieve evidence and traces, and test workflows before using the SDK or API.
Know which agent did what: identity from the credential, sub-agents that register themselves, one trace per run with every tool call, hooks and OpenTelemetry that report without relying on the model, and HMAC-signed evidence.
Choose the applications your organization approves, decide who may do what, and connect one MCP. Every person and agent gets exactly their access, and every action is recorded on their name.