Skip to main content
Glama

PR 审阅者🔍

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

🌟 功能

  • 自动分析 GitHub Pull 请求

  • 结构化文档的 Notion 集成

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

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

  • Notion 中的自动文档生成

Related MCP server: GitHub MCP Server

🚀 入门

先决条件

  • 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
F
license - not found
-
quality - not tested

Resources

Looking for Admin?

Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.

Latest Blog Posts

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