Repository navigation
fix(mcp): pass enabledTools and convert timeout for Antigravity - #3813
Merged
Merged
Conversation
Antigravity documents a per-server enabledTools allowlist and reads timeoutSeconds (integer seconds) rather than the canonical timeout in milliseconds. Stop stripping enabledTools for the antigravity-ide, antigravity-cli and antigravity-plugin targets, convert timeout to timeoutSeconds on generate and back on import, and warn about SSE servers, which Antigravity does not support. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01QUBBebviXSBQtiRAmDopZ7
…tigravity-mcp-fields # Conflicts: # src/generated/docs-content.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Antigravity MCP docs list
enabledToolsandtimeoutSecondsas per-server fields, and say remote servers must use Streamable HTTP. rulesync strippedenabledTools, wrote the canonicaltimeout(milliseconds) unchanged, and turned ansseserver intoserverUrlwith no warning. This PR fixes all three forantigravity-ide,antigravity-cliandantigravity-plugin.Changes
mcp-processor.ts: setsupportsEnabledTools: truefor the three Antigravity targets. The native key has the same name and meaning, so the value passes through unchanged in both directions.antigravity-mcp.ts:timeout(ms) becomestimeoutSeconds, rounded up withMath.ceil(ms / 1000). A negative value becomes-1, which turns the timeout off. If the server already setstimeoutSeconds, that value is kept,timeoutis dropped, and rulesync warns. Atimeoutthat is not a finite number is dropped with a warning.timeoutSecondsbecomestimeout× 1000. A negative value stays-1.sseserver (fromtypeortransport) now gets a warning that Antigravity does not support the legacy HTTP+SSE transport. It is still written asserverUrl, as before.docs/reference/file-formats.md: the Antigravity MCP note now describes these mappings.antigravity-cli.Verification
pnpm cicheck: passes.enabledTools(string[]allowlist),timeoutSeconds(integer seconds; a negative value turns it off), and "The legacy HTTP+SSE transport and thehttpUrlfield aren't supported."Refs #2666
🤖 Generated with Claude Code
https://claude.ai/code/session_01QUBBebviXSBQtiRAmDopZ7