Enables configuration through environment variables stored in .env files, supporting secure storage of API tokens for GitHub and Notion integrations.
Interacts with Git repositories to support the Pull Request review workflow, including cloning repositories and managing branches.
Connects to GitHub's API to automatically analyze Pull Requests, retrieve PR information, and process code changes for review purposes.
Integrates with Notion to automatically generate and store structured documentation of code reviews, creating organized documentation of Pull Request analyses.
PR Reviewer 🔍
An intelligent assistant for analyzing Pull Requests that integrates GitHub with Notion for automated review documentation.
🌟 Features
Automatically analyze GitHub Pull Requests
Notion integration for structured documentation
MCP (Model-Controller-Provider) interface for efficient processing
Support for detailed analysis of code changes
Automatic documentation generation in Notion
🚀 Getting Started
Prerequisites
Python 3.8 or higher
GitHub account with access token
Notion account with API permissions
Configured access tokens
Installation
Clone the repository:
Create and activate a virtual environment:
Install dependencies:
Configure environment variables: Create a
.env
file with the following variables:
💻 Usage
To start the PR analyzer:
The service will:
Initialize MCP server for PR analysis
Connecting to the GitHub API
Setting up integration with Notion
Waiting for PR review requests
Automatically generate documentation in Notion
🛠️ Architecture
The project is structured into two main components:
pr_analyzer.py
: Core of the application that manages the MCP server and coordinates the analysesgithub_integration.py
: Module responsible for integration with the GitHub API
Components
PR Analyzer
Initializes the FastMCP server
Manages integration with Notion
Register tools for PR analysis
Processes analysis requests
GitHub Integration
Manages communication with the GitHub API
Retrieves information from Pull Requests
Processes code changes
📝 License
This project is under the MIT license. See the LICENSE
file for more details.
👥 Contribution
Contributions are welcome! Please feel free to submit PRs.
Fork the project
Create your Feature Branch (
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)Push to Branch (
git push origin feature/AmazingFeature
)Open a Pull Request
📞 Support
If you encounter any problems or have suggestions, please open an issue in the repository.
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
An intelligent pull request review assistant that integrates GitHub with Notion for automated review documentation via a Model-Controller-Provider (MCP) server architecture.
Related MCP Servers
- AsecurityAlicenseAqualityAn MCP server that fetches GitHub Pull Request comments with file paths, line ranges, and replies using a GitHub personal access token.Last updated -13MIT License
- -securityFlicense-qualityAn MCP service that enables creating GitHub Pull Requests and adding code review comments using GitHub CLI, eliminating the need to manually handle authentication and permissions.
- -securityFlicense-qualityA Model Context Protocol server that enables AI assistants to perform GitHub operations including repository management, file operations, issue tracking, and pull request creation.Last updated -1
- -securityFlicense-qualityA tool that integrates with GitHub and Notion to analyze and review pull requests, enabling automated code reviews and documentation in Notion.Last updated -