Wire up CodeGraph MCP server for code exploration - #50
Conversation
Registers the codegraph MCP server in .mcp.json/.cursor/mcp.json, adds a UserPromptSubmit hook and mcp__codegraph__* permission in .claude/settings.json, documents usage in CLAUDE.md, and ignores CodeGraph's local runtime files (db/socket/pid/log) via .codegraph/.gitignore. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
Warning Review limit reached
Next review available in: 34 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe changes integrate CodeGraph with Claude and Cursor through MCP configuration and a prompt hook. They exclude local CodeGraph data and document MCP and shell-based exploration workflows. ChangesCodeGraph integration
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.cursor/mcp.json:
- Line 12: Remove the machine-specific absolute path from the MCP server args in
the configuration, and either omit --path when Cursor uses the workspace
directory or replace it with a workspace-relative resolution supported by the
configuration. Do not commit a user-specific local path; use an untracked local
configuration if an explicit path is required.
In `@CLAUDE.md`:
- Around line 80-85: Update the CodeGraph guidance in CLAUDE.md to require a
real index-health check, such as codegraph status, before using CodeGraph. Do
not treat the mere presence of the .codegraph/ directory as proof of an
available index; preserve the instruction to skip CodeGraph when the repository
is not indexed.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 470f2cd2-430b-4b77-982e-8a469055ef5c
📒 Files selected for processing (5)
.claude/settings.json.codegraph/.gitignore.cursor/mcp.json.mcp.jsonCLAUDE.md
.cursor/mcp.json committed a machine-specific absolute --path other contributors won't have; drop it, mirroring .mcp.json's args which already omit it and rely on cwd. CLAUDE.md's "no .codegraph/ dir means unindexed" check no longer holds now that .codegraph/.gitignore is tracked, so the directory exists on every checkout regardless of whether this machine has actually run the daemon and built a database. Point at `codegraph status` instead. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Summary
codegraphMCP server (.mcp.json,.cursor/mcp.json) so agents can query the pre-built code-structure index instead of grep/Read loopsUserPromptSubmithook +mcp__codegraph__*permission in.claude/settings.jsonCLAUDE.md.codegraph/.gitignore, keeping only the ignore rule itself trackedTest plan
codegraph explore/mcp__codegraph__codegraph_explorereturn correct verbatim source + call graphgit statusonly tracks.codegraph/.gitignore, not the runtime db/socket/pid/logpnpm exec lint-staged+nuxt typecheckpassed via pre-commit hook🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Documentation
Chores