| name | antigravity-mcp |
| description | Use when Antigravity MCP is available locally and you want to query workspaces, check quota, run lightweight Antigravity asks, or generate images through the local antigravity-mcp-server. |
antigravity-mcp
Use the local Antigravity MCP server for lightweight asks, workspace inspection, and image generation.
Features
- ๐ Direct MCP Connection - Connects directly to antigravity-mcp-server
- ๐ผ๏ธ Image Generation - Generate images via Antigravity AI
- ๐ Code Analysis - Analyze project code and architecture
- ๐ Async Support - Full asyncio implementation
- ๐ก๏ธ Error Handling - Comprehensive error handling and logging
Prerequisites
ls ~/.config/antigravity-mcp/bin/antigravity-mcp-server
python3 --version
Installation
openclaw skills list | grep antigravity
Usage
Command Line
python3 ~/.agents/skills/antigravity-mcp/scripts/antigravity_cli.py ping
python3 ~/.agents/skills/antigravity-mcp/scripts/antigravity_cli.py list-tools
python3 ~/.agents/skills/antigravity-mcp/scripts/antigravity_cli.py list-workspaces
python3 ~/.agents/skills/antigravity-mcp/scripts/antigravity_cli.py quota-status
python3 ~/.agents/skills/antigravity-mcp/scripts/antigravity_cli.py ask \
"็ๆไธๅผ ๅคช็ฉบ็ซๅช็ๅพ็๏ผ็ฉฟ็ๅฎ่ชๆ๏ผ่ๆฏๆฏๅฐ็ๅๆ็ฉบ"
python3 ~/.agents/skills/antigravity-mcp/scripts/antigravity_cli.py ask \
"็ปไธๅชๅฏ็ฑ็็ซ" -o ~/Desktop/cat.png
As OpenClaw Tool
from antigravity_mcp import AntigravityMCPClient
client = AntigravityMCPClient()
await client.connect()
result = await client.ask_antigravity(
"็ๆไธๅผ ๆถๆๅพ๏ผๅฑ็คบๅพฎๆๅก็ณป็ป็ๆฐๆฎๆต",
output_path="/tmp/architecture.png"
)
await client.disconnect()
Available Actions
| Action | Description | Example |
|---|
ask-antigravity | Send prompt to Antigravity AI | Generate images, analyze code, answer questions |
antigravity-stop | Stop running generation | Cancel long-running tasks |
ping | Test connectivity | Check if server is ready |
list-workspaces | List available workspaces | See available project contexts |
quota-status | Check quota | Verify usage limits |
launch-antigravity | Launch Antigravity | Start Antigravity with CDP |
Architecture
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ OpenClaw Agent / CLI โ
โโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ antigravity-mcp Skill (Python/Asyncio) โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ AntigravityMCPClient โ โ
โ โ โโ connect() โ โ
โ โ โโ ask_antigravity() โ โ
โ โ โโ list_tools() โ โ
โ โ โโ disconnect() โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ stdio (JSON-RPC)
โโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ antigravity-mcp-server (binary) โ
โโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ CDP / WebSocket / HTTP
โโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Antigravity AI Service โ
โ (Image Generation, Code Analysis, etc.) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Troubleshooting
Server not found
ls ~/.config/antigravity-mcp/bin/antigravity-mcp-server
Connection timeout
ps aux | grep antigravity-mcp-server
tail ~/.config/antigravity-mcp/logs/latest.log
Image generation fails
- Verify Antigravity app has necessary permissions
- Check quota status: use
quota-status action
- Ensure prompt is not blocked by safety filters
Contributing
This Skill is designed to be:
- Modular: Easy to extend with new actions
- Maintainable: Clear error handling and logging
- Compatible: Works with OpenClaw ecosystem
License
MIT - OpenClaw Agent