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
- -securityAlicense-qualityAn MCP server that fetches GitHub Pull Request comments with file paths, line ranges, and replies using a GitHub personal access token.Last updated -3TypeScriptMIT 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.Last updated -JavaScript
- -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 -1TypeScript
- -securityAlicense-qualityA free, open-source service that transforms GitHub projects into MCP endpoints, enabling AI assistants to access and understand project documentation without any setup.Last updated -3,528TypeScriptApache 2.0