Skip to content

fix(mcp): pass enabledTools and convert timeout for Antigravity - #3813

Merged
dyoshikawa merged 2 commits into
mainfrom
resolve-issue-2666-antigravity-mcp-fields
Nov 8, 2026
Merged

dyoshikawa merged 2 commits into
mainfrom
resolve-issue-2666-antigravity-mcp-fields

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Summary

The Antigravity MCP docs list enabledTools and timeoutSeconds as per-server fields, and say remote servers must use Streamable HTTP. rulesync stripped enabledTools, wrote the canonical timeout (milliseconds) unchanged, and turned an sse server into serverUrl with no warning. This PR fixes all three for antigravity-ide, antigravity-cli and antigravity-plugin.

Changes

  • mcp-processor.ts: set supportsEnabledTools: true for 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:
    • On generate, the canonical timeout (ms) becomes timeoutSeconds, rounded up with Math.ceil(ms / 1000). A negative value becomes -1, which turns the timeout off. If the server already sets timeoutSeconds, that value is kept, timeout is dropped, and rulesync warns. A timeout that is not a finite number is dropped with a warning.
    • On import, timeoutSeconds becomes timeout × 1000. A negative value stays -1.
    • A canonical sse server (from type or transport) now gets a warning that Antigravity does not support the legacy HTTP+SSE transport. It is still written as serverUrl, as before.
  • docs/reference/file-formats.md: the Antigravity MCP note now describes these mappings.
  • Tests: unit tests for the adapter and the processor flag, plus an e2e generate/import round trip for antigravity-cli.

Verification

Refs #2666

🤖 Generated with Claude Code

https://claude.ai/code/session_01QUBBebviXSBQtiRAmDopZ7

dyoshikawa and others added 2 commits November 8, 2026 20:44
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant