Antigravity MCP Bridge
Antigravity Sub-Agent Bridge (FastMCP)
コンテナ化されたFastMCPサーバーで、Google Antigravity CLI (agy --headless) をSSE経由のリモートModel Context Protocol (MCP)ツールとして公開します。
このブリッジにより、会話型AIクライアント(Google Spark、Claude、Cursor、ChatGPTなど)は、サンドボックス化されたコンテナ・ワークスペース内で本格的なコーディングおよび自動化サブエージェントをディスパッチできます。
🚀 主な機能
同期サブエージェント実行 (
execute_antigravity_sync):agy --headlessにコーディング/自動化タスクを直接ディスパッチし、エージェントの完了後に出力ログを返します(1〜3分の短いタスクに最適)。非同期バックグラウンド実行 (
start_antigravity_async): 長時間実行されるAntigravityエージェントをバックグラウンドで起動し、分離された実行のためのtask_idを返します。タスクのポーリングと管理 (
get_antigravity_task_status,list_antigravity_tasks): 進行状況をポーリングし、ログを検査し、すべてのバックグラウンド・サブエージェントを一覧表示します。ワークスペースの分離とサンドボックス化: ホストシステムのファイルを保護しつつ、エージェントがそのサンドボックス内で自由にビルド・テスト・実行できるように、
./workspacesのみをマウントしたDockerコンテナ内で実行します。mcp-server-oauth-proxyとのシームレスな統合: ポート8080/sseで標準のSSEエンドポイントを公開し、Google Sparkからの安全なアクセスのためにHome AssistantのOAuthプロキシに直接プラグインできます。
Related MCP server: agy-mcp
🛠️ リポジトリ構成
antigravity-mcp-bridge/
├── Dockerfile # Container image with Python 3.12, Node.js, git, & agy CLI
├── docker-compose.yml # Service definitions with volume mounts & port bindings
├── requirements.txt # fastmcp, mcp[cli], pydantic
├── server.py # FastMCP Server exposing Antigravity agent tools
├── .env.example # Environment variable template
├── .gitignore # Ignored artifacts & workspace directories
└── README.md # Documentation📦 クイックスタートとデプロイ
1. 環境を設定する
.env.example テンプレートをコピーします:
cp .env.example .env(オプション: agy 環境で必要な場合は、GEMINI_API_KEY または ANTIGRAVITY_API_KEY を追加してください)。
2. Docker Composeで起動する
docker compose up -d --buildFastMCPサーバーは次の場所でリッスンを開始します:
👉 http://localhost:8080/sse (またはホストのLAN IP)。
3. コンテナのヘルスチェック
docker compose logs -f🔗 mcp-server-oauth-proxy に接続する
このAntigravityサブエージェントブリッジを、Home AssistantのOAuthプロキシ経由でGoogle Sparkに安全に公開するには:
Home Assistantで、設定 > アドオン > MCP Server OAuth Proxy > 構成 を開きます。
serversの下に新しいサーバーエントリを追加します:
- client_name: "Google Spark"
server_name: "Antigravity Bridge"
server_url: "http://<YOUR_DOCKER_HOST_IP>:8080/sse"
bearer_token: ""
client_id: "spark-antigravity"
client_secret: "secret-antigravity"
allowed_redirect_uris: "https://oauth-redirect.googleusercontent.com"
host: "antigravity-oauth.yourdomain.com"
path_prefix: ""保存してアドオンを再起動します。
Google Sparkで、クライアントID
spark-antigravityを使用してhttps://antigravity-oauth.yourdomain.com/sseを指すカスタムツールを追加します。
🧰 利用可能なMCPツール
1. execute_antigravity_sync
説明:
agy --headless経由でタスクを同期的に実行し、出力を待ちます。パラメータ:
prompt(string, required): ゴールまたはコーディング指示。sub_path(string, optional):/workspace内で実行するサブディレクトリ。timeout_seconds(int, default: 300): 中止するまで待機する最大秒数。
2. start_antigravity_async
説明: Antigravityタスクをバックグラウンドで開始し、
task_idを返します。パラメータ:
prompt(string, required): ゴールまたはコーディング指示。sub_path(string, optional):/workspace内で実行するサブディレクトリ。
3. get_antigravity_task_status
説明: バックグラウンドタスクの進行状況と完全なログを検査します。
パラメータ:
task_id(string, required):start_antigravity_asyncが返す8文字のID。
4. list_antigravity_tasks
説明: アクティブおよび完了したすべてのバックグラウンドタスクを一覧表示します。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceRuns isolated AI agents in Docker containers with persistent workspaces and conversation history. Each agent has access to file operations, shell commands, GitHub integration, and can connect to external MCP servers for additional tools.3MIT
- AlicenseAqualityCmaintenanceWraps Google Antigravity CLI into 11 typed MCP tools, enabling any MCP client to invoke agy for code review, prototyping, execution, and long-running tasks.1116MIT
- AlicenseBqualityAmaintenanceAn MCP bridge that lets Codex delegate long-running agent work to the Antigravity CLI, providing observable and resumable tool-based execution with project scoping.135MIT
- AlicenseNot gradedqualityAmaintenanceIntegrates Google Antigravity's agy agent into MCP, enabling asynchronous delegation of complex tasks like code analysis and file management with job polling.1002MIT
Related MCP Connectors
A paid remote MCP for OpenAI Codex agent coordination MCP, built to return verdicts, receipts, usage
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/connormxy/antigravity-mcp-bridge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server