Desktop Commander MCP tools: why its limits are not limits, and how to make your agent ask

All 25 tools of Desktop Commander (0.3.4), checked by running it: why allowedDirectories does not limit its shell, which spellings get past blockedCommands, how the model can lift both limits itself, what its telemetry sends by default, and the Claude Code settings that make the rest ask.

Checked on by running @wonderwhy-er/desktop-commander 0.3.4 (npm, run with node) from wonderwhy-er/DesktopCommanderMCP and reading its tools/list answer. Each tier is the tool risk checker’s reading, with our reason wherever we changed it. Written by the people who make VariantGate.

The short answer

It is a shell: start_process can do anything your user can, and allowedDirectories and blockedCommands are settings the model can change. Run it in a container with only the project mounted and telemetry off; 8 of its 25 tools can then run on their own, 3 more that read file contents can join them, and every command asks.

Can run on their own
8
Should ask a person
17

Which server this is

Desktop Commander is a community server by Eduards Ruzga, on npm as @wonderwhy-er/desktop-commander. We ran 0.3.4 with node, its home folder pointed at a scratch folder and its config written first: telemetry off, allowedDirectories set to one folder, and the 33 default blockedCommands. It offered 25 tools in every run, with no read-only mode and no flag that removes tools. Its main tool, start_process, runs any shell command as you, so the model can do anything your user account can.

allowedDirectories limits files, not the shell

write_file, read_file and start_search refused a path outside the allowed folder. start_process then ran echo x > outside/file1, and JavaScript sent to its node:local mode wrote there too. The README says the setting does not cover terminal commands. A new config leaves it empty, which means every folder, so the file reads that return contents ask here.

blockedCommands reads names, and some get past it

The blocklist parses commands with a shell grammar. We added touch and tried to create a scratch file. It refused /usr/bin/touch, sh -c, bash -c, command, env, a FOO=1 prefix, eval, split quotes, xargs, find -exec, nohup and time. Yet t=touch; $t f07, $(echo touch) f11 and a script run with sh s.sh all made the file, each with a note that the name could not be checked. touch typed into a running sh -i through interact_with_process made it with no note at all, and python3 or perl did the same under another name.

The model can lift both limits itself

With set_config_value we set allowedDirectories to [] and took touch off the blocklist; the next write_file outside the folder and the next touch both worked. One start_process call that rewrote ~/.claude-server-commander/config.json did the same, with no restart. A setting the model can change is not a limit. What holds is outside the server: a container, or a person approving each command.

Telemetry is on by default

A new config has telemetryEnabled: true. We recorded the requests instead of sending them: each tool call sent its name, a random id, the client’s name and the platform to telemetry.desktopcommander.app; start_process added the program names in the command (cd, echo, cat, git) and read_file the file’s extension and size. Set to false, nothing went out until the model turned it back on with set_config_value. DESKTOP_COMMANDER_DISABLE_TELEMETRY=1, from its code, wins over the config and the model cannot change it. By the code it does not cover the package_installed event the npm install script sends, or the feature flags fetched from desktopcommander.app every 30 minutes.

Reads that reach further

read_file with isUrl fetched an address on 127.0.0.1, query string and all. list_processes returned every process’s full command line, a fake API key in one of them. kill_process killed a process the server had not started. And get_recent_tool_calls returns past outputs from tool-history.jsonl: a fake token read in one session came back in the next. All four ask here. Every call’s arguments are also logged, unredacted, to claude_tool_call.log.

Run it in a container

Install it once into a Docker volume, then add it with only the project mounted and no network:

docker run --rm -v dc-pkg:/opt/dc node:24-bookworm-slim npm install --prefix /opt/dc --ignore-scripts @wonderwhy-er/desktop-commander@0.3.4
claude mcp add desktop-commander -- docker run -i --rm --network none -e DESKTOP_COMMANDER_DISABLE_TELEMETRY=1 -v dc-pkg:/opt/dc:ro -v "$PWD":/work -w /work node:24-bookworm-slim node /opt/dc/node_modules/@wonderwhy-er/desktop-commander/dist/index.js --no-onboarding

Run this way, ls /Users and a fetch from the shell failed, and the shell and start_search worked on /work. The makers’ image, mcp/desktop-commander:latest, answered as 0.2.43 with 26 tools when we pulled it.

All 25 tools

Hard to undo8 toolsAsk a person every time. Consider two people, or deny it if the agent never needs it.

  • set_config_value

    Set a specific configuration value by key.

    Server says: destructive

    Our call: The model can set allowedDirectories to [] (every folder), take names off blockedCommands and turn telemetry back on. Each change held from the next call.

  • write_file

    Write or append to file contents.

    Server says: destructive

  • write_pdf

    Create a new PDF file or modify an existing one.

    Server says: destructive

  • move_file

    Move or rename files and directories.

    Server says: destructive

  • edit_block

    Apply surgical edits to files.

    Server says: destructive

  • start_process

    Start a terminal process on the authorized device with intelligent state detection.

    Server says: destructive

    Our call: Runs any shell command as you. allowedDirectories does not apply to it: echo wrote a file outside the allowed folder, and one command rewrote the server's own config.

  • interact_with_process

    Send input to an existing terminal or REPL process and return newly available output.

    Server says: destructive

    Our call: Types into a shell or REPL the server started, and blockedCommands never sees it. With touch blocked, we started sh -i and sent it touch, and the file appeared.

  • kill_process

    Terminate a running process by PID.

    Server says: destructive

    Our call: Kills any process your user owns, by PID, not only the ones it started. It killed a process we had started outside the server.

Reaches people2 toolsAsk a person: once it reaches someone, it cannot be unsent.

  • read_file

    Read contents from files and URLs.

    Server says: read-only

    Our call: With isUrl it fetches any address, so data can leave in the URL. Our local server on 127.0.0.1 got the request, query string included, and allowedDirectories did not apply.

  • give_feedback_to_desktop_commander

    Open feedback form in browser to provide feedback about Desktop Commander.

    Server gives no read-only or destructive hint

    Our call: Opens the makers' feedback form in your browser. By its own description it adds your call count, days of use, platform and analytics id.

Not sure5 toolsAsk a person until you have checked what it does.

  • read_multiple_files

    Read the contents of multiple files simultaneously.

    Server says: read-only

    Our call: Returns file contents from the allowed folders, and a new config allows every folder, so it can read any key or .env file your user can. With a folder set, a read and a search outside it were refused.

  • start_search

    Start a streaming search that can return results progressively.

    Server says: read-only

    Our call: Returns file contents from the allowed folders, and a new config allows every folder, so it can read any key or .env file your user can. With a folder set, a read and a search outside it were refused.

  • get_more_search_results

    Get more results from an active search with offset-based pagination.

    Server says: read-only

    Our call: Returns file contents from the allowed folders, and a new config allows every folder, so it can read any key or .env file your user can. With a folder set, a read and a search outside it were refused.

  • list_processes

    List all running processes.

    Server says: read-only

    Our call: Returns the full command line of every process on the machine. A fake API key we passed to a process as an argument came back.

  • get_recent_tool_calls

    Get recent local tool call history with arguments and outputs.

    Server says: read-only

    Our call: Returns earlier calls with their arguments and outputs, from earlier sessions too. A fake token we read in one session came back in the next.

Changes data2 toolsAsk a person. Once it is routine, a standing rule can answer.

  • create_directory

    Create a new directory or ensure a directory exists.

    Server gives no read-only or destructive hint

  • force_terminate

    Force terminate a running terminal session.

    Server says: destructive

    Our call: Ends only a terminal session this server started, with the processes in it.

Only looks8 toolsLet it run. It only looks.

  • get_config

    Get the complete server configuration as JSON.

    Server says: read-only

  • list_directory

    Get a detailed listing of all files and directories in a specified path.

    Server says: read-only

  • stop_search

    Stop an active search.

    Server gives no read-only or destructive hint

    Our call: Only stops a search this server started.

  • list_searches

    List all active searches.

    Server says: read-only

  • get_file_info

    Retrieve detailed metadata about a file or directory.

    Server says: read-only

  • read_process_output

    Read output from a running process with file-like pagination support.

    Server says: read-only

    Our call: Reads more output only from a session start_process opened, and start_process already asks, so the person has seen the command whose output comes back.

  • list_sessions

    List all active terminal sessions.

    Server says: read-only

  • get_usage_stats

    Get usage statistics for debugging and analysis.

    Server says: read-only

Let the reads run in Claude Code

Claude Code asks before every MCP tool it has no rule for. Added as desktop-commander, this server’s tools are named mcp__desktop-commander__<tool>. These allow rules, in .claude/settings.json or ~/.claude/settings.json, let the tools that only look run without a prompt. Everything else keeps asking, including any tool a later version of the server adds.

{
  "permissions": {
    "allow": [
      "mcp__desktop-commander__get_config",
      "mcp__desktop-commander__list_directory",
      "mcp__desktop-commander__stop_search",
      "mcp__desktop-commander__list_searches",
      "mcp__desktop-commander__get_file_info",
      "mcp__desktop-commander__read_process_output",
      "mcp__desktop-commander__list_sessions",
      "mcp__desktop-commander__get_usage_stats"
    ]
  }
}

The command that adds the server:

claude mcp add desktop-commander -e DESKTOP_COMMANDER_DISABLE_TELEMETRY=1 -- npx -y @wonderwhy-er/desktop-commander@0.3.4 --no-onboarding

Send the rest to a person, not the terminal

A prompt in the terminal only works while someone is watching it. With this hook, every other tool of the server becomes a request in your VariantGate inbox, on your phone or in Slack, and Claude Code waits for the answer. The matcher names the look-only tools, so a tool added later is sent too. Put the key in VARIANTGATE_KEY, or run the one-command setup for Claude Code first.

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "mcp__desktop-commander__(?!(get_config|list_directory|stop_search|list_searches|get_file_info|read_process_output|list_sessions|get_usage_stats)$).*",
        "hooks": [
          { "type": "command", "command": "variantgate hook claude-code", "timeout": 180 }
        ]
      }
    ]
  }
}

Disagree with a tier, or run the server with other flags? Open these tools in the tool risk checker, change what you like, and copy the settings for your own setup. It runs in your browser and starts from its own reading, so a tool we marked as only looking by hand asks there until you change it.

Any MCP client: put the proxy in front

Claude Desktop, Cursor and most other MCP clients have no hook to send a call to a person. The VariantGate MCP proxy does it in the server’s place: it starts the server, lets the look-only tools above through, and holds every other call until someone approves it in the inbox. Run npx -y https://variantgate.com/sdk/variantgate-agent-0.15.0.tgz login once to save a key, then use this in claude_desktop_config.json or ~/.cursor/mcp.json:

{
  "mcpServers": {
    "desktop-commander": {
      "args": [
        "-y",
        "https://variantgate.com/sdk/variantgate-agent-0.15.0.tgz",
        "mcp-proxy",
        "--name",
        "desktop-commander",
        "--look-only",
        "get_config,list_directory,stop_search,list_searches,get_file_info,read_process_output,list_sessions,get_usage_stats",
        "--",
        "npx",
        "-y",
        "@wonderwhy-er/desktop-commander@0.3.4",
        "--no-onboarding"
      ],
      "command": "npx",
      "env": {
        "DESKTOP_COMMANDER_DISABLE_TELEMETRY": "1"
      }
    }
  }
}

Already have it in Claude Desktop? One command rewrites the file for you, with these look-only tools filled in, and keeps the old one (setup vscode does the same for VS Code; how it works):

npx -y https://variantgate.com/sdk/variantgate-agent-0.15.0.tgz setup claude-desktop

The same in Claude Code, instead of the hook. The proxy now asks about every call that matters, so an allow rule for the whole server, mcp__desktop-commander, keeps Claude Code from asking a second time in the terminal:

claude mcp add desktop-commander -e DESKTOP_COMMANDER_DISABLE_TELEMETRY=1 -- npx -y https://variantgate.com/sdk/variantgate-agent-0.15.0.tgz mcp-proxy --name desktop-commander --look-only get_config,list_directory,stop_search,list_searches,get_file_info,read_process_output,list_sessions,get_usage_stats -- npx -y @wonderwhy-er/desktop-commander@0.3.4 --no-onboarding

Claude Code’s allow rules match a tool’s name, never its arguments, so a rule cannot tell a harmless call of these tools from a risky one. If allowedDirectories in ~/.claude-server-commander/config.json names only your project folder, or the server runs in the container above with only the project mounted, these rules also let read_multiple_files, start_search, get_more_search_results run unasked:

{
  "permissions": {
    "allow": [
      "mcp__desktop-commander__get_config",
      "mcp__desktop-commander__list_directory",
      "mcp__desktop-commander__stop_search",
      "mcp__desktop-commander__list_searches",
      "mcp__desktop-commander__get_file_info",
      "mcp__desktop-commander__read_process_output",
      "mcp__desktop-commander__list_sessions",
      "mcp__desktop-commander__get_usage_stats",
      "mcp__desktop-commander__read_multiple_files",
      "mcp__desktop-commander__start_search",
      "mcp__desktop-commander__get_more_search_results"
    ]
  }
}

When the agent should run commands

Every start_process and interact_with_process call asks, and the person who answers sees the whole command: that person is the real blocklist. Refuse one that touches .claude-server-commander, runs a script you have not read, or builds a program name from a variable, and keep set_config_value asking.

See it before you decide.

The playground runs the whole approval loop in your browser, no account needed. When it fits, the free plan covers 100 requests a month.