Document the antigravity MCP config as stdio via mcp-remote - #623
Conversation
Antigravity's remote-server client can complete the OAuth flow and still send initialize without the bearer token, so the serverUrl config this page documented fails on first contact with 401 Unauthorized. Document the npx mcp-remote stdio entry instead, matching the Claude Desktop, Windsurf and Zed pages, and rewrite the connect steps for the flow it actually takes. The API-key section becomes the headless path rather than a workaround for broken OAuth, and passes the key through env so it stays out of the process list. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
mcp-remote stores a --header value literally; it does not expand ${VAR}
from the env block, and Antigravity documents env for stdio servers
without documenting substitution inside args. The documented form would
have sent the placeholder as the header value.
Use --header-file, which mcp-remote reads itself, so the credential
works regardless of client substitution and stays out of the process
list. Verified against mcp-remote 0.14.3: an absolute path loads the
header, and a leading ~ is not expanded.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
There was a problem hiding this comment.
Risk level: Very Low
This pull request changes one documentation page, reference/mcp-server/clients/antigravity.mdx (+31 / −16). It updates the documented Antigravity MCP setup from a remote serverUrl entry to an npx mcp-remote stdio command, and it rewrites the API-key example to read a mode-600 header file via --header-file.
No application code, infrastructure, auth implementation, shared libraries, or build config changed. There is no CODEOWNERS file, so code-owner review is not required. No prior approval is on the PR.
Approving.
Sent by Cursor Automation: Assign PR reviewers
There was a problem hiding this comment.
Risk level: Very Low
This pull request changes one documentation page, reference/mcp-server/clients/antigravity.mdx (+31 / −16). The page is Mintlify reference content for connecting Google Antigravity to the Kernel MCP server. The diff replaces the remote serverUrl example with an npx mcp-remote stdio command and rewrites the API-key example to read a mode-600 header file via --header-file.
No application code, infrastructure, authentication implementation, shared libraries, schema, or build config changed. There is no CODEOWNERS file, so code-owner review is not required.
This automation already approved the current commit (efd058b). Risk is unchanged, so this run does not add another approval.
Sent by Cursor Automation: Assign PR reviewers
Without static client metadata, mcp-remote registers as "MCP CLI Proxy", so the consent screen asks the user to trust that name rather than Antigravity. Matches what the CLI writes. The API-key example is left without the flag: that path authenticates with the header and never reaches a consent screen. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
Pushed 3b59572 to keep this in step with kernel/cli#265, which picked up Without it, Left out of the API-key example on purpose — that path authenticates with the header and never reaches a consent screen, so the flag would be dead weight there.
|
There was a problem hiding this comment.
Risk level: Very Low
This pull request still changes one documentation page, reference/mcp-server/clients/antigravity.mdx (+39 / −16). The commit since the existing approval (3b59572) adds --static-oauth-client-metadata with client_name set to Antigravity, plus one sentence explaining that the consent screen would otherwise show MCP CLI Proxy.
No application code, infrastructure, authentication implementation, shared libraries, schema, or build config changed. There is no CODEOWNERS file, so code-owner review is not required.
This automation already approved the PR on efd058b. The new commit does not raise the risk, so the approval stands and this run does not add another approval.
Sent by Cursor Automation: Assign PR reviewers


Summary
The antigravity page documents a
serverUrlremote-server entry. That config does not work: Antigravity's remote-server client can complete the OAuth flow and still sendinitializewithout the bearer token, which comes back as401 Unauthorized(antigravity-cli#25). The page already carried that as a warning and pointed readers at an API key; the primary path it documents fails on first contact.Switches the documented config to the
npx mcp-remotestdio entry, matching the Claude Desktop, Windsurf and Zed pages.mcp-remoteruns the OAuth flow itself, so the token never depends on Antigravity's client.What changed on the page:
serverUrl→command/args, plus a line telling anyone who already installed the old shape to drop theserverUrlkey.mcp-remoteopens. The old paste-the-code-back step belongs to Antigravity's native OAuth, which this config no longer uses. Token cache location updated to~/.mcp-auth.--header-file, which keeps it out of the process list.Merge order
This can land ahead of kernel/cli#265, and probably should.
#612 has already merged, so the published page documents a config that fails today. The manual-config path this PR corrects needs no CLI at all, so merging this stops that immediately. The one line that does depend on #265 —
kernel mcp install --target antigravity, which no released CLI has; latest is v0.39.3 andmainhas no such target — is already published and already wrong, and nothing here makes it more so.On
--header-filerather than--headerplusenvThe first push of this branch used mcp-remote's documented
"Authorization:${VAR}"form with the value inenv. That was wrong.mcp-remotestores a--headervalue literally —parseHeaderLineregex-matchesName: valueand does noprocess.envexpansion — so the substitution has to come from the client, and Antigravity documentsenvfor stdio servers without documenting substitution insideargs. The header would have gone out as the literal placeholder.--header-fileis read bymcp-remoteitself, so it does not depend on the client, and it keeps the credential out of the process list the same way.Validation
mint broken-links: passes.HOME.--header-filechecked againstmcp-remote0.14.3: an absolute path logsLoaded 1 header(s)andUsing custom headers: Authorization; a leading~is not expanded and fails withENOENT.envfield confirmed against Antigravity's own MCP documentation.mcp-remoteagainst the documented URL was run directly: it discovers the authorization server, registers a client, and reaches the authorization step. The browser consent step and the flow inside Antigravity itself were not driven.🤖 Generated with Claude Code
Note
Low Risk
Documentation-only change to MCP client setup instructions; no application code or auth logic is modified.
Overview
Updates the Google Antigravity MCP doc so the primary setup matches other clients: stdio through
npx mcp-remoteinstead of a remoteserverUrlentry that can OAuth successfully yet still hit401oninitializewithout a bearer token.The opening Warning becomes a Note that explains why stdio is recommended. Manual JSON examples now use
command/args, including--static-oauth-client-metadataso the consent screen shows Antigravity, plus guidance to dropserverUrlif upgrading an old install.Connect steps change to reload installed servers and authorize in the browser
mcp-remoteopens, with tokens under~/.mcp-auth(replacing Antigravity’s paste-the-code OAuth flow). The API key section is reframed for headless use and documents--header-filewith a locked-down header file instead of embedding the key in config or process args.Reviewed by Cursor Bugbot for commit 3b59572. Bugbot is set up for automated code reviews on this repo. Configure here.