Claude Desktop
Put every MCP server in Claude Desktop behind a person's approval with one command: tools that only read run, every other tool call waits for a yes in your inbox or on your phone.
Claude Desktop starts the MCP servers listed in its settings file and lets Claude call their tools. It can ask you in its own window first, but it has no hook to send that question anywhere else: not to your phone, not to a teammate, and not past an “always allow” you clicked once. One command puts each of those servers behind VariantGate, so a tool call that changes something waits for a yes in your inbox, and tools that only read still run at once.
One command
With Node.js installed, run this in a terminal:
npx -y https://variantgate.com/sdk/variantgate-agent-0.15.0.tgz setup claude-desktopIt opens the browser to sign in (or to make a free account), you check a code and press Connect, and an agent key is saved on this computer, readable only by you. Then it rewrites Claude Desktop’s settings file so each server starts behind the MCP proxy, and keeps the file as it was beside it, as claude_desktop_config.json.<time>.bak. The file is here:
- macOS
- ~/Library/Application Support/Claude/claude_desktop_config.json
- Linux
- ~/.config/Claude/claude_desktop_config.json
Quit Claude Desktop completely, not only its window, and open it again. Claude sees the same tools as before; only what happens when it calls one has changed.
What changes in the file
Two servers, as their READMEs tell you to add them:
{
"mcpServers": {
"crm": {
"args": [
"/Users/you/crm-mcp/index.js"
],
"command": "node"
},
"filesystem": {
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/Users/you/Documents"
],
"command": "npx"
}
}
}After the command, each one starts through variantgate mcp-proxy, with the server’s own command after --. Its env and any other settings stay as they were:
{
"mcpServers": {
"crm": {
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.15.0.tgz",
"mcp-proxy",
"--name",
"crm",
"--",
"node",
"/Users/you/crm-mcp/index.js"
],
"command": "npx"
},
"filesystem": {
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.15.0.tgz",
"mcp-proxy",
"--name",
"filesystem",
"--look-only",
"read_file,read_text_file,read_media_file,read_multiple_files,list_directory,list_directory_with_sizes,directory_tree,search_files,get_file_info,list_allowed_directories",
"--",
"npx",
"-y",
"@modelcontextprotocol/server-filesystem",
"/Users/you/Documents"
],
"command": "npx"
}
}
}To see the result for your own file first, paste it into the MCP config checker: it shows the rewritten file in the browser, with keys written into it, servers with no fixed version and folders wider than the work.
When you run setup with an installed variantgate command instead of npx, the file starts it by its full path.
Which tools still run without asking
We have run 34 popular MCP servers and sorted every tool by what it can do, on our MCP server pages. When the command finds one of them in your file, by its npm or PyPI package or its container image, whatever version, it names that server’s reading tools with --look-only. For the filesystem server above those are read_file, read_text_file, read_media_file, read_multiple_files, list_directory, list_directory_with_sizes, directory_tree, search_files, get_file_info, list_allowed_directories. Every other tool asks, including one a later version of the server adds.
A server we have not sorted, such as your own crm, asks before every call. To let its reads through, add --look-only with their exact names before the --. The command does not trust a server’s own readOnlyHint: in our tests, tools marked read-only overwrote files and returned tokens.
Answering from anywhere
Each call is asked as mcp.SERVER.TOOL, such as mcp.filesystem.write_file, with the tool’s arguments shown in the request. Approve it in the inbox, by email, or from your phone with notifications on, and the call runs once. Deny it and Claude gets a tool error with your reason. Rules can answer the routine ones, such as allowing mcp.crm.add_note, and every answer stays on the record.
Most MCP clients give a tool call about a minute, so a call nobody has answered after 45 seconds tells Claude to call again; the request stays open, and the same call runs as soon as it is approved.
Undo
npx -y https://variantgate.com/sdk/variantgate-agent-0.15.0.tgz setup claude-desktop --undoThis puts every server that runs behind the proxy back on its own command, including any you put there by hand, and keeps the file before that as a .bak too. Add --print to either command to see the new file without changing anything.
Other MCP clients
- VS Code:
npx -y https://variantgate.com/sdk/variantgate-agent-0.15.0.tgz setup vscodedoes the same for the servers in your usermcp.json. See VS Code. - Any file that lists servers under
mcpServersorservers:setup mcp --file PATH, such as--file ~/.cursor/mcp.json. - Cursor and Claude Code have hooks, which cover their shell commands too: see Cursor and Claude Code.
Limits
- Connectors you add under Settings, which Claude reaches over the internet, are not in this file, so the proxy cannot stand in front of them. The command leaves any server with a
urlalone and says so. - A settings file with comments is not changed: the command says why and stops. A file that is a link to another file is not changed either; then the command prints the new file for you to save.
- The command works on macOS and Linux. On Windows it stops without changing anything, because a desktop app there cannot start
npxdirectly; we have not made that work yet. We checked the generated settings by starting them with the official MCP TypeScript SDK client, with the reference filesystem server behind the proxy.
Claude can also ask in the inbox on its own, before an action you describe, through our MCP connector. The proxy is different: it stops the tool call itself, whether or not Claude thought to ask.
Check that it works
Ask Claude to create a file with the filesystem server. A request appears in the inbox; deny it and check that the file is not there. Then ask again and approve it.