Skip to content

fix: detect Antigravity Monk MCP structurally - #130

Open
GioLealhmx wants to merge 1 commit into
monk-io:mainfrom
GioLealhmx:agent/antigravity-mcp-structured-check
Open

fix: detect Antigravity Monk MCP structurally#130
GioLealhmx wants to merge 1 commit into
monk-io:mainfrom
GioLealhmx:agent/antigravity-mcp-structured-check

Conversation

@GioLealhmx

Copy link
Copy Markdown

Summary

  • Detect existing Antigravity Monk MCP registration by parsing .mcpServers.monk instead of grepping the whole JSON file.
  • Preserve unrelated config values that happen to equal "monk".
  • Keep the three POSIX launcher copies in sync.
  • Add a regression test covering unrelated "monk" text, registration, preservation of an existing server, and second-run idempotence.

Root cause and impact

The launcher skipped Antigravity MCP registration whenever "monk" appeared anywhere in mcp_config.json. An unrelated preference or description could therefore suppress .mcpServers.monk, leaving Antigravity disconnected even when the companion was healthy.

Validation

  • & 'C:\Program Files\Git\usr\bin\bash.exe' -lc 'PATH=/usr/bin:/bin:$PATH; tests/start-monk-agent-antigravity-registration.sh'
  • & 'C:\Program Files\Git\usr\bin\bash.exe' -lc 'PATH=/usr/bin:/bin:$PATH; sh -n tests/start-monk-agent-antigravity-registration.sh; sh -n scripts/start-monk-agent.sh; sh -n plugins/monk/scripts/start-monk-agent.sh; sh -n .antigravity-plugin/scripts/start-monk-agent.sh'
  • git diff --check
  • Root/plugin/Antigravity launcher copies are byte-identical.

Fixes #19

Prepared with Codex assistance and validated locally with Git Bash on Windows.

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.

[Bug bounty] unrelated "monk" text skips Antigravity MCP registration

1 participant