Antigravity Mobile Command MCP Server

Antigravity Mobile Command MCP Server

Enables mobile control of Antigravity coding agents via Telegram, allowing task submission, plan approval, and artifact viewing.

Category
Visit Server

README

šŸš€ Antigravity Mobile Command

Transform your mobile device into a remote Mission Control for your coding environment.

Antigravity Mobile Command is an "Agentic Bridge" that leverages Google Antigravity's native Model Context Protocol (MCP) and Artifact system to provide a bi-directional, real-time feedback loop via Telegram.

Telegram Bot Preview

✨ Features

  • šŸ“± Prompt-to-Action Loop: Send coding tasks from your phone, approve plans with inline buttons
  • šŸ“ø Visual Verification: Auto-receive screenshots and recordings of UI changes
  • āœ… Interactive Governance: Approve or reject code diffs via Telegram buttons
  • 🚨 Error Awareness: Get notified of terminal crashes with full stack traces
  • šŸ“Š Live Status Ticker: Real-time progress updates without message spam

šŸ› ļø Quick Start

Prerequisites

Installation

# Clone the repository
git clone https://github.com/yourusername/antigravity-telegram.git
cd antigravity-telegram

# Install dependencies
pip install -e .

# Or with uv
uv pip install -e .

Configuration

  1. Copy the example environment file:
cp .env.example .env
  1. Edit .env with your credentials:
TELEGRAM_BOT_TOKEN=your_bot_token_from_botfather
AUTHORIZED_CHAT_IDS=your_chat_id
ARTIFACTS_PATH=~/.gemini/antigravity/artifacts

Running

Run both Telegram bot and MCP server:

python -m src.main

Run only the Telegram bot:

python -m src.main --mode bot

Run only the MCP server (for Antigravity integration):

python -m src.main --mode mcp

šŸ”Œ Antigravity MCP Integration

1. Add to MCP Config

Add the Telegram bridge to your Antigravity MCP configuration (~/.gemini/mcp_config.json):

{
  "mcpServers": {
    "telegram-bridge": {
      "command": "python",
      "args": ["-m", "src.main", "--mode", "mcp"],
      "cwd": "/path/to/antigravity-telegram",
      "env": {
        "TELEGRAM_BOT_TOKEN": "your_token",
        "AUTHORIZED_CHAT_IDS": "your_chat_id",
        "ARTIFACTS_PATH": "~/.gemini/antigravity/artifacts"
      }
    }
  }
}

2. Copy the Workflow

Copy the workflow file to your Antigravity workflows:

cp workflows/mobile-command.md ~/.agent/workflows/

3. Use from Telegram

  1. Start a chat with your bot on Telegram
  2. Send /start to verify the connection
  3. Send /prompt "Your coding task here"
  4. Approve plans and review changes from your phone!

šŸ“± Telegram Commands

Command Description
/start Show welcome message and verify connection
/prompt <text> Send a coding task to Antigravity
/status Check current execution status
/cancel Cancel the current operation
/help Show help message

šŸ”§ MCP Tools Available

The following tools are exposed to Antigravity for communication:

Tool Description
send_telegram_message Send messages to the user
request_plan_approval Request approval for implementation plans
request_change_approval Request approval for code changes
send_artifact Send screenshots/recordings to Telegram
update_status Update the status ticker message
notify_error Send critical error notifications
await_user_response Wait for user input

šŸ—ļø Architecture

ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”     ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”     ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
│  šŸ“± Telegram    │◄───►│  šŸŒ‰ Python       │◄───►│  🌌 Antigravity │
│     App         │     │     Bridge       │     │     Agent       │
ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜     ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜     ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜
                               │
                               ā–¼
                        ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
                        │  šŸ“ Artifact     │
                        │     Watcher      │
                        ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜

šŸ“ Project Structure

antigravity-telegram/
ā”œā”€ā”€ src/
│   ā”œā”€ā”€ main.py              # Entry point
│   ā”œā”€ā”€ config.py            # Configuration management
│   ā”œā”€ā”€ bot/
│   │   ā”œā”€ā”€ handlers.py      # Telegram command handlers
│   │   ā”œā”€ā”€ keyboards.py     # Inline keyboard builders
│   │   └── message_queue.py # Async message queue
│   ā”œā”€ā”€ mcp_server/
│   │   ā”œā”€ā”€ server.py        # MCP server implementation
│   │   ā”œā”€ā”€ tools.py         # MCP tool definitions
│   │   └── state.py         # Approval state management
│   ā”œā”€ā”€ monitors/
│   │   ā”œā”€ā”€ artifacts.py     # Artifact directory watcher
│   │   └── terminal.py      # Terminal output monitor
│   └── utils/
│       └── formatting.py    # Message formatting
ā”œā”€ā”€ config/
│   └── mcp_config.json      # MCP config template
ā”œā”€ā”€ workflows/
│   └── mobile-command.md    # Antigravity workflow
ā”œā”€ā”€ .env.example
ā”œā”€ā”€ pyproject.toml
└── README.md

šŸ”’ Security

  • Only authorized chat IDs can interact with the bot
  • Bot tokens are stored in environment variables
  • Session files are gitignored

šŸ“ License

MIT License - see LICENSE for details.

šŸ¤ Contributing

Contributions are welcome! Please feel free to submit a Pull Request.


Built with ā¤ļø for the Antigravity community

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