Antigravity MCP Server
Acts as a programmatic bridge for the Google Antigravity Python SDK, enabling real-time AI agent swarms, bidirectional tool proxying, and Human-in-the-Loop execution safety.
README
Antigravity MCP Server
A powerful "Next-Level" Model Context Protocol (MCP) server that acts as a programmatic bridge for the Google Antigravity Python SDK. It enables real-time AI agent swarms, bidirectional tool proxying, and Human-in-the-Loop execution safety.
📖 Table of Contents
✨ Features
- Real-Time Swarm Communication: Agents dynamically share a "Blackboard" document, keeping their schemas and logic in sync.
- Bidirectional Tool Proxying: Inject your custom application logic as tools directly into the AI agent's execution context.
- Human-in-the-Loop (HitL): Block dangerous terminal actions and file system mutations until user approval is received.
- Feature Pipelines: Spin up specialized Planner, Coder, and Reviewer agents in a unified workflow.
🏛️ Architecture
graph TD;
Client[Your Application] -->|JSON-RPC| MCPServer[FastAPI MCP Server];
MCPServer -->|Tool Proxy| Client;
MCPServer --> SwarmManager[Swarm Manager Blackboard];
MCPServer --> HitL[HitL Interceptor];
HitL -.->|Approval Required| Client;
SwarmManager --> Agent1[Agent 1: Coder];
SwarmManager --> Agent2[Agent 2: Reviewer];
Agent1 --> AntigravitySDK[Google Antigravity SDK];
Agent2 --> AntigravitySDK;
🔌 API Reference
Model Management & Limits
GET /models: Lists available models, their benchmarks (MMLU), and token costsPOST /select_model: Selects the active model for a sessionGET /usage_limits: Checks the usage limit (5-hour constraints and weekly tokens)
Agent Lifecycle Management
POST /spawn_session: Creates a new agent session with capabilitiesGET /list_sessions: Returns active sessionsDELETE /kill_session/{session_id}: Terminates an agent
Interaction & Execution
POST /send_prompt/{session_id}: Sends a task to an agentGET /get_transcript/{session_id}: Fetches conversation history
Multi-Agent Swarms & Communication
POST /run_feature_pipeline: Triggers Planner -> Coder -> Reviewer workflowPOST /broadcast_update/{session_id}: Updates all agents about schema/state changesGET /read_blackboard: Retrieves the global swarm state
Bidirectional Tool Proxying
POST /register_client_tool: Injects a custom app tool into the agentPOST /handle_tool_callback/{callback_id}: Returns the tool execution result from your app back to the agent
Human-in-the-Loop (HitL) Safety
POST /approve_action/{action_id}: Allows a paused/blocked action to proceedPOST /reject_action/{action_id}: Rejects an action and sends feedback to the agent
Artifact Integration (Resources)
GET /agent/{session_id}/artifacts/list: Lists all markdown artifactsGET /agent/{session_id}/artifacts/{artifact_id}: Retrieves specific artifact contentGET /agent/{session_id}/artifacts/implementation_plan: Direct access to the design planGET /agent/{session_id}/artifacts/walkthrough: Direct access to the completion summary
🛠️ Installation
# Clone the repository
git clone https://github.com/Inferno-Aditya/antigravity-mcp.git
cd antigravity-mcp
# Install dependencies
pip install -r requirements.txt
🚀 Quick Start
Start the MCP Server on port 8000:
python server.py
The server will mount all standard MCP endpoints (spawn_session, send_prompt, etc.) on localhost:8000.
Spawning a Session via HTTP POST
curl -X 'POST' \
'http://localhost:8000/spawn_session' \
-H 'Content-Type: application/json' \
-d '{
"capabilities": ["terminal_read", "file_write"],
"system_prompt": "You are a backend engineering agent."
}'
🛡️ Human-in-the-Loop Intercepts
Whenever an agent attempts a high-risk operation, the MCP server automatically intercepts it.
The agent pauses while you interact with the /approve_action or /reject_action API endpoints, allowing you to review destructive commands before they run.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。