
bradthebeeble/coderabbitai-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
GitHubのプルリクエストでCodeRabbit AIのレビューとやり取りするためのMCPサーバー
概要
GitHubのプルリクエストでCodeRabbit AIのレビューとやり取りするためのモデルコンテキストプロトコル(MCP)サーバー。 このサーバーでは、大規模なランゲージモデル(LLM)を解析、理解、および実装することができます。 - : 特定のプルリクエストに対するすべてのCodeRabbitレビューを取得する - : 設定やファイルレビューを含む特定のレビューに関する詳細な情報を入手してください - : AIプロンプトと提案で個々のラインコメントを入手してください - : コンテキストと修正例のある特定のコメントにディープダイビング - : マークコメントをアドレスとして、修正しません、または適用されません - : レビュー処理を完了するための/coderabbit-reviewスラッシュコマンドを使用する インストール不要! npx で直接実行する: 1. : [https://github.com/settings/tokensで作成する - 必要な範囲:リポジトリ(プライベートリポジトリ)またはpublic repo(公開のみ)2.
概要(AI 翻訳)
GitHubのプルリクエストでCodeRabbit AIのレビューとやり取りするためのモデルコンテキストプロトコル(MCP)サーバー。 このサーバーでは、大規模なランゲージモデル(LLM)を解析、理解、および実装することができます。
##特徴
- CodeRabbitレビューを入手: 特定のプルリクエストに対するすべてのCodeRabbitレビューを取得する -Review Details: 設定やファイルレビューを含む特定のレビューに関する詳細な情報を入手
- コメントを抽出:AIプロンプトと提案で個々のラインコメントを得る
- コメントの細部: コンテキストと固定例で特定のコメントにディープダイビング
- コメントを解決: アドレスとしてコメントをマーク, 修正しません, または適用されません
- 自動化されたワークフロー プロンプト: [
/coderabbit-review]] slash コマンドを使用して、完全なレビュー処理
クイックスタート
インストール (NPX - 推奨)
インストール不要! npx で直接実行する:
前提条件
- GitHub Personal Access Token: 作成
- 必須範囲:[
repo(プライベートリポジトリ)または[public_repo(パブリックのみ)
- Node.js 18+: サーバの実行に必要な
設定
##Claudeデスクトップの設定
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
CodeRabbit MCP Server
A Model Context Protocol (MCP) server for interacting with CodeRabbit AI reviews on GitHub pull requests. This server enables Large Language Models (LLMs) to analyze, understand, and implement CodeRabbit suggestions programmatically.
Features
- Get CodeRabbit Reviews: Retrieve all CodeRabbit reviews for a specific pull request
- Review Details: Get detailed information about specific reviews including configuration and files reviewed
- Extract Comments: Get individual line comments with AI prompts and suggestions
- Comment Details: Deep dive into specific comments with context and fix examples
- Resolve Comments: Mark comments as addressed, won’t fix, or not applicable
- Automated Workflow Prompt: Use
/coderabbit-reviewslash command for complete review processing
Quick Start
Installation (NPX - Recommended)
No installation required! Run directly with npx:
# Install the latest stable version explicitly
npx coderabbitai-mcp@latest
Prerequisites
- GitHub Personal Access Token: Create at
- Required scopes:
repo(for private repos) orpublic_repo(for public only)
- Required scopes:
- Node.js 18+: Required for running the server
Configuration
Claude Desktop Configuration
To use the CodeRabbit MCP server in Claude Desktop, add it to your configuration file:
Configuration file locations:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%/Claude/claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
Step-by-step setup:
- Open your Claude Desktop configuration file (create it if it doesn’t exist)
- Add the CodeRabbit MCP server configuration:
{
"mcpServers": {
"coderabbitai": {
"command": "npx",
"args": ["coderabbitai-mcp@latest"],
"env": {
"GITHUB_PAT": "ghp_your_token_here"
}
}
}
}
- Replace
ghp_your_token_herewith your actual GitHub Personal Access Token - Save the file and restart Claude Desktop
Claude Code Configuration
To use the CodeRabbit MCP server in Claude Code, configure it in your project:
Step-by-step setup:
-
Create a
.claudedirectory in your project root (if it doesn’t exist):mkdir .claude -
Create or edit
.claude/config.json:
{
"mcpServers": {
"coderabbitai": {
"command": "npx",
"args": ["coderabbitai-mcp@latest"],
"env": {
"GITHUB_PAT": "ghp_your_token_here"
}
}
}
}
- Replace
ghp_your_token_herewith your actual GitHub Personal Access Token - The server will be available next time you start Claude Code in this project
Pro tip: For security, you can use environment variables instead of hardcoding the token:
{
"mcpServers": {
"coderabbitai": {
"command": "npx",
"args": ["coderabbitai-mcp@latest"],
"env": {
インストール
npx coderabbitai-mcp@latest設定
{
"mcpServers": {
"coderabbitai": {
"command": "npx",
"args": ["coderabbitai-mcp@latest"],
"env": {
"GITHUB_PAT": "ghp_your_token_here"
}
}
}
}