antigravity-mcp
# Antigravity MCP Server π
[Π ΡΡΡΠΊΠΎΠ΅ ΠΎΠΏΠΈΡΠ°Π½ΠΈΠ΅ Π½ΠΈΠΆΠ΅](#russian-description)
This project is a **Model Context Protocol (MCP)** server that acts as a bridge between the [Google Antigravity CLI (agy)](https://antigravity.google) and various MCP clients (Claude Desktop, Cursor, Windsurf, Cline, etc.).
By using this server, you can empower your AI assistant with the advanced capabilities of Google Antigravity directly inside your favorite IDE.
---
## β¨ Features
This server provides **13 specialized tools** powered by the Antigravity TUI/CLI ecosystem. Here are the core capabilities:
### Core & Productivity
- **`agy_task`**: Execute arbitrary prompts using the Antigravity agent. Perfect for writing code, refactoring, or answering technical questions.
- **`agy_chat`**: Resume and manage conversational threads with context memory (`--continue` or `--conversation`).
- **`agy_notebook_query`**: Local RAG agent acting like Google NotebookLM for querying specific directories using `--add-dir`.
### Code & Git
- **`agy_analyze`**: Deep architectural review of files or folders.
- **`agy_refactor` / `agy_generate_tests` / `agy_explain_error`**: Developer-focused code tools for fast rewrites, test creation, and debugging compiler stack traces.
### Advanced Automation
- **`agy_autonomous_agent`**: Fully autonomous execution (YOLO mode) using the `--dangerously-skip-permissions` flag and `--mode accept-edits`.
- **`agy_sandbox_agent`**: Runs commands inside a restricted sandbox environment using the `--sandbox` flag.
- **`agy_security_audit`**: Strict security and logic audit (OWASP rules, XSS, SSRF, credential leaks) ignoring minor stylistic complaints.
### CLI Metadata
- **`agy_get_models`**: Retrieve the list of active Vertex AI/Gemini models configured in `agy`.
- **`agy_get_agents`**: List available subagents and custom profiles.
- **`agy_get_changelog`**: Show release notes of the installed CLI.
---
## π Prerequisites
* **Node.js**: Version 18 or higher.
* **Antigravity CLI**: Must be installed and authorized (`agy` command should be accessible in the terminal).
---
## π Installation
1. Clone or copy this repository files to your local drive.
2. Run the automated configuration script for your OS:
- **Windows:** Double-click `setup.bat`
- **macOS:** Double-click `setup.command`
- **Linux:** Run `./setup.sh` in the terminal
These scripts will automatically install npm packages, verify your `agy` installation, and generate a customized config JSON (`mcp_config_generated.json`) with absolute paths for easy copy-pasting.
---
## βοΈ Configuration for MCP Clients
### 1. Claude Desktop
Edit `%APPDATA%\Claude\claude_desktop_config.json` (Windows) or `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS):
```json
{
"mcpServers": {
"antigravity-mcp": {
"command": "node",
"args": [
"/absolute/path/to/antigravity-mcp/index.js"
]
}
}
}
```
### 2. Cursor (IDE)
1. Go to **Settings** -> **Cursor Settings** -> **General** -> **MCP**.
2. Click **+ Add Server**.
3. Name: `antigravity-mcp`.
4. Type: `command`.
5. Command: `node "/absolute/path/to/antigravity-mcp/index.js"`.
---
<a name="russian-description"></a>
# Antigravity MCP Server (ΠΠ° ΡΡΡΡΠΊΠΎΠΌ) π·πΊ
ΠΡΠΎΡ ΠΏΡΠΎΠ΅ΠΊΡ ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»ΡΠ΅Ρ ΡΠΎΠ±ΠΎΠΉ ΡΠ΅ΡΠ²Π΅Ρ **Model Context Protocol (MCP)**, ΠΊΠΎΡΠΎΡΡΠΉ Π²ΡΡΡΡΠΏΠ°Π΅Ρ Π² ΡΠΎΠ»ΠΈ ΠΌΠΎΡΡΠ° ΠΌΠ΅ΠΆΠ΄Ρ [Google Antigravity CLI (agy)](https://antigravity.google) ΠΈ ΡΠ°Π·Π»ΠΈΡΠ½ΡΠΌΠΈ MCP-ΠΊΠ»ΠΈΠ΅Π½ΡΠ°ΠΌΠΈ (Claude Desktop, Cursor, Windsurf, Cline ΠΈ Π΄Ρ.).
## β¨ ΠΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡΠΈ
Π‘Π΅ΡΠ²Π΅Ρ ΠΏΡΠ΅Π΄ΠΎΡΡΠ°Π²Π»ΡΠ΅Ρ **13 ΡΠΏΠ΅ΡΠΈΠ°Π»ΠΈΠ·ΠΈΡΠΎΠ²Π°Π½Π½ΡΡ
ΠΈΠ½ΡΡΡΡΠΌΠ΅Π½ΡΠΎΠ²**:
### ΠΠ°Π·ΠΎΠ²ΡΠ΅ ΠΈ ΠΏΡΠΎΠ΄ΡΠΊΡΠΈΠ²Π½ΡΠ΅
- **`agy_task`**: ΠΡΠΏΠΎΠ»Π½Π΅Π½ΠΈΠ΅ ΠΏΡΠΎΠΈΠ·Π²ΠΎΠ»ΡΠ½ΡΡ
Π·Π°ΠΏΡΠΎΡΠΎΠ² ΡΠ΅ΡΠ΅Π· Π°ΡΡΠΈΡΡΠ΅Π½ΡΠ° Antigravity.
- **`agy_chat`**: ΠΠΈΠ°Π»ΠΎΠ³ Ρ ΡΠΎΡ
ΡΠ°Π½Π΅Π½ΠΈΠ΅ΠΌ ΠΊΠΎΠ½ΡΠ΅ΠΊΡΡΠ° ΠΈ ΠΏΠ΅ΡΠ΅ΠΊΠ»ΡΡΠ΅Π½ΠΈΠ΅ΠΌ Π²Π΅ΡΠΎΠΊ ΠΏΠ΅ΡΠ΅ΠΏΠΈΡΠΊΠΈ.
- **`agy_notebook_query`**: ΠΠΎΠΊΠ°Π»ΡΠ½ΡΠΉ RAG-Π°Π³Π΅Π½Ρ (Π°Π½Π°Π»ΠΎΠ³ NotebookLM) ΠΏΠΎ Π²Π°ΡΠΈΠΌ Π»ΠΎΠΊΠ°Π»ΡΠ½ΡΠΌ ΠΏΠ°ΠΏΠΊΠ°ΠΌ.
### ΠΠΎΠ΄ ΠΈ Git
- **`agy_analyze`**: ΠΡΡ
ΠΈΡΠ΅ΠΊΡΡΡΠ½ΡΠΉ Π°Π½Π°Π»ΠΈΠ· ΠΈΡΡ
ΠΎΠ΄Π½ΠΎΠ³ΠΎ ΠΊΠΎΠ΄Π° ΡΠ°ΠΉΠ»ΠΎΠ² ΠΈΠ»ΠΈ ΡΠ΅Π»ΡΡ
ΠΊΠ°ΡΠ°Π»ΠΎΠ³ΠΎΠ².
- **`agy_refactor` / `agy_generate_tests` / `agy_explain_error`**: Π£ΡΠΈΠ»ΠΈΡΡ Π΄Π»Ρ Π±ΡΡΡΡΠΎΠ³ΠΎ ΡΠ΅ΡΠ°ΠΊΡΠΎΡΠΈΠ½Π³Π°, Π³Π΅Π½Π΅ΡΠ°ΡΠΈΠΈ ΠΌΠΎΠ΄ΡΠ»ΡΠ½ΡΡ
ΡΠ΅ΡΡΠΎΠ² ΠΈ ΠΎΠ±ΡΡΡΠ½Π΅Π½ΠΈΡ ΡΡΠ΅ΠΊΡΡΠ΅ΠΉΡΠΎΠ² ΠΎΡΠΈΠ±ΠΎΠΊ.
### ΠΠ²ΡΠΎΠ½ΠΎΠΌΠ½ΡΠ΅ Π°Π³Π΅Π½ΡΡ
- **`agy_autonomous_agent`**: ΠΠ°ΠΏΡΡΠΊ Π°Π³Π΅Π½ΡΠ° Π² ΡΠ΅ΠΆΠΈΠΌΠ΅ ΠΏΠΎΠ»Π½ΠΎΠΉ Π°Π²ΡΠΎΠ½ΠΎΠΌΠΈΠΈ (YOLO) Ρ ΡΠ»Π°Π³ΠΎΠΌ `--dangerously-skip-permissions` (ΠΌΠΎΠ΄Π΅Π»Ρ ΡΠ°ΠΌΠ° ΠΏΡΠΈΠ½ΠΈΠΌΠ°Π΅Ρ ΠΈ ΠΏΡΠΈΠΌΠ΅Π½ΡΠ΅Ρ ΠΏΡΠ°Π²ΠΊΠΈ ΠΊΠΎΠ΄Π° Π² ΡΠ΅ΠΆΠΈΠΌΠ΅ `--mode accept-edits`).
- **`agy_sandbox_agent`**: ΠΠ°ΠΏΡΡΠΊ Π·Π°Π΄Π°Ρ Π² Π±Π΅Π·ΠΎΠΏΠ°ΡΠ½ΠΎΠΉ ΠΈΠ·ΠΎΠ»ΠΈΡΠΎΠ²Π°Π½Π½ΠΎΠΉ ΠΏΠ΅ΡΠΎΡΠ½ΠΈΡΠ΅ Ρ ΠΏΠΎΠΌΠΎΡΡΡ ΡΠ»Π°Π³Π° `--sandbox`.
- **`agy_security_audit`**: Π‘ΡΡΠΎΠ³ΠΈΠΉ Π°ΡΠ΄ΠΈΡ Π±Π΅Π·ΠΎΠΏΠ°ΡΠ½ΠΎΡΡΠΈ ΠΊΠΎΠ΄Π° Π±Π΅Π· ΠΌΠ΅Π»ΠΊΠΈΡ
ΠΏΡΠΈΠ΄ΠΈΡΠΎΠΊ ΠΊ ΡΡΠΈΠ»Ρ (ΠΏΠΎΠΈΡΠΊ OWASP-ΡΡΠ·Π²ΠΈΠΌΠΎΡΡΠ΅ΠΉ, XSS, ΠΈΠ½ΡΠ΅ΠΊΡΠΈΠΉ, ΡΠ΅ΠΊΡΠ΅ΡΠΎΠ²).
### Π‘ΠΈΡΡΠ΅ΠΌΠ½ΡΠ΅ ΠΌΠ΅ΡΠ°Π΄Π°Π½Π½ΡΠ΅
- **`agy_get_models`**: ΠΡΠ²ΠΎΠ΄ ΡΠΏΠΈΡΠΊΠ° Π΄ΠΎΡΡΡΠΏΠ½ΡΡ
ΠΌΠΎΠ΄Π΅Π»Π΅ΠΉ.
- **`agy_get_agents`**: ΠΡΠ²ΠΎΠ΄ ΡΠΏΠΈΡΠΊΠ° Π½Π°ΡΡΡΠΎΠ΅Π½Π½ΡΡ
ΠΏΡΠΎΡΠΈΠ»Π΅ΠΉ ΠΠ-Π°ΡΡΠΈΡΡΠ΅Π½ΡΠΎΠ².
- **`agy_get_changelog`**: Π§ΡΠ΅Π½ΠΈΠ΅ ΠΈΡΡΠΎΡΠΈΠΈ ΠΎΠ±Π½ΠΎΠ²Π»Π΅Π½ΠΈΠΉ CLI.
---
## π Π£ΡΡΠ°Π½ΠΎΠ²ΠΊΠ°
1. Π‘ΠΊΠ°ΡΠ°ΠΉΡΠ΅ ΡΠ°ΠΉΠ»Ρ ΠΏΡΠΎΠ΅ΠΊΡΠ°.
2. ΠΠ°ΠΏΡΡΡΠΈΡΠ΅ ΡΠΊΡΠΈΠΏΡ Π°Π²ΡΠΎΠΌΠ°ΡΠΈΡΠ΅ΡΠΊΠΎΠΉ Π½Π°ΡΡΡΠΎΠΉΠΊΠΈ ΠΈΠ· ΠΏΠ°ΠΏΠΊΠΈ ΠΏΡΠΎΠ΅ΠΊΡΠ°:
- **Windows:** ΠΠ°ΠΏΡΡΡΠΈΡΠ΅ `setup.bat` (Π΄Π²ΠΎΠΉΠ½ΡΠΌ ΠΊΠ»ΠΈΠΊΠΎΠΌ)
- **macOS:** ΠΠ°ΠΏΡΡΡΠΈΡΠ΅ `setup.command` (Π΄Π²ΠΎΠΉΠ½ΡΠΌ ΠΊΠ»ΠΈΠΊΠΎΠΌ)
- **Linux:** ΠΡΠΏΠΎΠ»Π½ΠΈΡΠ΅ `./setup.sh` Π² ΡΠ΅ΡΠΌΠΈΠ½Π°Π»Π΅
Π‘ΠΊΡΠΈΠΏΡΡ Π°Π²ΡΠΎΠΌΠ°ΡΠΈΡΠ΅ΡΠΊΠΈ Π²ΡΠΏΠΎΠ»Π½ΡΡ `npm install`, ΠΏΡΠΎΠ²Π΅ΡΡΡ ΡΡΠ°ΡΡΡ `agy` ΠΈ ΡΠ³Π΅Π½Π΅ΡΠΈΡΡΡΡ ΠΏΠ΅ΡΡΠΎΠ½Π°Π»ΡΠ½ΡΠΉ ΡΠ°ΠΉΠ» Π½Π°ΡΡΡΠΎΠ΅ΠΊ `mcp_config_generated.json` Ρ Π°Π±ΡΠΎΠ»ΡΡΠ½ΡΠΌΠΈ ΠΏΡΡΡΠΌΠΈ Π΄Π»Ρ Π²Π°ΡΠ΅ΠΉ ΠΠ‘.
---
## π License / ΠΠΈΡΠ΅Π½Π·ΠΈΡ
MIT
TDQS
Scored across 13 tools
Most tools have clearly distinct purposes, but agy_task, agy_autonomous_agent, and agy_sandbox_agent all describe running tasks in different modes. The descriptions clarify the differences (autonomous auto-approves, sandbox is restricted), so the overlap is acceptable but not entirely absent.
All tools share the agy_ prefix, which creates a consistent brand, but the action patterns vary: some use verbs (agy_analyze, agy_refactor), some use nouns as verbs (agy_task, agy_security_audit), and three use agy_get_*. The mix is readable but not perfectly uniform.
Thirteen tools is well within the ideal range for a domain-specific CLI wrapper. Each tool maps to a distinct operation or query, and none feel redundant or filler.
The tool surface covers the core Antigravity CLI capabilities: running tasks (with various modes), interactive chat, analysis, refactoring, test generation, error explanation, security auditing, and retrieving metadata (models, agents, changelog). No obvious dead ends or missing core operations for an agent interacting with this CLI.