{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "vercel-labs-agent-desktop--add-desktop-control-to-your-agent-with-mcp",
 "repo": "vercel-labs/agent-desktop",
 "repo_url": "https://github.com/vercel-labs/agent-desktop",
 "repo_slug": "vercel-labs-agent-desktop",
 "title": "Add desktop control to your agent over MCP",
 "page_title": "How to add desktop control to your agent over MCP with Agent Desktop",
 "summary": "Serve every Agent Desktop command as an MCP tool over stdio.",
 "who": "A developer whose agent already speaks MCP and who wants desktop tools such as desktop_snapshot and desktop_click.",
 "problem": "Wiring a custom desktop automation layer into an agent harness takes glue code.",
 "outcome": "An MCP server that exposes each command as a tool and returns its JSON envelope.",
 "steps": [
  "Install the CLI with `npm install -g agent-desktop`",
  "Add `{ \"mcpServers\": { \"agent-desktop\": { \"command\": \"agent-desktop\", \"args\": [\"mcp\"] } } }` to your MCP client config",
  "Restart the client so it lists tools named after commands, such as `desktop_snapshot` and `desktop_click`",
  "Pass global flags such as `--session`, `--headed` or `--trace` to `mcp` if you want them on every call"
 ],
 "agent_prompt": "Add agent-desktop to my MCP config with command `agent-desktop` and args `mcp`, restart, then use desktop_snapshot on <app> and desktop_click to <task>. Retry a failed command only when error.disposition.retry is safe.",
 "agents": [
  "claude-code",
  "cursor",
  "codex"
 ],
 "difficulty": "Intermediate",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "Actions are headless by default with no pointer movement; pass --headed for physical input.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "rust",
 "requirements": [
  "Node.js and npm (or Homebrew on macOS and Linux)",
  "macOS needs the Accessibility permission granted",
  "An AI agent to run the observe, act, verify loop"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "The agent can see and act on anything visible in the app it controls, so scope it to apps you are happy to expose."
  }
 ],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/vercel-labs-agent-desktop/add-desktop-control-to-your-agent-with-mcp/",
 "md": "https://dedupedai.com/use-cases/vercel-labs-agent-desktop/add-desktop-control-to-your-agent-with-mcp/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/vercel-labs-agent-desktop--add-desktop-control-to-your-agent-with-mcp.json",
 "api_version": "v1"
}
