What happened
Cua Driver reads apps through accessibility trees and screenshots. The guide says this approach works with accessible native, Electron, and browser apps across macOS, Windows, and Linux. (aistudio.google.com) The Antigravity desktop app, IDE, and CLI share one MCP configuration, so the same server setup can serve each. (aistudio.google.com)
For more control, the guide also offers a custom loop built with the Interactions API, the google-genai SDK, and Cua Driver’s typed tools. (aistudio.google.com) The loop returns tool results to Gemini as function results containing text, structured JSON, and image parts. (aistudio.google.com) Its example calls for a fresh window snapshot after changes because earlier element tokens become stale; target apps must already be open unless you add the launch_app tool. (aistudio.google.com)
The walkthrough uses macOS 14 or later and requires Cua Driver 0.35.2 or later; its Antigravity setup requires agy 1.1.16 or later. (aistudio.google.com) The custom-loop examples support Python 3.10+ or TypeScript with Node.js 20+. (aistudio.google.com)
Trend signal
This is a concrete example of MCP acting as a boundary between an agent and desktop tools: Antigravity can use a locally registered server rather than requiring a native integration for each application. The broader pattern is agent protocols becoming an interoperability layer across models, harnesses, and tools.
Why it matters
Allowing mcp(cua-driver/*) trades repeated confirmations for smoother desktop control. It does not approve unlisted shell commands, which Antigravity still prompts before running; in print mode, tools outside the allow list are denied and the reason is reported on stderr.
Limits and uncertainty
The desktop-control and cross-platform compatibility claims come from the partner guide, not independent confirmations. (aistudio.google.com) Its hands-on walkthrough is specifically for macOS 14 or later, even though the guide describes support for accessible apps on Windows and Linux as well. (aistudio.google.com)
Skill to build now
Create a Gemini API key in Google AI Studio and set GEMINI_API_KEY in your terminal session. (aistudio.google.com) Install Cua Driver with /bin/bash -c "$(curl -fsSL https://cua.ai/driver/install.sh)". (aistudio.google.com) On macOS, grant CuaDriver Accessibility and Screen & System Audio Recording permissions; on macOS 26, allow direct screen access if prompted. Check them with cua-driver permissions status. (aistudio.google.com)
Register the server with agy mcp add cua-driver "$(command -v cua-driver)" mcp and verify it using agy mcp list. The guide also identifies ~/.gemini/config/mcp_config.json as the MCP configuration location. (aistudio.google.com) To use a Gemini API key rather than signing in with a Google account, set "modelProvider": "gemini". (aistudio.google.com) For a small first test, run agy --model gemini-4-argon-low -p "Use only the cua-driver tools. List the windows that are open right now.". (aistudio.google.com) To avoid a prompt before every Cua Driver action, add "mcp(cua-driver/*)" to the allow list in ~/.gemini/antigravity-cli/settings.json. (aistudio.google.com)
Reader takeaway
The practical change is a no-application-code path from Antigravity to desktop controls: install Cua Driver, grant OS permissions, register it as an MCP server, then explicitly allow its tools if you want to avoid per-action prompts. Test with a window-listing request before delegating changes.