coderabbitai-mcp

bradthebeeble/coderabbitai-mcp

3.3

If you are the rightful owner of coderabbitai-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The CodeRabbit MCP Server is designed to facilitate interaction with CodeRabbit AI reviews on GitHub pull requests, enabling LLMs to programmatically analyze and implement suggestions.

The CodeRabbit MCP Server is a specialized server that leverages the Model Context Protocol (MCP) to interact with CodeRabbit AI reviews on GitHub pull requests. This server is designed to enable Large Language Models (LLMs) to programmatically analyze, understand, and implement suggestions provided by CodeRabbit. By integrating with GitHub, the server can retrieve reviews, extract comments, and resolve issues, streamlining the code review process. The server supports automated workflows through slash commands, allowing for efficient review processing and issue resolution. It is built using TypeScript and the official MCP SDK, ensuring a robust and modular design. The server respects GitHub's API rate limits and provides detailed logging for troubleshooting. It is compatible with various platforms, including Claude Desktop and Claude Code, and can be configured using environment variables for enhanced security.

Features

  • Retrieve all CodeRabbit reviews for a specific pull request
  • Get detailed information about specific reviews, including configuration and files reviewed
  • Extract individual line comments with AI prompts and suggestions
  • Mark comments as addressed, won't fix, or not applicable
  • Automated workflow processing with slash commands

Usages

usage with Claude Desktop

{
  "mcpServers": {
    "coderabbitai": {
      "command": "npx",
      "args": ["coderabbitai-mcp@latest"],
      "env": {
        "GITHUB_PAT": "ghp_your_token_here"
      }
    }
  }
}

usage with Claude Code

{
  "mcpServers": {
    "coderabbitai": {
      "command": "npx",
      "args": ["coderabbitai-mcp@latest"],
      "env": {
        "GITHUB_PAT": "ghp_your_token_here"
      }
    }
  }
}

Tools

  1. get_coderabbit_reviews

    Get all CodeRabbit reviews for a specific pull request.

  2. get_review_details

    Get detailed information about a specific CodeRabbit review.

  3. get_review_comments

    Get all individual line comments from CodeRabbit reviews.

  4. get_comment_details

    Get detailed information about a specific CodeRabbit comment.

  5. resolve_comment

    Mark a CodeRabbit comment as resolved.