antigravity-mcp-bridge

antigravity-mcp-bridge

Enables programmatic control of Google Antigravity 2.0 agents via MCP, with secure HTTP/stdio transports and Tailscale Funnel for remote access.

Category
Visit Server

README

Antigravity MCP Bridge (Antigravity 2.0 ↔ Gemini Spark)

Programmatically control Google Antigravity 2.0 agents on Windows via Gemini Spark and remote/local MCP clients over Streamable HTTP and stdio transport.


Architecture Overview

Gemini Spark (or Remote MCP Client)
      │
      │ HTTPS Request (Authorization: Bearer <MCP_AUTH_TOKEN>)
      ▼
Tailscale Funnel (Public HTTPS: https://<node>.<tailnet>.ts.net/mcp)
      │
      │ Encrypted Local Tunnel
      ▼
Streamable HTTP MCP Server (src/http_server.py on 127.0.0.1:8000)
      │
      ├── AuthMiddleware (Validates MCP_AUTH_TOKEN -> 401 Unauthorized if invalid)
      ├── /health & /healthz Diagnostic Endpoints
      │
      ▼
FastMCP Core Server (src/server.py - Streamable HTTP & stdio)
      │
      ├── launch_antigravity_agent
      ├── get_session_status
      ├── list_workspace_artifacts
      └── run_antigravity_cli_command
      │
      ▼
Antigravity Bridge Adapter -> agentapi.bat -> Antigravity 2.0 Runtime -> Local Workspace

Quick Start (Windows One-Click Operations)

  • START.bat: Initializes environment, creates .env with secure auth token, starts background HTTP server on 127.0.0.1:8000, enables Tailscale Funnel, and displays connection banner.
  • STATUS.bat: Inspects live server health, PID status, auth token state, Tailscale login & Funnel status, and Antigravity runtime availability.
  • STOP.bat: Gracefully terminates the HTTP MCP server process and disables Tailscale Funnel mapping.

Key Features

  1. Dual Transport Support:
    • Stdio transport for local MCP clients (python src/server.py).
    • Streamable HTTP transport for Gemini Spark and remote clients (START.bat / python -m src.http_server).
  2. Authentication & Token Protection:
    • AuthMiddleware enforcing token validation on /mcp.
    • Supports Authorization: Bearer <token>, x-api-key: <token>, or ?token=<token>.
    • Auto-generates 32-character hex token if missing in .env.
  3. Tailscale Funnel Integration:
    • Secure public HTTPS endpoint without purchasing a domain.
    • Robust detection, status reporting, and resolution guidance when Tailscale is absent or disabled.
  4. Antigravity 2.0 Local Engine:
    • Zero-config integration with local Antigravity Language Server via agentapi.bat.
  5. Safety & Workspace Isolation:
    • Workspace boundary validation preventing path traversal attacks.
    • Automatic secret key and token redaction from output streams.
    • Concurrent workspace execution locking preventing multi-agent conflicts.

Exposed MCP Tools

  • launch_antigravity_agent: Launches an Antigravity agent task targeting a local workspace.
  • get_session_status: Inspects session status, timestamps, and live metadata.
  • list_workspace_artifacts: Indexes files, sizes, timestamps, and SHA256 hashes in workspace.
  • run_antigravity_cli_command: Executes supported agentapi subcommands (get-conversation-metadata, send-message, new-conversation).

Verification & Test Suite

Run full automated unit and integration tests:

.venv\Scripts\python.exe -m pytest tests/

Run real end-to-end HTTP MCP integration test:

.venv\Scripts\python.exe remote_smoke_test.py

Run local stdio smoke test:

.venv\Scripts\python.exe smoke_test.py

Documentation

Detailed documentation is available in docs/:

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured