Skip to main content
Glama
Claude Desktop Commander MCP

Claude Desktop Commander MCP

by wonderwhy-er

start_process

Destructive

Launch terminal commands or interactive sessions on the authorized device and detect when they need input, finish, or keep running so you can follow up or read output.

Instructions

                    Start a terminal process on the authorized device with intelligent state detection.
                    
                    Suitable for shell commands, interactive REPL sessions, data-processing scripts,
                    programmatic file analysis, and other long-running terminal work.
                    
                    Running on Linux (Docker). Default shell: /bin/sh.

🐳 DOCKER CONTAINER ENVIRONMENT DETECTED: This Desktop Commander instance is running inside a Docker container.

āš ļø WARNING: No mounted directories detected. Files created outside mounted volumes will be lost when the container stops. Persistent file work requires a mounted directory, available through the Docker installer or a -v mount. Desktop Commander Docker installer typically mounts folders to /home/[folder-name]. Container: bc3efa0211b2

LINUX-SPECIFIC NOTES:

  • Package managers vary by distro: apt, yum, dnf, pacman, zypper

  • Python 3 might be 'python3' command, not 'python'

  • Standard Unix shell tools available (grep, awk, sed, etc.)

  • File permissions and ownership important for many operations

  • Systemd services common on modern distributions

                      Examples:
                      • start_process("python3 -i") → Start an interactive Python REPL
                      • start_process("node -i") → Start an interactive Node.js REPL
                      • start_process("node:local") → Run stateless Node.js code on the MCP server
                      • start_process("wc -l /path/file.csv") → Run a one-shot shell command
    
                      Interactive process sessions support follow-up input after they are started.
                      Long-running process sessions expose newly available output while they remain active.
                      Binary files can be processed with appropriate command-line tools or libraries available
                      in the selected process environment.
    
                      SMART DETECTION:
                      - Detects REPL prompts (>>>, >, $, etc.)
                      - Identifies when a process is waiting for input
                      - Recognizes process completion vs timeout
                      - Early exit prevents unnecessary waiting
                      
                      STATES DETECTED:
                      Process waiting for input (shows prompt)
                      Process finished execution
                      Process running (use read_process_output)
    
                      PERFORMANCE DEBUGGING (verbose_timing parameter):
                      Set verbose_timing: true to get detailed timing information including:
                      - Exit reason (early_exit_quick_pattern, early_exit_periodic_check, process_exit, timeout)
                      - Total duration and time to first output
                      - Complete timeline of all output events with timestamps
                      - Which detection mechanism triggered early exit
    
                      Absolute paths are the most reliable because they do not depend on the current working directory. Paths are automatically normalized regardless of slash direction. Relative paths depend on the current working directory, and tilde paths (~/...) may not resolve in every context. Absolute paths are generally the most reliable.
                      This command can be referenced as "DC: ..." or "use Desktop Commander to ..." in your instructions.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "command": "<command>",
      "timeout_ms": "<timeout_ms>"
    },
    "name": "start_process"
  }
}

Input Schema

NameRequiredDescriptionDefault
shellNo
originNo
commandYes
timeout_msYes
verbose_timingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.44
    • addedInput schema / properties / origin
      Added value: +{
      +  "enum": [
      +    "ui",
      +    "llm"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changedv0.2.17
    • addedInput schema / properties / verbose_timing
      Added value: +{
      +  "type": "boolean"
      +}
  3. First observedv1.0.0

TDQS

A4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the destructive/openWorld annotations, it discloses real operational context: the Docker container, the /bin/sh default, the warning that unmounted filesystem writes are lost on container stop, the smart-detection states and early-exit behavior, and the verbose_timing diagnostics. These are non-obvious traits an agent could not infer from annotations or schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Core purpose and examples are front-loaded, but the text is heavily bloated with environment boilerplate and duplicated advice ("Absolute paths are the most reliable" appears twice in near-identical sentences). Sections like LINUX-SPECIFIC NOTES add bulk without helping an agent call the tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive process-launching tool with no output schema, most behavioral ground is covered, but a required timeout_ms parameter is never characterized (units, defaults, timeout behavior), and the shell/origin parameters are unaddressed. An agent still has to guess at must-supply values.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must carry parameter meaning. It explains verbose_timing in detail, conveys command semantics through examples, and notes the default shell, but never explains the required timeout_ms, the shell override, or the origin enum — leaving three of five parameters undescribed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — "Start a terminal process on the authorized device" — plus the scope of what it accepts (shell commands, REPLs, scripts). It also distinguishes itself from siblings by pointing at read_process_output for still-running processes and by explaining follow-up input versus one-shot execution.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete when-to-use guidance with four worked examples and an explicit routing rule ("Process running (use read_process_output)"). It falls short of 5 because the follow-up-input alternative is described obliquely rather than naming interact_with_process or stating when to prefer it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.