Skip to main content
Glama

PR Reviewer

PR 审阅者🔍

用于分析 Pull 请求的智能助手,将 GitHub 与 Notion 集成以进行自动审查文档。

🌟 功能

  • 自动分析 GitHub Pull 请求

  • 结构化文档的 Notion 集成

  • MCP(模型-控制器-提供者)接口,高效处理

  • 支持代码变更的详细分析

  • Notion 中的自动文档生成

🚀 入门

先决条件

  • Python 3.8 或更高版本

  • 带有访问令牌的 GitHub 帐户

  • 具有 API 权限的 Notion 帐户

  • 配置访问令牌

安装

  1. 克隆存储库:

git clone [seu-repositorio] cd pr_reviewer
  1. 创建并激活虚拟环境:

python -m venv .venv source .venv/bin/activate # Linux/Mac # ou .venv\Scripts\activate # Windows
  1. 安装依赖项:

pip install -r requirements.txt
  1. 配置环境变量:创建一个包含以下变量的.env文件:

NOTION_API_KEY=seu_token_do_notion NOTION_PAGE_ID=id_da_pagina_notion GITHUB_TOKEN=seu_token_do_github

💻 使用方法

要启动 PR 分析器:

python pr_analyzer.py

该服务将:

  1. 初始化 MCP 服务器以进行 PR 分析

  2. 连接到 GitHub API

  3. 设置与 Notion 的集成

  4. 等待 PR 审核请求

  5. 在 Notion 中自动生成文档

🛠️ 建筑

该项目由两个主要部分组成:

  • pr_analyzer.py :管理 MCP 服务器并协调分析的应用程序核心

  • github_integration.py :负责与 GitHub API 集成的模块

成分

PR分析仪

  • 初始化 FastMCP 服务器

  • 管理与 Notion 的集成

  • 注册 PR 分析工具

  • 处理分析请求

GitHub 集成

  • 管理与 GitHub API 的通信

  • 从 Pull 请求中检索信息

  • 处理代码更改

📝 许可证

该项目受 MIT 许可。请参阅LICENSE文件以了解更多详细信息。

👥 贡献

欢迎投稿!请随意提交 PR。

  1. 分叉项目

  2. 创建你的功能分支( git checkout -b feature/AmazingFeature

  3. git commit -m 'Add some AmazingFeature'

  4. 推送到分支( git push origin feature/AmazingFeature

  5. 打开拉取请求

📞 支持

如果您遇到任何问题或有建议,请在存储库中打开一个问题。

-
security - not tested
-
license - not tested
-
quality - not tested

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.

智能拉取请求审查助手,将 GitHub 与 Notion 集成,通过模型-控制器-提供程序 (MCP) 服务器架构实现自动审查文档。

  1. 🌟 功能
    1. 🚀 入门
      1. 先决条件
      2. 安装
    2. 💻 使用方法
      1. 🛠️ 建筑
        1. 成分
      2. 📝 许可证
        1. 👥 贡献
          1. 📞 支持

            Related MCP Servers

            • A
              security
              -
              license
              A
              quality
              An MCP server that fetches GitHub Pull Request comments with file paths, line ranges, and replies using a GitHub personal access token.
              Last updated -
              1
              3
              MIT License
            • -
              security
              -
              license
              -
              quality
              An 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.
            • -
              security
              -
              license
              -
              quality
              A 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
            • -
              security
              -
              license
              -
              quality
              A tool that integrates with GitHub and Notion to analyze and review pull requests, enabling automated code reviews and documentation in Notion.
              Last updated -
              • Apple
              • Linux

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/willianmarcel/mcp-pr-reviewer'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server