agy-bridge
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@agy-bridge Ask Antigravity to run the tests and report the results."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Claude Gravity Bridge (agy-bridge)
A small, local MCP server that lets Claude send tasks to the Antigravity desktop app and read back the results.
Drives the desktop app itself (not the CLI or IDE plugin).
Zero dependencies. Node 22 or newer.
Opens no network port. Nothing leaves your PC.
The launcher script is for Windows (PowerShell). The server itself is plain Node and the test suite runs on any OS.
How it works
Claude --(stdio pipe)--> agy-bridge --(127.0.0.1 debug port)--> Antigravity app
| |
+--- writes inbox/<id>.md <-------------+ agent reads it
+--- reads outbox/<id>.md + .done <----+ agent writes itag_sendwrites the full task (with safety rules) toinbox/<id>.md.The bridge types one short line into the agent chat: "Read the file ... and follow it".
The agent writes its report to
outbox/<id>.md, then createsoutbox/<id>.doneholding a one-time code.ag_resultfinishes only when that code matches. The bridge never guesses completion from the screen.
If auto-typing fails, the task becomes manual_pending and Claude gets the exact one-line message for you to paste. Nothing is lost.
Related MCP server: agy-mcp-bridge
Install
You need: Windows, Node 22+, the Antigravity desktop app, and Claude desktop.
Get the code.
git clone https://github.com/thecrystoria-svg/claude-gravity-bridge.git C:\tools\agy-bridge cd C:\tools\agy-bridge npm test # optional: 14 tests against a fake appAdd it to Claude desktop. Open Claude desktop, then Settings, Developer, Edit Config. Add this under
mcpServers(also inclaude-config-snippet.json) and fix the two paths:"agy-bridge": { "command": "C:\\Program Files\\nodejs\\node.exe", "args": ["C:\\tools\\agy-bridge\\src\\server.mjs"], "env": { "AGY_PROJECT_DIR": "C:\\path\\to\\your\\project" } }AGY_PROJECT_DIRis required. The bridge refuses to send tasks without it, and tasks can only run inside that folder. Fully quit and reopen Claude desktop.Start Antigravity with a private debug port. Close Antigravity completely (check the tray), then run:
powershell -ExecutionPolicy Bypass -File C:\tools\agy-bridge\scripts\start-antigravity.ps1Wait for the green "OK ... local-only" line. If the app is not found, pass
-Exe "C:\full\path\Antigravity.exe". If it is already running, close it or add-ForceClose.Open your project in Antigravity and open its agent chat panel.
Check it from Claude. Ask: "run ag_status". It should say
reachable: true. Then "run ag_diagnose" to see the chat box the bridge will type into.Try a harmless task first: "ask Antigravity to list the files in the project and report the count".
To turn the bridge off, close Antigravity and start it normally from the Start menu. No debug port is open then.
Usage
Just talk to Claude. Examples:
"Ask Antigravity to run the tests and report the result."
"Check what Antigravity is doing now." (uses
ag_read_screen)"Stop Antigravity." (uses
ag_buttonsto find the Stop button, thenag_stop)
Claude sends a task with ag_send, gets a task id back immediately, then polls ag_result until the agent finishes or the timeout is reached.
Tools
Tool | What it does |
| Health check: is the app reachable, which tasks are active |
| Lists the input boxes the bridge can see (to tune |
| Sends a task to the agent. Returns a task id |
| Waits up to |
| Lists recent tasks |
| Stops tracking a task (does not stop the agent) |
| Reads the visible text of the app window (secrets redacted) |
| Lists visible button labels (read-only) |
| Clicks the agent's Stop button. Never clicks Allow, Run or Approve. Refuses unless exactly one match |
| Saves a screenshot of the app window and returns the file path |
Settings (environment variables)
Variable | Default | Meaning |
| none, required | The only folder tasks may work in |
|
| Where |
| read from the port file | Fix the debug port instead of reading it from the launcher's file |
|
| Backup location of the port file |
| any window | Text to match when the app has several windows |
| auto-detect | CSS selector of the agent chat box, if |
| auto-detect | CSS selector of the Stop button |
Security model
Threat | Defence |
Someone on the internet or Wi-Fi | The bridge opens no port and no server. It talks to Claude over a stdio pipe only |
Debug port of the app | Random port each launch, loopback only. The launcher checks it listens on 127.0.0.1 and closes the app if not. The bridge refuses any host except 127.0.0.1 |
A website in your browser | The bridge sends no |
Secrets leaking to Claude or logs | Output is scrubbed for keys, tokens, passwords, connection strings and private keys |
Claude passing secrets into the app |
|
Claude running its own code in the app | Only fixed built-in page scripts run. Claude cannot supply script text |
Fake completion | The |
Path tricks | Task ids must be 16 hex characters. Every path is checked to stay inside the bridge folder |
Runaway use | One active task at a time, 30 per hour, 20 000 character prompts, every task has a timeout |
Agent does something risky | The task wrapper tells the agent to stay in the project folder, never handle secrets, and stop with |
Malicious text in a report | Reports are returned with a warning that they are untrusted data |
Audit |
|
What this does NOT protect against
While the debug port is on, any program running as your Windows user can control the app through it. That is how Chromium debugging works. Keep it on only while you use the bridge.
The agent inside Antigravity is itself an AI with access to what you give it. The wrapper rules are instructions, not a sandbox. Open only the project folder in it.
A prompt-injected agent could write a misleading report. Check important results yourself (for example by re-running the tests).
Troubleshooting
Symptom | Fix |
| Antigravity was not started by the launcher. Close it fully and run |
| Set |
Task stays | The bridge could not type into the chat. Paste the one-line message it gives you, or set |
Launcher says the app is already running | Close it from the tray, or add |
Port file errors | Set |
Tests
npm test runs 14 tests against a fake app: protocol, secret scrubbing, fake completion, symlinks, hostile host names, the manual fallback, and the one-task limit. They do not need Antigravity.
Limits
This bridge depends on how the Antigravity window is built. A big app update can change the chat box or Stop button, which is what AGY_INPUT_SELECTOR and AGY_STOP_SELECTOR are for.
License
MIT, see LICENSE.
๐ท๏ธ Search Keywords & Tags
claude-desktop ยท antigravity ยท model-context-protocol ยท mcp ยท mcp-server ยท claude-bridge ยท claude-gravity-bridge ยท agentic-ai ยท autonomous-agents ยท ai-developer-tools ยท claude-tools ยท chrome-devtools-protocol ยท cdp ยท desktop-automation ยท llm-agents ยท claude-ai ยท developer-tools ยท anthropic ยท claude-desktop-mcp
Available Tools
10 toolsag_buttonsA
List labels of visible buttons in the app (read-only), to find the Stop button.
Inputs: no named parameters.
ag_cancelA
Stop tracking a task (does not stop the agent; stop it in the app).
Inputs: task_id (required).
ag_diagnoseA
List input boxes the bridge can see in the app (to calibrate AGY_INPUT_SELECTOR).
Inputs: no named parameters.
ag_read_screenA
Read the last visible text of the app window (secrets redacted).
Inputs: no named parameters.
ag_resultA
Get a task result. Waits up to wait_ms (max 45000) for completion, then returns the current status.
Inputs: task_id (required), wait_ms.
ag_screenshotB
Save a screenshot of the app window; returns the file path.
Inputs: no named parameters.
ag_sendB
Send a task to the Antigravity agent. Returns a task id immediately. Poll with ag_result.
Inputs: prompt (required), project_dir, timeout_minutes.
ag_statusA
Health check: is the Antigravity app reachable, and what tasks are active.
Inputs: no named parameters.
ag_stopA
Click the agent Stop button (only a stop/cancel control; never Allow/Run/Approve). Refuses if not exactly one match.
Inputs: no named parameters.
ag_tasksC
List recent tasks.
Inputs: limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
TDQS
Scored across 10 tools
Most tools are clearly distinct by resource+action (send/result/tasks/cancel/stop/status). The subtle overlaps are ag_status vs ag_tasks (active vs recent tasks) and ag_cancel vs ag_stop (stop tracking vs click app Stop), but descriptions explicitly disambiguate them.
Every tool uses the same ag_ prefix with snake_case verb or verb_noun form (ag_send, ag_read_screen, ag_tasks). The pattern is fully predictable and readable.
Ten tools is well within the ideal range and each covers a distinct capability: task lifecycle (send/result/tasks/cancel/status/stop) plus app inspection (diagnose/read_screen/buttons/screenshot). No filler tools.
The task lifecycle (submit, poll, list, cancel, stop) and window inspection surface are well covered for a GUI bridge. Minor gaps remain, such as clearing/purging task history, but core workflows have no dead ends.
Maintenance
Related MCP Connectors
Use your own Windows, Mac or Linux computer from ChatGPT, Claude, Cursor or Gemini CLI: run commands, read, write and search files, run long processes. Your computer only makes an outgoing connection (no open ports or VPN). Read-only mode, allowed folders, blocked commands and an action log keep you in control. Free plan available.
Let ChatGPT and Claude read and edit files, search and run commands on your own computer.
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Connect AI assistants to your approved computer for files, commands, browser and desktop tasks.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables Claude Code and Claude Desktop to delegate token-heavy tasks to Antigravity headless subagents, offloading file edits, test runs, and exploration while preserving Claude's context window.121MIT
- AlicenseNot gradedqualityBmaintenanceEnables Codex and Claude Code to connect over an authenticated local HTTP endpoint to a logged-in Antigravity CLI, allowing shared workspace-authorized task execution and result handling without opening the Antigravity IDE.777 npm7MIT
- AlicenseBqualityBmaintenanceLets Claude Code and Claude Desktop delegate tasks to Google Antigravity on Windows, running headless CLI jobs with command approval, token tracking, and exported markdown results. Optionally runs tasks as real conversations inside the Antigravity desktop app so they can be watched and opened there.62MIT
- AlicenseBqualityBmaintenanceEnables Claude Code to hand reviews, second opinions and tasks to the Codex and Antigravity desktop apps on one Windows PC and receive their answers back, without copy-pasting between apps. Each agent keeps working in its own app, with message threading, reply waiting, file reservations and delivery tracking over a local daemon.204MIT