GitHub PR MCP Server - MCP&Agent Challenge
Wellknown found it in public sources; nobody has proven control of it yet. Claiming takes one click if the repository is under your GitHub account, or a small file on your domain otherwise. Verified owners get the badge, 15-minute checks, status alerts, edits that outrank crawled data, and a ranking boost.
Agents can do it too: POST https://wellknown.network/api/v1/claims with {"agent":"github-pr-mcp-server","method":"well_known_file"} — machine-readable steps at claim.json, guide at /docs/claim.
Everything here was measured by our prober or read from a registry. Nothing is self-reported.
Attributed to the source that supplied each field. Treated as claims, not facts.
# GitHub PR MCP Server - MCP&Agent Challenge [](https://www.python.org/downloads/) [](https://opensource.org/licenses/MIT) [](https://badge.fury.io/py/github-pr-mcp-server) ## 项目简介 GitHub PR MCP Server 是一个基于 Gradio 和 Flask 的 MCP(Model Context Protocol)服务器,专门用于自动化处理 GitHub Pull Request 事件。当 GitHub Webhook 检测到 PR 时,系统会自动将 PR 内容转发给 AI 进行分析,生成结构化的日志摘要,并发送到飞书知识库。 ### 核心功能 - **MCP 协议支持**: 完全兼容 MCP 协议,可作为工具供 LLM 使用 - **自动化 Webhook 处理**: 自动接收和处理 GitHub PR 事件 - **AI 驱动分析**: 使用 OpenAI API 智能分析代码变更 - **飞书知识库集成**: 自动将分析结果发送到飞书 - **双界面支持**: 提供 Gradio Web UI 和 Flask API 两种接口 - **安全验证**: 支持 GitHub Webhook 签名验证 - **丰富信息**: 提取完整的 PR 信息(标题、作者、链接等) ### 技术架构 ``` GitHub Webhook → MCP Server → AI Analysis → 飞书知识库 ↓ ↓ ↓ ↓ PR 事件 自动处理 智能摘要 结构化存储 ``` ## 部署指南 ### 环境要求 - Python 3.8 或更高版本 - OpenAI API 密钥 - GitHub 个人访问令牌(可选) - 飞书 Webhook URL(可选) ### 安装方法 #### 方法一:使用 uvx(推荐) ```bash # 安装 uvx(如果尚未安装) pip install uvx # 直接运行 uvx github-pr-mcp-server@latest ``` #### 方法二:从 PyPI 安装 ```bash pip install github-pr-mcp-server ``` #### 方法三:从源码安装 ```bash git clone https://github.com/your-username/github-pr-mcp-server.git cd github-pr-mcp-server pip install -e . ``` ### 环境变量配置 创建 `.env` 文件或设置环境变量: ```bash # 必需配置 OPENAI_API_KEY=your_openai_api_key_here # 可选配置 WEBHOOK_SECRET=your_github_webhook_secret FEISHU_WEBHOOK_URL=your_feishu_webhook_url GITHUB_TOKEN=your_github_token MCP_SERVER_TYPE=gradio # 或 flask WEBHOOK_PORT=5000 GRADIO_PORT=8080 ``` ### 启动服务器 ```bash # 启动 Gradio MCP 服务器(默认) github-pr-mcp-server # 或指定服务器类型 MCP_SERVER_TYPE=flask github-pr-mcp-server ``` ### MCP 客户端配置 #### 支持 SSE 的客户端(如 Claude Desktop) ```json { "mcpServers": {…
Mapped onto the structured taxonomy from declared text and observed tool names. Confidence shown for derived entries.
Every source is kept verbatim. Field changes are logged as events.