agy-cua-desktop
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
agy-cua-desktop
Fast, Background-First Computer Use MCP Server & Google Antigravity Plugin
English · 简体中文 · Why Computer Use? · Use Cases · Quick Start · Tool Catalog · Security Model · Star History
agy-cua-desktop brings fast, safe Computer Use (desktop GUI + logged-in browser automation on Windows, macOS, and Linux) to Google Antigravity, Claude Code, Cursor, OpenAI Codex CLI, Windsurf, Cline, and Gemini CLI via official Cua Driver. Instead of hijacking your physical mouse and burning tokens on slow full-screen screenshot loops, it pairs zero-screenshot COM introspection (desktop_fast_context), compact 2-tier MCP curation, isolated subagent execution (cua-operator), and built-in PreToolUse safety guardrails—operating desktop apps in the background while you keep typing uninterrupted.
Eager Schema Footprint | Main-Session Screenshots | Explorer / Office Lookup |
|
7 Eager ( | 0Isolated inside |
| Zero Manual UI Rules |
Why Rethink Computer Use?
Dimension | Traditional Screenshot-Loop Computer Use ( |
|
Mouse & Focus | Hijacks physical cursor & active window — you must stop typing | Headless background UIA/AX delivery + |
Speed & Token Cost | Repeated full-screen PNGs bloat context & break prompt cache |
|
Web + Native Apps | Isolated browser profiles lose SSO/2FA logins & miss native GUIs | Drives tabs inside your already-logged-in Chrome / Edge ( |
Autonomous Safety | Unfiltered clicks risk password leaks or accidental checkout/delete | Dual-layer guardrails: hard-blocks |
Related MCP server: Hands
Real-World Computer Use Scenarios
Explorer + Office → Desktop App Pipelines: Inspect highlighted File Explorer selections & active Excel/Word/PowerPoint documents in
<150 ms(0screenshots) and batch-fill ERP, finance, or legacy desktop forms in the background.Logged-In Browser ↔ Desktop Bridge: Pull live data from internal dashboards in your already-authenticated Chrome/Edge tabs and drive native desktop apps without re-login or anti-bot hurdles.
Uninterrupted Multi-Step GUI Batching: Execute 20–60 clicks, form entries, menu invocations, and hotkeys inside a single
run_stepsorrun_scriptcall while you keep coding in your editor.Desktop App E2E Playtesting & Visual QA: Launch and verify Electron, Tauri, WPF, Qt, or SwiftUI builds using deterministic
verify_stateassertions plus targetedzoomgrounding for Canvas/WebGL views.Safe Autonomous ("Turbo") Desktop Assistant: Delegate repetitive GUI chores confidently with built-in password-vault isolation, self-targeting prevention, and native confirmation gates on irreversible actions.
Quick Start
Requirements: Node.js >= 20 + official Cua Driver (--with-driver installs it automatically).
Option A: Google Antigravity Native Plugin (Desktop 2.0, CLI agy, IDE)
Unlocks the full bundle: 2-tier MCP server + cua-operator isolated subagent + PreToolUse Turbo confirmation hooks + 5-tier routing rules.
Windows (PowerShell):
# Plugin only
irm https://raw.githubusercontent.com/Nodifferentiable/agy-cua-desktop/main/install.ps1 | iex
# Plugin + official Cua Driver (with Windows background autostart)
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/Nodifferentiable/agy-cua-desktop/main/install.ps1))) --with-drivermacOS / Linux:
# Plugin only
curl -fsSL https://raw.githubusercontent.com/Nodifferentiable/agy-cua-desktop/main/install.sh | sh
# Plugin + official Cua Driver
curl -fsSL https://raw.githubusercontent.com/Nodifferentiable/agy-cua-desktop/main/install.sh | sh -s -- --with-driverAny OS (via GitHub npx):
npx -y github:Nodifferentiable/agy-cua-desktop install --with-driverOption B: Universal Computer Use MCP Server (Claude Code, Cursor, Codex, Windsurf, Cline)
Install Cua Driver once (
irm https://cua.ai/driver/install.ps1 | iexon Windows, or/bin/bash -c "$(curl -fsSL https://cua.ai/driver/install.sh)"on macOS/Linux).Add the stdio MCP server to your client:
# Claude Code one-liner
claude mcp add agy-cua-desktop -- npx -y github:Nodifferentiable/agy-cua-desktop mcp{
"mcpServers": {
"agy-cua-desktop": {
"command": "npx",
"args": ["-y", "github:Nodifferentiable/agy-cua-desktop", "mcp"]
}
}
}(Run npx -y github:Nodifferentiable/agy-cua-desktop mcp-config to print copyable JSON snippets.)
Using Antigravity Desktop Turbo Mode? Zero manual setup in Settings → General → Tool permissions is needed! Built-in hooks.json (PreToolUse) + policy.ts allow routine desktop work automatically while popping native confirmation prompts on kill_app and financial/permanent-delete actions.
Local Clone (Any OS)
git clone https://github.com/Nodifferentiable/agy-cua-desktop.git
cd agy-cua-desktop
node scripts/install.mjs install --with-driverPer-Repository Installation (Team Sharing)
Install only into <repo>/.agents/plugins/agy-cua-desktop:
node scripts/install.mjs install --project /path/to/your-repoStandalone Pure MCP Server (Claude Code, Codex, Cursor)
{
"mcpServers": {
"agy-cua-desktop": {
"command": "npx",
"args": ["-y", "github:Nodifferentiable/agy-cua-desktop", "mcp"]
}
}
}Run npx -y github:Nodifferentiable/agy-cua-desktop mcp-config to print ready-to-paste JSON configs.
Native Antigravity CLI (agy)
agy plugin install /path/to/agy-cua-desktop
agy plugin enable agy-cua-desktopAsk Antigravity Directly
Clone https://github.com/Nodifferentiable/agy-cua-desktop.git to ~/.gemini/config/plugins/agy-cua-desktop, run `node ~/.gemini/config/plugins/agy-cua-desktop/scripts/install.mjs install --with-driver`, and confirm status with `doctor`.Architecture
Why Not Raw cua-driver mcp or Custom SDK Scripts?
Capability | Raw | Custom SDK Loop (Python/TS) |
|
Underlying Engine | Official | Official | Same official |
Eager | 4,656 chars (dropped if >4,096 limit) | Manual code only | 305 chars (compacted & always active) |
Full Desktop Actions | 50+ mixed tools in flat list | Hardcoded ~12 tools (misses double-click/drag/zoom) | 7 Eager + 45 Lazy (100% desktop + local browser_)* |
Explorer / Office Lookup | Slow UIA walk + screenshot | Slow UIA walk + screenshot |
|
Windows Session Pipe | Bare | Requires separate terminal | Auto-attaches to |
Main-Session Cache | Screenshots bloat main context | Separate process + extra API bill | Isolated in |
| Unfiltered clicks & self-targeting risk | Manual prompt rules only | Built-in |
5-Tier Script-First Workflow
rules/AGENTS.md and skills/cua-desktop/SKILL.md guide Antigravity to always solve tasks at the fastest tier:
Tier | Latency | Approach | When to Use |
Tier 0 |
| Direct | Reading/editing files, configs, |
Tier 1 |
|
| Resolving visible windows with self/vault flags (all OS), plus open File Explorer paths, highlighted |
Tier 2 |
|
| Batching multi-field forms, conditional UI loops, and target-by-name UIA actions in 1 round trip |
Tier 3 |
|
| Refreshing |
Tier 4 | Fallback |
| Custom Canvas/WebGL views, apps refusing background input, or tabs inside your logged-in Chrome/Edge |
Security Model
Built for Turbo + elevated Windows RunLevel=Highest daemons without losing safety—see SECURITY.md for the 2-minute supply-chain audit:
Self-Targeting Block: Mutating, pointer, keyboard, menu, and
kill_appcalls targetingAntigravityorcua-driverprocesses are denied at bothPreToolUseand bridge layers.Vault & UAC Isolation: Both read (
get_window_state,zoom) and input calls targeting1Password,Bitwarden,KeePass,consent.exe(UAC), orCredentialUIBrokerare hard-denied;is_password: trueUIA fields are redacted to[REDACTED_PASSWORD].Irreversible Action Confirmation (
force_ask):PreToolUsepops a native confirmation prompt onkill_appand UI labels matching financial or destructive actions (Pay, Transfer, Checkout, Delete Forever, Format Disk), even inTurbomode.Visual Prompt-Injection Isolation:
cua-operatorruns withcommandExecutionPolicy: off, preventing untrusted text seen on screen from executing arbitrary shell commands.Collision Guard, Panic Stop & Audit: Foreground escalations sample
get_cursor_positionover120 msand defer (user_cursor_active_deferred) if your physical mouse is moving;desktop_panic_stophalts all sessions immediately (cua-driver revoke --all); metadata-only logs write to${PLUGIN_DATA}/audit.jsonl(512 KB cap).
CLI & Configuration
# Inspect status, daemon pipe, hooks, and active policy
node ~/.gemini/config/plugins/agy-cua-desktop/scripts/install.mjs doctor
# View or adjust policy overrides (~/.gemini/config/agy-cua-desktop.json)
node ~/.gemini/config/plugins/agy-cua-desktop/scripts/install.mjs config --show
node ~/.gemini/config/plugins/agy-cua-desktop/scripts/install.mjs config --mode strict-background --browser off
node ~/.gemini/config/plugins/agy-cua-desktop/scripts/install.mjs config --reset
# Emergency stop all active Cua Driver sessions
node ~/.gemini/config/plugins/agy-cua-desktop/scripts/install.mjs panicConfig Key ( | Env Override | Default | Values |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Auto-detected | e.g. |
Example Prompts
"Check what folder and files I currently have selected in File Explorer and summarize them (use
desktop_fast_context, no screenshots).""Use
cua-operatorto fill out the open desktop app form in the background while I keep typing here.""In my already-logged-in Chrome window, inspect the active tab and export the report without opening a new browser profile."
Tool Catalog
When connected to cua-driver, agy-cua-desktop exposes 7 compact Eager tools + 45 on-demand Lazy tools (filtered by OS and safety policy; shell_execute and install_extension are always blocked):
Tool / Group | Tier | Purpose |
| Eager | Diagnose |
| Eager | Zero-screenshot window list ( |
| Eager | Enumerate open windows ( |
| Eager | Compact UIA tree ( |
| Eager | Batch |
| Eager | Run headless JavaScript ( |
| Eager | Assert |
Pointer, Keyboard & Window Controls | Lazy |
|
Local Logged-In Browser ( | Lazy | Drive tabs in your already-open Chrome/Edge ( |
Visual Grounding & Session Lifecycle | Lazy |
|
| Lazy | Emergency kill-switch: runs |
Project Layout & Platform Troubleshooting
agy-cua-desktop/
├── plugin.json # Antigravity plugin manifest
├── mcp_config.json # 2-tier MCP server config (7 Eager tools)
├── hooks.json # Turbo-ready PreToolUse multi-path hook loader
├── src/ & dist/ # TypeScript source -> zero-dep ESM bundles
├── rules/AGENTS.md # Always-on 5-tier script-first routing rules
├── agents/cua-operator.md # Flash multimodal-isolated subagent (commandExecutionPolicy: off)
├── skills/cua-desktop/ # On-demand skill & optional native YAML policy reference
├── scripts/install.mjs # CLI (install, update, uninstall, doctor, config, panic, mcp)
└── install.ps1 / install.sh # Cross-platform one-command installersWindows (
cua-driversees 0 windows or pipe unavailable): Runcua-driver autostart enable ; cua-driver autostart kick, then runnode ~/.gemini/config/plugins/agy-cua-desktop/scripts/install.mjs doctorto verify\\.\pipe\cua-driver.macOS (missing Accessibility tree or screenshots): Run
cua-driver permissions grantand enable Accessibility & Screen Recording for your terminal / Cua Driver.Linux (headless or Wayland issues): Ensure
cua-driver serveis started inside an active X11/XWayland desktop session.Updating & Uninstalling: Run
node ~/.gemini/config/plugins/agy-cua-desktop/scripts/install.mjs update(preserves your customrules/AGENTS.local.md) oruninstallto remove cleanly.
Contributing, Security & License
Development & Release Workflow: CONTRIBUTING.md · CHANGELOG.md
Security Architecture & Independent Audit: SECURITY.md
Powered by Official Cua Driver · Released under the MIT License
Star History
If agy-cua-desktop powers up your Computer Use workflows, please give it a ⭐ Star on GitHub so more developers can discover it!
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Let your AI see your screen, click, type and run commands on your own Windows, Mac or Linux PC.
Let AI see and use your own Windows PC with your permission: screen, apps, mouse and keyboard.
Connect AI assistants to your approved computer for files, commands, browser and desktop tasks.
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to autonomously control Windows 11 and 10 desktops via sub-10ms screen capture, native UI Automation element inspection, and zero-lag keyboard and mouse input. Combines a visual plane with a semantic plane and stall detection so agents can operate real applications reliably without vision-only guessing.764 npm262 PyPI7MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to inspect and operate Windows desktop applications and Chrome tabs in the background while the user retains mouse, keyboard, and window control. It provides consent prompts, hard deny lists, visible activity indicators, and an emergency stop for safer computer use.1Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to observe and drive Windows desktop applications in the background through UI Automation and Win32 messages, without taking over the user's mouse, keyboard, or foreground window. Every action is read back and verified, and outward actions are held for explicit confirmation.6MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI clients to automate Windows desktop applications through protocol-first, background-safe window inspection, screenshots, clicks, typing, scrolling, browser CDP control, batch pipelines, and built-in safety guardrails without hijacking the physical mouse or focus.MIT