Skip to content

Commit 407ab32

Browse files
docs(antigravity): fix MCP config path and remote server key (#3840)
The Antigravity guide pointed at ~/.gemini/antigravity/mcp_config.json, a path that does not exist: Antigravity's global MCP configuration lives at ~/.gemini/config/mcp_config.json. The guide also stated that Antigravity uses serverUrl instead of url for remote servers. Antigravity accepts both, so the note now says that either key works and links to the Antigravity MCP documentation.
1 parent 71e83ae commit 407ab32

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

‎docs/installation-guides/install-antigravity.md‎

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ Uses GitHub's hosted server at `https://api.githubcopilot.com/mcp/`.
2525
5. Click "View raw config"
2626

2727
This will open your `mcp_config.json` file at:
28-
- **Windows**: `C:\Users\<USERNAME>\.gemini\antigravity\mcp_config.json`
29-
- **macOS/Linux**: `~/.gemini/antigravity/mcp_config.json`
28+
- **Windows**: `C:\Users\<USERNAME>\.gemini\config\mcp_config.json`
29+
- **macOS/Linux**: `~/.gemini/config/mcp_config.json`
30+
31+
This is Antigravity's global MCP configuration file. If it does not exist yet, create it with the content from the next step. See the [Antigravity MCP documentation](https://antigravity.google/docs/mcp/) for the full configuration schema.
3032

3133
#### Step 2: Add Configuration
3234

@@ -45,7 +47,7 @@ Add the following to your `mcp_config.json`:
4547
}
4648
```
4749

48-
**Important**: Note that Antigravity uses `serverUrl` instead of `url` for HTTP-based MCP servers.
50+
**Important**: Antigravity accepts `serverUrl` for remote servers, and also the standard `url` key from the MCP specification. Either one works, so `url` is not rejected.
4951

5052
#### Step 3: Configure Your Token
5153

@@ -131,9 +133,11 @@ To authenticate with a Personal Access Token instead (it takes precedence over O
131133

132134
## Troubleshooting
133135

134-
### "Error: serverUrl or command must be specified"
136+
### Server not connecting
137+
138+
Make sure the remote server entry has `serverUrl` (or `url`) pointing at the Streamable HTTP endpoint `https://api.githubcopilot.com/mcp/`. Antigravity does not support the legacy HTTP+SSE transport.
135139

136-
Make sure you're using `serverUrl` (not `url`) for the remote server configuration. Antigravity requires `serverUrl` for HTTP-based MCP servers.
140+
Also confirm you edited the file Antigravity actually reads: the global configuration at `~/.gemini/config/mcp_config.json`.
137141

138142
### Server not appearing in MCP list
139143

@@ -161,8 +165,8 @@ For a complete list of available tools and features, see the [main README](../..
161165

162166
## Differences from Other IDEs
163167

164-
- **Configuration key**: Antigravity uses `serverUrl` instead of `url` for HTTP servers
165-
- **Config location**: `.gemini/antigravity/mcp_config.json` instead of `.cursor/mcp.json`
168+
- **Configuration key**: Antigravity accepts `serverUrl` and also the standard `url` key for remote HTTP servers
169+
- **Config location**: `~/.gemini/config/mcp_config.json` instead of `.cursor/mcp.json`
166170
- **Tool limits**: Antigravity recommends keeping total enabled tools under 50 for optimal performance
167171

168172
## Next Steps

0 commit comments

Comments
 (0)