Credentials. The agent can see and act on anything visible in the app it controls, so scope it to apps you are happy to expose.
Who it is forA developer whose agent already speaks MCP and who wants desktop tools such as desktop_snapshot and desktop_click.
The problemWiring a custom desktop automation layer into an agent harness takes glue code.
The outcomeAn MCP server that exposes each command as a tool and returns its JSON envelope.
What you need first
- 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
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_snapshotanddesktop_click - Pass global flags such as
--session,--headedor--tracetomcpif you want them on every call
Prompt for your agent
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.
Caveat. Actions are headless by default with no pointer movement; pass --headed for physical input.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for vercel-labs/agent-desktop and "Add desktop control to your agent over MCP"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer