Skip to main content
Glama
README.md
# 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

A3.6/5.0

Scored across 13 tools

Disambiguation4/5

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.

Naming Consistency4/5

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.

Tool Count5/5

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.

Completeness5/5

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.

Maintenance

ActivityStale
ResponsivenessNo issues