
Antigravity Link
io.github.cafeTechne由 GitHub 账号 cafeTechne 发布v1.0.13更新于 Nov 10, 2026
MCP server and OpenAPI-backed mobile companion for controlling Antigravity IDE sessions
概览
让 AI 助手通过带令牌认证的本地桥接服务器读取并操控本机 Antigravity IDE 的对话会话。
- 可以做什么
- 该 MCP 服务器连接本地 Antigravity Link 桥接服务,提供检查和控制当前 Antigravity 对话的工具:get_snapshot 返回对话状态、模式、模型和生成状态;send_message 发送消息;stop_generation 取消生成;get_instances 和 switch_instance 列出并切换 Antigravity 窗口;click_element 按选择器、文本或坐标点击界面元素;get_task、get_walkthrough 和 get_plan 读取当前任务、演练和计划文档。
- 适用场景
- 当你希望 AI 助手在同一台机器上驱动或监控 Antigravity IDE 会话时使用,例如发送提示、停止长时间生成、在多个已打开窗口间切换,或在不亲自操作编辑器的情况下读取当前任务和计划文档。
- 运行要求
- 以 Node.js 本地进程运行(npm 包 antigravity-link-extension,stdio)。需要先启动 Antigravity Link 扩展服务器,并提供 AG_BRIDGE_URL(例如本地桥接的基础地址)以及取自二维码 URL 的密钥 AG_BRIDGE_TOKEN。Antigravity IDE 必须以远程调试标志启动,手机与电脑需处于同一 Wi-Fi 网络才能使用移动端界面。
安装
在 SourceWeft 中
- 打开 控制台中的 Antigravity Link,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Antigravity Link (VS Code Extension)
[CI] [Open VSX Version] [Open VSX Downloads] [npm version] [npm downloads] [GitHub Stars] [License: MIT]
Read this in your language: 日本語 · 中文(简体) · 中文(繁體) · 한국어 · Deutsch · Français · Español · Português · Русский · Italiano · Polski · Türkçe · Tiếng Việt · Bahasa Indonesia · العربية
What's new in v1.0.20 — Security: removed
child_processdependency entirely; debug endpoints now require auth; localhost guard on all LS RPC calls. See CHANGELOG.
Contents
- Demo
- What you get
- Installation
- Prerequisites
- Quick start
- Commands
- Settings
- For agent builders
- How it works
- Account safety
- Troubleshooting
- FAQ
- Internationalization and accessibility
- Contributing
- API reference
- MCP server reference
You're running an Antigravity session and need to step away from your desk. The AI is mid-generation. You want to monitor it, redirect it, upload a file, or just read what it wrote from your phone, without coming back to your computer.
Antigravity Link makes that possible. Scan a QR code and your phone becomes a live mirror of the active chat: read responses as they stream, send messages, stop generation, upload files, dictate via voice, and switch between multiple Antigravity windows all from a mobile browser, on your local network.
For automation, the extension also exposes a local HTTP API and an MCP server so agents and external tools can drive Antigravity sessions programmatically.
Demo
https://github.com/user-attachments/assets/43c7d029-a598-474f-949e-5da333c9a3f2
Screenshots
What you get
- Live mirror of the active Antigravity chat — read and interact from your phone.
- File upload into the active Antigravity chat.
- Voice-to-text input from mobile (HTTPS required for mic permissions).
- Stop generation from your phone with a dedicated stop chip.
- Active instance switching for multiple Antigravity windows.
- Local HTTP API for automation and integrations (see API).
- MCP server for AI assistant integration (see MCP server).
- Local-only server with token authentication.
- Interface available in 16 languages with automatic detection and RTL support.
Installation
Install from the Antigravity extensions marketplace: search Antigravity Link or install directly from Open VSX.
Prerequisites
- Antigravity IDE installed and running.
- A phone and computer on the same Wi-Fi network.
- Antigravity launched with the remote debugging flag. This is required for the extension to discover and connect to your session. See the launch command in Quick start below.
Quick start
- Start Antigravity with remote debugging enabled. This is required; sessions launched without this flag are not discoverable by the extension.
Windows:
macOS:
Linux:
Multiple Antigravity sessions are supported, but every window must be launched with this command.
-
In VS Code, run:
Antigravity Link: Start Server -
Then run:
Antigravity Link: Show QR Code -
Scan the QR code with your phone. Your mobile UI is ready.
-
Your phone may warn that the connection is unsafe because the certificate is self-signed. This is expected for local HTTPS. Use your browser's "Advanced" or similar option to proceed (wording differs between Safari/Chrome/Firefox).
Commands
Settings
For agent builders
If you want to integrate quickly, use this sequence:
- Start the extension server and copy the token from the QR URL (
?token=...). - Use either MCP tools (
mcp-server.mjs) or direct HTTP calls againsthttps://localhost:3000. - Validate control flow with
/snapshot,/send, and/stop.
OpenAPI example:
MCP client configuration example:
Replace <extension-dir> with the path to the installed extension:
- Windows:
%USERPROFILE%\.antigravity-ide\extensions\cafetechne.antigravity-link-extension-1.0.20 - macOS/Linux:
~/.antigravity-ide/extensions/cafetechne.antigravity-link-extension-1.0.20
How it works (high level)
- The extension starts a local server (HTTP or HTTPS).
- It discovers Antigravity targets via the Chrome DevTools Protocol (CDP).
- Your phone connects to the mobile UI and sends upload/command requests.
- The extension injects into the selected chat target and saves files to
uploads/.
Account safety
Antigravity Link has no known ban cases and is designed to stay that way.
The extension works by connecting to a debug port that Antigravity exposes on your own machine the same Chrome DevTools Protocol used by VS Code's built-in debugger and browser devtools. It reads your local UI and simulates keypresses and clicks, exactly as if you were sitting at your keyboard.
What this means in practice:
- All network activity is local. The extension communicates only with: your phone on the LAN via the HTTPS server it starts; Antigravity IDE's Chrome DevTools Protocol port on
localhost:9000; and Antigravity's Language Server process on127.0.0.1for the stop-generation RPC. No data is sent to Google's servers or any external service beyond what Antigravity itself sends. - Nothing is injected into Antigravity's network traffic. The extension reads your screen and types into your editor it does not intercept or modify API calls.
- No Antigravity files are modified. There are no patches, hooks, or binary modifications.
- The server runs entirely on your machine. Your prompts, chat history, and files never leave your local network unless you explicitly expose the server externally.
- No data is sent to third-party services by this extension.
The source code is MIT-licensed and fully auditable: https://github.com/cafeTechne/antigravity-link-extension
Troubleshooting
- No instances found: Make sure every Antigravity window was launched with the
--remote-debugging-portcommand shown above. - Can't connect from mobile: Ensure your phone and computer are on the same network.
- Uploads save but don't appear in chat: Switch to the correct Active Instance in the mobile UI.
- Stuck on "Initializing…": The server is reachable but the chat surface has not been captured yet. Wait a few seconds for the CDP connection to initialize.
FAQ
Does this work on iOS and Android? Yes. The mobile UI runs in any modern mobile browser Safari on iOS, Chrome on Android, and others all work.
Does this work over cellular or VPN? Not by default: the server is LAN-only. For remote access you would need to expose it through a tunnel such as ngrok, wireguard, etc.. The token authentication and HTTPS remain in place regardless.
Is the self-signed certificate warning safe to accept? Yes. The certificate is generated locally on your machine at server start. The warning appears because it is not issued by a public certificate authority, not because the connection is insecure.
Can I use this for automation? Yes. The local HTTP API and MCP server are designed for exactly this. See the API and MCP server sections.
Internationalization and accessibility
The mobile interface automatically detects your browser's language and renders in:
English · 日本語 · 中文(简体)· 中文(繁體)· 한국어 · Deutsch · Français · Español · Português · Русский · Italiano · Polski · Türkçe · Tiếng Việt · Bahasa Indonesia · العربية
Arabic is rendered right-to-left automatically. Language detection uses navigator.language with no configuration required.
The interface is built with semantic HTML, ARIA roles, aria-live regions for connection status, keyboard navigation, and screen-reader-compatible labels throughout.
Contributing
Pull requests are welcome. Check the TODOs in the codebase or open a GitHub issue to discuss ideas before starting large changes.
See CONTRIBUTING.md for setup and PR notes.
API
The extension exposes a local HTTP API at https://localhost:3000 (or your configured port). All endpoints except /ping require an Authorization: Bearer <token> header. The token is the value after ?token= in the QR code URL.
Full schema: openapi.yaml
MCP server
Antigravity Link ships an MCP (Model Context Protocol) server that lets AI assistants drive your Antigravity session directly.
Setup
Add the following to your MCP client configuration (e.g. claude_desktop_config.json):
Replace <extension-dir> with the path to the installed extension:
- Windows:
%USERPROFILE%\.antigravity-ide\extensions\cafetechne.antigravity-link-extension-1.0.20 - macOS/Linux:
~/.antigravity-ide/extensions/cafetechne.antigravity-link-extension-1.0.20
The token is the value after ?token= in the QR code URL. The extension server must be running before the MCP client connects.
Available tools
Standalone vs workspace assets
This extension is self-contained. It ships its own public/ assets and uploads/ folder and does not require the parent npm run dev build.
If your workspace contains public/ or uploads/, the extension will prefer those paths automatically. This makes it easy to customize the mobile UI or keep uploads in your project root, but it also means behavior can differ between workspaces.
Star history
Acknowledgments
Inspired by early community projects including:
来源:README.md,提交 dae4483
工具
0版本历史
1- v1.0.13最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分