supergravity-mcp

supergravity-mcp

An MCP server that lets Claude Code delegate tasks to the Google Antigravity desktop app by driving its real UI, providing a bridge for Intel Macs without the official CLI.

Category
访问服务器

README

supergravity-mcp

supergravity

An MCP server that lets Claude Code (or any MCP client) delegate tasks to the Google Antigravity desktop app — by driving its real, already-logged-in UI. No reverse engineering, no extracted credentials, no unofficial API calls.

Why this exists

Antigravity ships a CLI (agy) for scripting it headlessly — but on older Intel Macs, that CLI isn't available even though the desktop app runs fine (confirmed working on a 2015 MacBook Pro, macOS Monterey, Intel). This project is the missing bridge for anyone in that situation: it automates the app the same way a human would use it, so it works anywhere the app itself works.

How it works

  1. Antigravity is relaunched with Chrome's remote-debugging flag (--remote-debugging-port), the same mechanism browser test tools like Playwright use to drive Electron apps.
  2. A script connects to that debug port and: types your task into the chat box (via a simulated paste event — Antigravity's input is a rich-text editor, not a plain textarea, so it needs a real paste, not just poking text into the DOM), clicks send, and reads back the reply once it's done streaming.
  3. Everything happens through your own existing login. This tool never touches Antigravity's stored credentials, internal code, or private APIs.

Setup

Antigravity must be installed and already signed in. By default the tool looks for it at /Applications/Antigravity.app or ~/Desktop/Antigravity.app; set ANTIGRAVITY_APP_PATH if it lives somewhere else.

Easiest: install the plugin (MCP server + skill together)

claude plugin marketplace add presidentrice/supergravity-mcp
claude plugin install supergravity@supergravity-mcp

This gets you both the delegate_to_antigravity / get_antigravity_quota tools and the supergravity:delegate skill, which teaches Claude how to route natural requests ("use gemini", "ask antigravity", "check antigravity's quota") to the right tool call and model.

Or: just the MCP server, no skill

claude mcp add supergravity -- npx -y supergravity-mcp

Works fine without the skill — Claude still has the tools, just less built-in guidance on picking a model or handling a quota-exhausted error.

Building from source

npm install
npm run build

The tools

delegate_to_antigravity(task, model?, timeoutMs?)

  • task — what to ask Antigravity to do.
  • model — optional. One of the models in Antigravity's own selector (see AVAILABLE_MODELS in src/antigravity-client.ts).
  • timeoutMs — optional, default 120000 (2 minutes).

If the task generates files (images, documents, etc.), the result also includes a real filesystem path — Antigravity stores each conversation's files at ~/.gemini/antigravity/brain/<conversation-id>/ on disk, confirmed directly (not documented anywhere by Google). No need to fetch anything through Antigravity's local server; just read the file.

delegate_to_antigravity_batch(tasks)

Runs several independent tasks at once, each in its own Antigravity window — genuinely concurrent, not queued. Confirmed with two simultaneous ~200-word generations that both completed correctly in the same ~16s window. Opens extra windows automatically as needed (macOS's "New Window" menu command via System Events, with a fallback for when zero windows are open).

Requires Accessibility permission for whatever process runs this (System Settings > Privacy & Security > Accessibility) — macOS only. Don't run this at the same time as a separate delegate_to_antigravity call; window allocation between the two isn't coordinated.

delegateToAntigravityBatch([
  { task: "..." },
  { task: "...", model: "Claude Sonnet 4.6 (Thinking)" },
]);

list_antigravity_files(limit?)

Every file Antigravity has generated, across every conversation, most recent first — not scoped to a single delegate call. Useful for finding something generated earlier in this session or a past one.

get_antigravity_quota()

Reads Antigravity's Settings > Models panel and returns remaining quota — Gemini models and Claude+GPT models draw from separate pools, each with a weekly limit and a 5-hour limit. Useful to check before delegating, or to explain a send button is disabled error (usually means that pool is exhausted, not that the model is unavailable).

Picking a model

Antigravity doesn't show per-message token cost, only pooled quota %. The model parameter's description carries a rough cost/capability cheat sheet (MODEL_GUIDE in src/antigravity-client.ts) built from third-party API list prices and public benchmarks, researched mid-2026 — newer than this tool's own training data, so treat it as a starting point, not gospel:

Model ~Price (in/out per 1M tokens) Known for
Gemini 3.5 Flash $1.50 / $9 Fastest, cheapest frontier-tier option; strong coding/agentic benchmarks
Gemini 3.1 Pro $2 / $12 "Thinking" mode for harder reasoning (ARC-AGI-2 ~77%)
Claude Sonnet 4.6 $3 / $15 Coding quality, computer-use, agent workflows (SWE-bench ~80%)
Claude Opus 4.6 $5 / $25 Strongest complex/ambiguous reasoning; legal/financial/research-grade analysis
GPT-OSS 120B ~$0.03–0.09 / $0.10–0.40 Open-weight, near-o4-mini reasoning, far cheaper than the rest

These are what the underlying models cost via their own APIs elsewhere — Antigravity itself doesn't bill you per token, it draws down the pooled quota above instead.

Known limitations

  • A model's quota can run out. If a non-default model (e.g. Claude Opus) has hit its usage limit, Antigravity's send button stays disabled after selecting it, even though it's still pickable in the dropdown. The tool fails fast with a clear error in that case instead of hanging until timeout — just retry later or pick a different model.
  • UI automation, not an API. If Google changes Antigravity's screen layout, the CSS selectors this relies on (data-testid="send-button", the message input's aria-label, etc.) may need updating. That's the tradeoff for staying entirely inside Antigravity's terms of use — see below.
  • Reply extraction is a text heuristic, not a structured read. It looks for the "Thought for Ns" marker Antigravity renders before its answer and takes what follows. Works reliably in testing but is the most likely thing to break on a UI redesign.
  • Single-window assumption. Only tested with one Antigravity window open.

What this deliberately does NOT do

No unpacking of Antigravity's app.asar, no reading of stored auth tokens, no calling of internal/undocumented endpoints. Everything here operates through the same interface a human uses, which is why it doesn't carry the legal risk that reverse-engineering approaches do.

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选