coderabbit-mcp-setup
v1.1.0
Published
Setup CodeRabbit MCP for Claude Code
Maintainers
Readme
cr-mcp
Setup CodeRabbit MCP for Claude Code in one command.
What it does
Configures coderabbitai-mcp in your Claude Code settings, allowing Claude to:
- Fetch CodeRabbit reviews from your PRs
- Read and fix issues automatically
- Mark comments as resolved
Usage
npx cr-mcp <github-pat> [project-path]Arguments
| Argument | Required | Description |
|----------|----------|-------------|
| github-pat | Yes | Your GitHub Personal Access Token |
| project-path | No | Path to your project (defaults to current directory) |
Examples
# Setup for current directory
npx cr-mcp ghp_xxxxxxxxxxxx
# Setup for specific project
npx cr-mcp ghp_xxxxxxxxxxxx "D:\MyProject"Getting a GitHub PAT
- Go to https://github.com/settings/tokens
- Click "Generate new token (classic)"
- Give it a name like
coderabbit-mcp - Select
reposcope - Click "Generate token"
- Copy the token (starts with
ghp_)
After Setup
- Restart Claude Code to load the MCP
- Ask Claude:
"Check CodeRabbit reviews for PR #45"
How it works
This tool adds the CodeRabbit MCP configuration to your ~/.claude.json file for the specified project. The MCP uses your GitHub PAT to fetch CodeRabbit review comments from your PRs.
Requirements
- Node.js 18+
- Claude Code
- CodeRabbit installed on your GitHub repo
- GitHub PAT with
reposcope
License
MIT
