Skip to content

docs(mcp[clients]): Add Grok CLI and Antigravity#89

Merged
tony merged 3 commits into
mainfrom
docs-mcp-grok-agy
Jul 6, 2026
Merged

docs(mcp[clients]): Add Grok CLI and Antigravity#89
tony merged 3 commits into
mainfrom
docs-mcp-grok-agy

Conversation

@tony

@tony tony commented Jul 6, 2026

Copy link
Copy Markdown
Member

Summary

Adds Grok CLI and Antigravity (Google's agy) to the MCP install
picker and the clients.md reference — previously it covered only Claude
Code, Claude Desktop, Codex CLI, Gemini CLI, and Cursor.

Grok CLI registers through its own grok mcp add --scope <user|project> tmux -- <cmd> verb, which writes both user and project scopes to
~/.grok/config.toml / ./.grok/config.toml (TOML, the same shape as
Codex). Because the CLI writes both scopes itself, there's no manual-paste
cell.

Antigravity has no mcp add verb, so it's a JSON-config client like
Cursor: users paste the mcpServers snippet into
~/.gemini/config/mcp_config.json — the file the agy binary actually
reads (confirmed against the bundled agy-customizations skill doc and the
path baked into the binary).

The picker matrix is data-driven, so both clients slot into the existing
CLIENTS tuple; Antigravity reuses _json_body verbatim, and the
hand-kept DEFAULT_SCOPES mirror in widget.js was updated in lockstep.
clients.md also gains config-file rows and local-checkout examples for
both clients.

Test plan

  • uv run pytest — new parametrized NamedTuple cases assert every
    grok/antigravity panel body and guard the config-file paths; full suite
    green.
  • uv run mypy and ruff — clean.
  • just build-docs — built HTML renders both client tabs, both grok
    scopes, and the Antigravity paste destination.

Also includes a follow-on tooling fix (scripts/mcp_swap.py): the swap
pointed agy at ~/.gemini/antigravity/mcp_config.json, but the Antigravity
CLI reads ~/.gemini/config/mcp_config.json — its shared-config dir,
sibling to the config.json it loads at startup (confirmed via the agy
binary, its bundled skill doc, and a live startup log). The swap now writes
the file the CLI actually loads; use-local --dry-run and the test fixture
were verified against the corrected path.

why: Grok and Antigravity (agy) are both in active use, but the MCP
install picker only covered Claude / Codex / Gemini / Cursor, leaving
their registration steps undocumented.

what:
- Add a Grok CLI client (cli-kind): `grok mcp add --scope <s> tmux --
  <cmd>` writes both user and project scopes itself to
  ~/.grok/config.toml / ./.grok/config.toml (TOML, same shape as Codex),
  so no manual-paste cell is needed.
- Add an Antigravity client (json-kind): reuses the mcpServers snippet,
  pasted into ~/.gemini/config/mcp_config.json — the file the agy binary
  actually reads (agy has no `mcp add` verb).
- Mirror both clients in widget.js DEFAULT_SCOPES (hand-kept map).
- Add config-locations rows and local-checkout examples to clients.md.
- Cover the new grok/antigravity panel bodies with parametrized
  NamedTuple tests, including a guard on the config-file paths.
@codecov-commenter

codecov-commenter commented Jul 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.88%. Comparing base (f3aa48b) to head (8c6ad9a).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #89      +/-   ##
==========================================
+ Coverage   84.86%   84.88%   +0.01%     
==========================================
  Files          43       43              
  Lines        3198     3202       +4     
  Branches      438      439       +1     
==========================================
+ Hits         2714     2718       +4     
  Misses        352      352              
  Partials      132      132              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

tony added 2 commits July 5, 2026 19:53
why: The swap wrote agy's server config to
~/.gemini/antigravity/mcp_config.json, but the Antigravity CLI reads
~/.gemini/config/mcp_config.json — its shared-config dir, sibling to
the config.json it loads at startup (confirmed via the agy binary, its
bundled skill doc, and a live startup log). Servers swapped in there
were never loaded.

what:
- Point CLIS["agy"].config_path at ~/.gemini/config/mcp_config.json.
- Rewrite the scope docstring; drop the stale "may read a different
  profile" hedge now that the path is confirmed.
- Update the test fixture's expected agy config path.
Record the merge-ready docs deliverable: the MCP install picker now
covers Grok CLI and Antigravity alongside the existing clients.
@tony
tony merged commit 77f60f7 into main Jul 6, 2026
9 checks passed
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.

2 participants