elhadjaoui
MCP Serverelhadjaouipublic

pr_reviewer

一个与 Claude Desktop 集成的 MCP 服务器,自动分析和审查 Pull Request 并保存到 Google Drive。

Repository Info

1
Stars
0
Forks
1
Watchers
0
Issues
Python
Language
-
License

About This Server

一个与 Claude Desktop 集成的 MCP 服务器,自动分析和审查 Pull Request 并保存到 Google Drive。

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

MCP Server

This project implements an MCP (Model Context Protocol) server integrated with Claude Desktop. The server automatically analyzes your Pull Requests, reviews your changes, and adds comments directly to the modified files. It can also approve and merge your PRs. Additionally, the review is saved to a Google Doc in your Google Drive.

Prerequisites

Before running the MCP server, ensure you have the following libraries installed:

  • requests
  • python-dotenv
  • mcp[cli]
  • pydrive

If additional libraries are required, install them using pip or uv as needed.

How to Run the MCP Server

Follow these steps to set up and run the MCP server:

Claude Desktop Configuration

After cloning the repository, you'll need to configure Claude Desktop to run the MCP server.

  1. Download Claude Desktop
  2. Open SettingsDeveloper.
  3. Click Edit Config, then paste the following code:
{
  "mcpServers": {
    "pr_reviewer": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/mcp/project",
        "run",
        "pr-analyzer.py"
      ]
    }
  }
}

Note:
If you don't have uv installed, you can modify the config to use python instead of uv to run the MCP.


GitHub Setup

To generate a GitHub token:

  1. Log in to your GitHub account and navigate to SettingsDeveloper SettingsPersonal Access Tokens.
  2. Click Generate New Token (choose the classic version).
  3. Provide a name for the token and enable the following permissions:
    • read:org
    • read:repo_hook
    • repo
  4. Click Generate to create the token.
  5. Save the token, you will need it in the .env file later.

Google Drive Setup

To enable Google Drive access, make sure you set up authentication.

Follow this guide to obtain your credentials.


Creating the .env File

Create a .env file in the project directory and add the following:

GITHUB_TOKEN=""
GOOGLE_PARENT_FOLDER_ID="" # optional

GOOGLE_PARENT_FOLDER_ID is the ID of the Google Drive folder where your generated reviews will be organized.
You can find it as the last part of the URL in a link like:
https://drive.google.com/drive/folders/<folder_id>

Demo

Watch the video

Quick Start

1

Clone the repository

git clone https://github.com/elhadjaoui/pr_reviewer
2

Install dependencies

cd pr_reviewer
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownerelhadjaoui
Repopr_reviewer
LanguagePython
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation