Back to Knowledge Base
How to Connect Antigravity (Google Gemini) to CoCoCo
Before you start
Section titled “Before you start”- Antigravity installed
- Your Endpoint URL and an active API Token from the MCP Connection page (see How to Find Your MCP Connection Details)
Step 1 — Open the MCP config
Section titled “Step 1 — Open the MCP config”The reliable way is from the IDE (the file path differs between versions): open the … (Additional Options) menu in the Agent panel → MCP Servers → Manage MCP Servers → View raw config. This opens mcp_config.json.
Step 2 — Add the CoCoCo server
Section titled “Step 2 — Add the CoCoCo server”{ "mcpServers": { "cococo": { "serverUrl": "https://<your-domain>/mcp", "headers": { "Authorization": "Bearer YOUR_API_TOKEN" } } }}Important: Antigravity uses serverUrl (not url) for remote HTTP MCP servers — this differs from Cursor and Claude. Replace YOUR_API_TOKEN with your CoCoCo token.
Step 3 — Reload and verify
Section titled “Step 3 — Reload and verify”Save the file, then close and reopen Antigravity (or click Refresh under Installed MCP Servers in Settings → Customizations). Ask the agent what CoCoCo tools it has access to, or check the MCP Servers list.
Troubleshooting
Section titled “Troubleshooting”- Won’t connect with
url****: remote servers needserverUrlin Antigravity — usingurlsilently fails. - Still not connecting: re-check the URL and that the token hasn’t been revoked, then reopen Antigravity.
- Authentication errors: confirm the token is active.