desktop-commander
Desktop Commander
Quick start
Goal: use Desktop Commander MCP to turn “files / processes / search / edits” into verifiable tool calls (small, safe steps) instead of treating the machine as a black box.
Most common entry points:
- Read content:
mcp__desktop-commander__read_file(paging, negative offset tail, PDF/image/Excel/URL). - Small edits:
mcp__desktop-commander__edit_block(targeted text replace / Excel range update). - Large edits:
mcp__desktop-commander__write_filein chunks (respectfileWriteLineLimit). - Interactive work:
mcp__desktop-commander__start_process+mcp__desktop-commander__interact_with_process+mcp__desktop-commander__read_process_output.
Official notes + tool list: skills/desktop-commander/references/desktop-commander.md.
Workflow decision tree
- Do I need to find something?
- File names/paths:
mcp__desktop-commander__start_search(searchType="files") →mcp__desktop-commander__get_more_search_results - File contents:
mcp__desktop-commander__start_search(searchType="content") → paginate →mcp__desktop-commander__stop_searchwhen done
- Do I need to read or change content?
- Read:
mcp__desktop-commander__read_file(useoffset/length; useoffset=-Nfor tail) - Small change:
mcp__desktop-commander__edit_block(default replaces 1 occurrence; useexpected_replacementsfor multiple) - Large change:
mcp__desktop-commander__write_file(mode="rewrite"thenmode="append"chunked)
- Do I need to run commands / keep sessions?
- One-off commands:
mcp__desktop-commander__start_process(shell command) + read output - REPL / SSH / DB / dev server:
start_process→interact_with_process→read_process_output
- Is this a high-risk operation (config changes, killing processes, bulk edits/moves, any data loss)?
- Explain impact + rollback first; require explicit user confirmation before executing.
- Prefer making config changes in a separate chat (official guidance).
Recipes
Reading files
- Text/code:
read_filewith pagination; logs:offset=-200(tail-like). - Multiple files:
read_multiple_filesto reduce round trips. - URLs:
read_filewithisUrl: truefor web content/images.
Editing files
- Targeted replace:
edit_blockwith minimal unique context; for many occurrences setexpected_replacements. - Rewrites:
write_filein 25–30 line chunks (rewritethenappend). - Excel: read via
read_file; edit viaedit_blockwithrange+ 2D array. - PDFs: only via
write_pdf(do not usewrite_filefor PDFs).
Search
- Prefer
start_search+get_more_search_resultsfor repo exploration; stop searches you no longer need. - Use
literalSearch: truefor patterns with special characters (parentheses, brackets, dots, etc.).
Processes & interaction
- Data analysis: run
python3 -i, then useinteract_with_processfor pandas/numpy workflows. - Observing long jobs: call
read_process_outputperiodically; to stop usekill_process/force_terminate(high-risk). - Status:
list_sessions/list_processes.
Config & audit
get_config/set_config_value: use carefully; directory restrictions are not a security boundary for terminal commands.get_recent_tool_calls: recover context and debug “what happened”.get_usage_stats: usage/performance insight.
Guardrails (must follow)
- Prefer absolute paths; don’t assume OS-specific separators.
- For big changes: read first; keep edits small; chunk writes; keep rollback in mind.
- High-risk actions require explicit confirmation: config changes, killing sessions/processes, bulk file edits/moves, any destructive command.
- Security:
allowedDirectorieslimits filesystem tools, not terminal commands—don’t treat it as sandboxing.
References
- Official notes + tool list:
skills/desktop-commander/references/desktop-commander.md
More from ry-run/run-skills
jetbrains-skill
Use the JetBrains IDE MCP Server (IntelliJ IDEA 2025.2+) for IDE-backed indexing, inspections, symbol info, project file operations, and structural refactoring. Use it when you need exact project-aware analysis or safe IDE refactors, rather than broad semantic repository discovery.
77desktop-commander-mcp
使用 Desktop Commander MCP(常见为 `mcp__desktop-commander__*` 工具)进行本地文件/目录读写与搜索、精确文本替换、Excel/PDF 处理、启动与交互长生命周期进程(Python/Node/SSH/DB)、查看与终止进程/会话、读取工具调用历史与用量统计、管理服务器配置。适用于:需要“在机器上执行操作”的任务(读写代码/配置、批量改文件、搜索代码、分析 CSV/Excel、生成/修改 PDF、跑命令并持续读取输出、交互式 REPL 调试/数据分析)时。
2deepwiki
Use DeepWiki MCP for repository-focused documentation from deepwiki.com. Use it when you need a fast overview of an external repository, architecture, or repo-specific concepts, rather than live library docs or broad web research.
1ace-tool
Use Ace Tool MCP (`mcp__ace_tool__search_context`) for semantic repository discovery. Use it when the exact file, symbol, or implementation path is unknown, rather than starting with exact IDE search or direct file edits.
1context7
Use Context7 MCP for up-to-date library and framework documentation tied to an exact library ID. Use it for versioned API usage, setup, migrations, and code examples, rather than generic documentation-site search.
1vercel-skill
Use Vercel MCP for project discovery, deployments, build and runtime logs, toolbar threads, protected preview access, and Vercel documentation. Use it when the task centers on Vercel-hosted application state, rather than local-only execution.
1