PR Reviewer

PR Reviewer

A tool that integrates with GitHub and Notion to analyze and review pull requests, enabling automated code reviews and documentation in Notion.

Category
Visit Server

README

PR Reviewer Setup Guide

This guide provides step-by-step instructions to set up the PR Reviewer project, which includes integrations with GitHub and Notion.

Prerequisites

  • curl (for MacOS/Linux)
  • Python 3.x installed on your system

Setup Instructions

Step 1: Install uv

MacOS/Linux:

curl -LsSf https://astral.sh/uv/install.sh | sh

🔁 Restart your terminal afterwards to ensure that the uv command is available.


Step 2: Create and Set Up the Project

MacOS/Linux:

# Create a new directory for the project
uv init pr_reviewer
cd pr_reviewer

# Create and activate a virtual environment
uv venv
source .venv/bin/activate

# Install core dependencies
uv add "mcp[cli]" requests python-dotenv notion-client

Step 3: Create requirements.txt and Install from It

Create a file called requirements.txt with the following content:

# Core dependencies for PR Analyzer
requests>=2.31.0          # For GitHub API calls
python-dotenv>=1.0.0      # For environment variables
mcp[cli]>=1.4.0           # For MCP server functionality
notion-client>=2.3.0      # For Notion integration

Install the packages:

uv pip install -r requirements.txt
pip install -r requirements.txt

Step 4: Set Up Environment Variables

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

GITHUB_TOKEN=your_github_token
NOTION_API_KEY=your_notion_api_key
NOTION_PAGE_ID=your_notion_page_id

GitHub Token:

  1. Go to GitHub → Settings → Developer Settings → Personal Access Tokens.
  2. Click "Generate new token (classic)".
  3. Enable these scopes:
    • read:org
    • read:repo_hook
    • repo
  4. Copy and paste the token into your .env file as GITHUB_TOKEN.

Notion Integration:

  1. Go to Notion Integrations.
  2. Click "New integration" and set the type to Internal.
  3. Add it to your workspace.
  4. Copy the Internal Integration Secret as NOTION_API_KEY.
  5. Copy the UUID at the end of the integration URL as NOTION_PAGE_ID.

Step 5: Create the Main Script

Create an empty script file for your server logic:

touch pr_reviewer

Add your application logic inside this file.


Step 6: Run the Application

To run the project, make sure your environment is activated and .env is configured:

python pr_reviewer.py

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured