1-line autonomous agent setup instruction. Paste into Claude Code, Codex CLI, or Cursor Agent:
Fetch and configure Model Context Protocol (MCP) server Desktop Commander from https://www.fastmcp.dev/server/desktop-commander
Agents automatically discover, install, and execute the server spec without manual token setup.
Connect via direct Stateless MCP v2 / Streamable HTTP endpoint or JSON-RPC:
https://github.com/wonderwhy-er/DesktopCommanderMCP
Stateless edge endpoint compliant with MCP 2024-11-05 and v2 draft protocol specs.
Includes server instructions and tool definitions for Claude:
claude mcp add desktop-commander -- npx -y DesktopCommanderMCP
Run in terminal to register server in current project or pass --scope user for global availability.
Configures server instructions and tools for OpenAI Codex & ChatGPT Desktop:
[mcp_servers.desktop_commander]
command = "npx"
args = ["-y","DesktopCommanderMCP"]
Applies to ChatGPT Desktop app, Codex CLI, and IDE extension across your Codex host.
Add to Cursor project settings (.cursor/mcp.json) or Cursor Settings > Features > MCP:
{
"mcpServers": {
"desktop-commander": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"DesktopCommanderMCP"
]
}
}
}
Commit to version control to allow teammates to connect immediately.
Install as an autonomous Agent Skill using the standard skills CLI:
npx skills add https://github.com/wonderwhy-er/DesktopCommanderMCP
Standard agent skill installer compatible with Claude Code, Cursor, and agy harnesses.
Server Guidance & Instructions
OpenAI & Claude Spec Compliant
Desktop Commander: Extends Claude's desktop app capabilities with terminal control, filesystem operations, and file editing. Key capabilities: Manage processes (list and kill); Execute terminal commands with output streaming and configurable timeout.
Codex and Claude read this instruction prompt during initialization to orchestrate cross-tool workflows and rate limits.