Skip to main content
Glama
Antigravity MCP Orchestrator

Antigravity MCP Orchestrator

by haydermuhib

Overview

Google Gemini cloud services connect to external MCP servers over public HTTPS URLs. This server exposes an HTTP/SSE interface for Gemini while providing direct access to the local Antigravity IDE workspace, including:

  • Discovery and inspection of 160+ skills across workspace, global, and plugin scopes.

  • Inspection of plugins (cursor-team-kit, pstack, ponytail), rules (GEMINI.md, AGENTS.md), and transcripts.

  • Command execution within the active workspace directory.

  • Dynamic workspace switching at runtime (set_active_workspace) without server restarts.

  • Zero external Python dependencies: implemented with Python's standard library.


Related MCP server: Antigravity MCP Server

Quick Start

Install using pip or execute on-the-fly with uvx / pipx:

# Standard installation
pip install antigravity-mcp

# Or run instantly without pre-installing:
uvx antigravity-mcp --tunnel

2. Install from Source

Clone the repository and execute the setup script:

git clone https://github.com/haydermuhib/gemini-antigravity-orchestrator-mcp.git
cd gemini-antigravity-orchestrator-mcp
chmod +x install.sh && ./install.sh

The script verifies Python 3.10+, checks for cloudflared, installs the antigravity-mcp CLI into ~/.local/bin, and registers the server with local Antigravity IDE configuration.


Prerequisites

  • Python 3.10 or higher

  • Cloudflared (creates the HTTPS tunnel for Gemini Connected Apps)

    • Linux: sudo apt install cloudflared or download from Cloudflare

    • macOS: brew install cloudflared

    • Windows: winget install Cloudflare.cloudflared


Running the Server

Background Service (Linux and macOS)

# Start background server and tunnel
antigravity-mcp start   # or ./start_daemon.sh

# View status and retrieve the active public URL
antigravity-mcp status  # or ./status.sh

# Stop background server
antigravity-mcp stop    # or ./stop_daemon.sh

Foreground Mode

Using Pixi:

pixi run tunnel

Using standard Python:

# Terminal 1: run server on port 8080
python3 server.py --http 8080

# Terminal 2: open tunnel
cloudflared tunnel --url http://127.0.0.1:8080

On Windows (Command Prompt or PowerShell):

python server.py --tunnel

Connecting to Google Gemini Connected Apps

  1. Start the server using one of the methods above.

  2. Run ./status.sh or copy the HTTPS tunnel URL:

    https://<subdomain>.trycloudflare.com/sse
  3. In Google Gemini, navigate to Settings > Connected Apps > Connect to an MCP server.

  4. Configure the connection fields:

    • MCP server URL: https://<subdomain>.trycloudflare.com/sse

    • Client ID: gemini-client (or any string)

    • Client secret: gemini-secret (or any string)

  5. Click Connect. Gemini validates the endpoint and loads the tool catalog.


Local Antigravity IDE Configuration (Stdio)

To configure the server inside Google Antigravity IDE, Claude Desktop, or Cursor, add it to your mcp_config.json:

Option A: Direct PyPI Execution via uvx (No clone required)

{
  "mcpServers": {
    "antigravity-orchestrator": {
      "command": "uvx",
      "args": [
        "antigravity-mcp",
        "--stdio"
      ]
    }
  }
}

Option B: Local Source / Development

{
  "mcpServers": {
    "antigravity-orchestrator": {
      "command": "python3",
      "args": [
        "/path/to/gemini-antigravity-orchestrator-mcp/server.py",
        "--stdio"
      ],
      "env": {
        "PYTHONUNBUFFERED": "1"
      },
      "disabled": false
    }
  }
}

Available Tools

The server provides 18 tools to connected models:

Tool Name

Description

Key Arguments

get_antigravity_status

Returns IDE status, workspace path, tool/rule counts, and runtime info.

None

list_known_workspaces

Lists detected workspaces on the machine and shows which is active.

None

set_active_workspace

Switches the active workspace to another project directory at runtime.

workspace_path (required)

list_skills

Discovers skills across workspace, global, builtin, and plugin scopes.

scope, plugin_filter

get_skill

Retrieves SKILL.md text and metadata for a given skill.

skill_name (required)

search_skills

Searches skills using keyword matching.

query (required)

list_plugins

Lists installed plugins, manifests, versions, and subagents.

None

get_plugin_details

Returns full details of a plugin and its configuration.

plugin_name (required)

list_rules

Discovers active rules in workspace and global settings.

None

get_rule

Reads the content and trigger conditions of a rule.

rule_identifier (required)

list_conversations

Lists recent conversation IDs and brain artifacts.

None

get_conversation_transcript

Reads recent steps, user inputs, and tool calls from transcript.jsonl.

conversation_id, limit

list_artifacts

Lists markdown reports and diffs in the conversation brain.

conversation_id

read_artifact

Reads the markdown content of an artifact file.

artifact_name_or_path (required)

execute_workspace_command

Executes shell commands in the workspace with exit code, stdout, and stderr.

command (required), cwd, timeout

create_workspace_skill

Scaffolds a new Antigravity skill directory and SKILL.md.

name, description, instructions, scope

create_workspace_rule

Creates or updates an Antigravity rule in .agents/rules/.

filename, content, scope, trigger

orchestrate_agent_workflow

Generates an execution plan matching task intent with skills and rules.

task (required), preferred_aesthetic


Protocol Transports

  1. Server-Sent Events (SSE): GET /sse and POST /message?sessionId=<id>

  2. Streamable HTTP POST: POST / and POST /mcp

  3. Stdio Protocol: python3 server.py --stdio


Testing

Run the automated test suites:

# HTTP, SSE, OAuth, HEAD pre-flight, and static asset tests
python3 test_http_mcp.py

# Stdio JSON-RPC 2.0 protocol and 18-tool verification
python3 test_mcp.py

License

MIT License. See LICENSE for details.

Available Tools

18 tools
create_workspace_ruleB

Creates an Antigravity rule in the workspace (.agents/rules/*.md or GEMINI.md) or global settings.

Inputs: content (required), filename (required), scope, trigger.

create_workspace_skillC

Scaffolds a new Antigravity skill adhering to the Antigravity Customization System (creates SKILL.md with YAML frontmatter).

Inputs: name (required), description (required), instructions (required), scope.

execute_workspace_commandB

Executes a shell command directly in the Antigravity workspace, capturing stdout, stderr, exit code, and execution time.

Inputs: command (required), cwd, timeout.

get_antigravity_statusA

Returns the real-time status of Google Antigravity IDE, including active workspace paths, config locations, total skills/plugins/rules counts, and system environment.

Inputs: no named parameters.

get_conversation_transcriptB

Inspects the execution transcript of an Antigravity conversation, allowing Gemini to review recent agent steps, user prompts, thoughts, and tool invocations.

Inputs: limit, conversation_id.

get_plugin_detailsA

Gets full configuration, manifest metadata, rules, and MCP definitions of a specific plugin (e.g. 'cursor-team-kit', 'ponytail', 'pstack').

Inputs: plugin_name (required).

get_ruleB

Reads the full content and triggers of an Antigravity rule file by name or path.

Inputs: rule_identifier (required).

get_skillA

Retrieves the complete instructions (SKILL.md), YAML frontmatter, procedures, and associated scripts/references/examples for a specific Antigravity skill.

Inputs: skill_name (required).

list_artifactsB

Lists generated artifacts (plans, code diffs, reports, diagrams) in the Antigravity conversation brain directory.

Inputs: conversation_id.

list_conversationsB

Lists recent Antigravity IDE conversations, timestamps, artifacts counts, and status from the brain store.

Inputs: no named parameters.

list_known_workspacesA

Discovers and lists all known development projects and workspaces on the user's system, showing which one is currently active.

Inputs: no named parameters.

list_pluginsB

Lists all installed Antigravity plugins across workspace and global configurations (~/.gemini/config/plugins), including their manifests, descriptions, versions, exposed skills, and subagents.

Inputs: no named parameters.

list_rulesA

Discovers all active rules across workspace (GEMINI.md, AGENTS.md, .agents/rules/.md) and global settings (~/.gemini/config/rules/.md).

Inputs: no named parameters.

list_skillsC

Discovers and lists all skills available to Antigravity agents. Can filter by scope ('all', 'workspace', 'global', 'builtin', 'plugins') or by plugin name.

Inputs: scope, plugin_filter.

orchestrate_agent_workflowC

Formulates an end-to-end execution blueprint for a task by identifying required Antigravity skills, applicable rules, and steps.

Inputs: task (required), preferred_aesthetic.

read_artifactB

Reads the markdown or code content of a specific artifact file.

Inputs: artifact_name_or_path (required), conversation_id.

search_skillsA

Searches skills by natural language query or keywords across skill names and descriptions to find the right procedure for a task.

Inputs: query (required).

set_active_workspaceA

Dynamically switches the active workspace to another folder/repository on the user's machine at runtime. All subsequent commands, skills, and rules will target this new workspace without restarting the server.

Inputs: workspace_path (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 18 tools

    Disambiguation4/5

    Each tool largely targets a distinct resource or action (plugins, skills, rules, conversations, artifacts, workspaces, commands, workflow orchestration), with clear list/get/search/create distinctions. Minor potential confusion exists between get_antigravity_status and list_known_workspaces for workspace discovery, and between list_skills and search_skills for finding skills, but boundaries are generally clear.

    Naming Consistency5/5

    All tool names use a consistent snake_case verb_noun pattern: get_, list_, set_, search_, execute_, create_, orchestrate_. There are no deviations or mixed conventions.

    Tool Count4/5

    18 tools for an orchestrator covering multiple resource types (plugins, skills, rules, conversations, artifacts, workspaces, commands, workflow) is somewhat heavy but reasonable. Each resource has a small, focused set of operations, though some list/get pairs could arguably be consolidated.

    Completeness3/5

    The surface provides good discovery and read coverage, plus create operations for skills and rules. However, update and delete operations are missing for skills and rules, and there is no lifecycle management for conversations, artifacts, or workspaces, leaving notable gaps for full management.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Antigravity Link is an MCP server and mobile companion for Google's Antigravity IDE. It captures live snapshots of the Antigravity chat UI via Chrome DevTools Protocol and serves them to a mobile web client. From your phone you can send messages, upload files, stop AI generation, switch instances, and read task/walkthrough/plan documents. Exposes 9 MCP tools and a full OpenAPI 3.1 spec.
      57 npm
      225
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables Antigravity IDE to delegate coding, debugging, and architecture work to an already logged-in Gemini, Claude, ChatGPT, or DeepSeek web session, then applies the returned changes directly to workspace files over a local WebSocket bridge.
      9
      GPL 3.0
    • A
      license
      C
      quality
      B
      maintenance
      Connect Google Antigravity 2, VS Code, Cursor and Claude Code to Gemini Notebooks (formerly NotebookLM, both personal and Google Cloud Enterprise). Exposes 21 MCP tools for workspace notebook binding, grounded Q&A with citations, Fast and Deep Research, bi-directional file sync, and Studio artifact generation.
      21
      13
      MIT