Data coding-agents/
Antigravity CLI MCP config: file location, transports and auth
One row of the MCP client config reference, checked 2026-12-06.
- Client
- Antigravity CLI
- Vendor
- Config file
- ~/.gemini/config/mcp_config.json (global); <workspace>/.agents/mcp_config.json (workspace); enabled plugins can add their own mcp_config.json
- Format
- JSON, mcpServers map; same schema for the Antigravity app, IDE and CLI
- Scopes
- Global (all projects), workspace, plugin
- Transports
- stdio (command); Streamable HTTP (serverUrl or url); legacy HTTP+SSE not supported
- Remote OAuth
- Yes. Automatic OAuth 2.0 with PKCE for servers that support CIMD or DCR; otherwise oauth.clientId and optional oauth.clientSecret; tokens stored in ~/.gemini/antigravity/mcp_oauth_tokens.json
- Admin controls
- Gemini Enterprise AI developer tools settings: MCP servers toggle (off by default) and an Allowed server configuration JSON allowlist (local_servers, remote_servers); needs the Gemini Enterprise Admin role; requires Antigravity CLI 1.2.10 or later
- Docs
- https://antigravity.google/docs/mcp
- Source
- https://docs.cloud.google.com/gemini/enterprise/docs/ai-developer-tools-settings
From the MCP client config reference, checked Dec 6, 2026. Licence CC BY 4.0.
Antigravity CLI reads MCP servers from ~/.gemini/config/mcp_config.json for all projects and from .agents/mcp_config.json in a workspace. The Antigravity app and IDE use the same schema, per Google’s Antigravity MCP docs. Field names differ from Gemini CLI’s. Streamable HTTP servers use serverUrl (or url), and the legacy HTTP+SSE transport and the httpUrl and sseUrl fields aren’t supported.
MCP tools you haven’t configured run in Ask mode, so each call needs your approval. enabledTools and disabledTools filter tools per server.
Organization-wide control sits in Gemini Enterprise. An admin with the Gemini Enterprise Admin role turns on the MCP servers setting and writes a JSON allowlist of local_servers and remote_servers. These settings require Antigravity CLI 1.2.10 or later, per Google Cloud’s docs. Gemini CLI’s docs say Antigravity CLI replaced Gemini CLI for unpaid tier and Google One users on June 18, 2026.
Sources
Cite this page
Agents for Devs. "Antigravity CLI MCP config: file location, transports and auth." Published Dec 6, 2026. https://agentsfordevs.com/mcp-clients/antigravity-cli - Page: https://agentsfordevs.com/mcp-clients/antigravity-cli
- Markdown version: https://agentsfordevs.com/mcp-clients/antigravity-cli.md
- Reuse: quote or summarize with a link to this page. Reuse terms