Set up the local review card
Use this only in a local Antigravity, Claude Code, or Codex session when the user asks for inline local review cards. Hosted-only sessions keep their hosted CodeRabbit connection. Registration adds a persistent server for the current OS user. An ordinary review request does not authorize changing host settings.
-
Follow the installed
code-reviewskill'sreferences/auth-recovery.mddiscovery procedure to verify the official CLI and its canonical absolute path outside the repository. Use the path from that machine. For an official macOS release binary, verify CodeRabbit's Apple signing identity before registering a persistent server:/usr/bin/codesign --verify --strict -R '=identifier "coderabbit" and anchor apple generic and certificate leaf[subject.OU] = "47UZS55279"' "/absolute/path/to/coderabbit"Run this read-only check in the local host's signing context using its usual command-scoped approval when required. If it is denied or fails, skip registration. For other supported installations, verify the official release's provenance as described in the discovery procedure. Check its
review --helpfor--review-card. Only when listed, check thatreview-card-mcp --helpidentifies the local stdio presenter subcommand. If either check fails, skip registration and use chat findings. Leave installation, upgrades, and sign-in under the user's control. -
Inspect the host's MCP settings for
coderabbit-local-review. Reuse an existing user configuration only if its transport is stdio and its command is exactly the verified absolute executable with the single argumentreview-card-mcpand no custom environment or working directory. A project or hosted server cannot establish this origin. Stop for a conflicting entry instead of overwriting it. Keep the separate hosted CodeRabbit server and its existing consent. -
With authorization to add this local server, use the installed host's native management command. Replace the quoted placeholder with the verified absolute executable, passing each argument literally. Do not use a shell launcher, a bare
coderabbitfrom PATH, an environment override, or a credential.Local host Command Antigravity CLI agy mcp add --type stdio coderabbit-local-review "/absolute/path/to/coderabbit" review-card-mcpClaude Code claude mcp add --scope user --transport stdio coderabbit-local-review -- "/absolute/path/to/coderabbit" review-card-mcpCodex codex mcp add coderabbit-local-review -- "/absolute/path/to/coderabbit" review-card-mcpIn the Antigravity App, use Customizations → Installed → MCP Servers → Copy Config File Path to identify the App's global configuration. If it uses the CLI's global configuration, the same
agycommand suffices. Otherwise, with authorization, add only this entry to the existingmcpServersmap in the App's user configuration, with the verified path:{ "mcpServers": { "coderabbit-local-review": { "command": "/absolute/path/to/coderabbit", "args": ["review-card-mcp"] } } } -
Reload the host's MCP connections or start a fresh local session. Verify the host attributes the tool to that user-configured local server and confirms Apps for that connection. The local server can confirm this in its initialization instructions. If either check is unavailable, use chat. Do not run a review or call a presenter to test setup.