Connecting to Google Antigravity
Google Antigravity supports the Model Context Protocol (MCP) natively, allowing the editor to securely connect to tools and external services defined in your HasMCP dashboard.Setup Instructions
Antigravity manages connections through its built-in MCP Store.1. Access the MCP Configuration
2. Configure Custom HasMCP Server
Edit Config
In the Manage MCP Servers view, click on View raw config. This will open
your
mcp_config.json file.Option A: Direct URL Connection
This is the simplest way to connect if your server supports token-based URL authentication.Option B: Remote Bridge (Recommended for Security)
Uses the@hasmcp/remote-mcp bridge to keep your token in environment variables.
- PROJECT_ID / SERVER_ID: Your unique project or server identifier from the HasMCP dashboard.
- YOUR_TOKEN / YOUR_TOKEN_VALUE: The secure token generated for your server.