{"$schema":"https://wellknown.network/schemas/agent-record-v1.json","schemaVersion":"1","id":"ag_96rqmhrk8fcx","handle":"github-pr-mcp-server","url":"https://wellknown.network/agents/github-pr-mcp-server","links":{"self":"https://wellknown.network/agents/github-pr-mcp-server/record.json","html":"https://wellknown.network/agents/github-pr-mcp-server","markdown":"https://wellknown.network/agents/github-pr-mcp-server/record.md","api":"https://wellknown.network/api/v1/agents/github-pr-mcp-server","status":"https://wellknown.network/api/v1/agents/github-pr-mcp-server/status","claim":"https://wellknown.network/agents/github-pr-mcp-server/claim","claimApi":"https://wellknown.network/api/v1/claims","claimDescriptor":"https://wellknown.network/agents/github-pr-mcp-server/claim.json","badge":"https://wellknown.network/agents/github-pr-mcp-server/badge.svg","openapi":"https://wellknown.network/openapi.json","history":"https://wellknown.network/api/v1/agents/github-pr-mcp-server/history","tools":"https://wellknown.network/api/v1/agents/github-pr-mcp-server/tools"},"ard":{"identifier":"urn:air::server:github-pr-mcp-server","type":"application/mcp-server-card+json"},"kind":"mcp_server","declared":{"name":"github-pr-mcp-server","summary":"GitHub PR MCP Server - MCP&Agent Challenge","description":"# GitHub PR MCP Server - MCP&Agent Challenge \n \n[![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/) \n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) \n[![PyPI version](https://badge.fury.io/py/github-pr-mcp-server.svg)](https://badge.fury.io/py/github-pr-mcp-server) \n \n## 项目简介 \n \nGitHub PR MCP Server 是一个基于 Gradio 和 Flask 的 MCP（Model Context Protocol）服务器，专门用于自动化处理 GitHub Pull Request 事件。当 GitHub Webhook 检测到 PR 时，系统会自动将 PR 内容转发给 AI 进行分析，生成结构化的日志摘要，并发送到飞书知识库。 \n \n### 核心功能 \n \n- **MCP 协议支持**: 完全兼容 MCP 协议，可作为工具供 LLM 使用 \n- **自动化 Webhook 处理**: 自动接收和处理 GitHub PR 事件 \n- **AI 驱动分析**: 使用 OpenAI API 智能分析代码变更 \n- **飞书知识库集成**: 自动将分析结果发送到飞书 \n- **双界面支持**: 提供 Gradio Web UI 和 Flask API 两种接口 \n- **安全验证**: 支持 GitHub Webhook 签名验证 \n- **丰富信息**: 提取完整的 PR 信息（标题、作者、链接等） \n \n### 技术架构 \n \n``` \nGitHub Webhook → MCP Server → AI Analysis → 飞书知识库 \n     ↓              ↓            ↓            ↓ \n  PR 事件      自动处理     智能摘要     结构化存储 \n``` \n \n## 部署指南 \n \n### 环境要求 \n \n- Python 3.8 或更高版本 \n- OpenAI API 密钥 \n- GitHub 个人访问令牌（可选） \n- 飞书 Webhook URL（可选） \n \n### 安装方法 \n \n#### 方法一：使用 uvx（推荐） \n \n```bash \n# 安装 uvx（如果尚未安装） \npip install uvx \n \n# 直接运行 \nuvx github-pr-mcp-server@latest \n``` \n \n#### 方法二：从 PyPI 安装 \n \n```bash \npip install github-pr-mcp-server \n``` \n \n#### 方法三：从源码安装 \n \n```bash \ngit clone https://github.com/your-username/github-pr-mcp-server.git \ncd github-pr-mcp-server \npip install -e . \n``` \n \n### 环境变量配置 \n \n创建 `.env` 文件或设置环境变量： \n \n```bash \n# 必需配置 \nOPENAI_API_KEY=your_openai_api_key_here \n \n# 可选配置 \nWEBHOOK_SECRET=your_github_webhook_secret \nFEISHU_WEBHOOK_URL=your_feishu_webhook_url \nGITHUB_TOKEN=your_github_token \nMCP_SERVER_TYPE=gradio  # 或 flask \nWEBHOOK_PORT=5000 \nGRADIO_PORT=8080 \n``` \n \n### 启动服务器 \n \n```bash \n# 启动 Gradio MCP 服务器（默认） \ngithub-pr-mcp-server \n \n# 或指定服务器类型 \nMCP_SERVER_TYPE=flask github-pr-mcp-server \n``` \n \n### MCP 客户端配置 \n \n#### 支持 SSE 的客户端（如 Claude Desktop） \n \n```json \n{ \n  \"mcpServers\": {…","publisher":null,"homepage":"https://github.com/your-username/github-pr-mcp-server#readme","repository":"https://github.com/your-username/github-pr-mcp-server#readme","version":"1.0.3","license":"MIT","protocols":["mcp"],"tags":["mcp","github","pr","webhook","ai","gradio","flask"],"pricing":null,"endpoints":[{"url":"pypi:github-pr-mcp-server","type":"package_pypi","auth":null,"probeable":false}],"skills":null,"tools":null,"extra":null,"attribution":{"kind":"pypi","name":"pypi","license":"pypi","repoUrl":"pypi","summary":"pypi","version":"pypi","description":"pypi","homepageUrl":"pypi"}},"derived":{"capabilities":[{"slug":"dev.version-control","name":"Version Control","confidence":1,"provenance":"declared"},{"slug":"communication.notifications","name":"Notifications","confidence":1,"provenance":"declared"}],"categories":["communication","dev"],"language":"en"},"observed":{"status":"unknown","statusReason":"Distributed as a package to run locally; no network endpoint to check.","lastOkAt":null,"lastProbedAt":null,"statusComputedAt":null,"reliability30d":null,"latestObservations":[],"tools":null,"package":{"name":"github-pr-mcp-server","registry":"pypi","observedAt":"2026-10-28T01:26:52.275Z","publishedAt":"2025-08-03T14:12:20.301377Z","latestVersion":"1.0.3"},"toolSurface":null,"endpointFacts":[]},"verification":{"claimed":false,"claimedAt":null,"proofs":[]},"provenance":{"sources":[{"source":"pypi","key":"github-pr-mcp-server","url":"https://pypi.org/project/github-pr-mcp-server/","firstSeenAt":"2026-09-09T16:23:57.360Z","fetchedAt":"2026-10-28T01:26:18.283Z","normalizedAt":"2026-10-28T01:26:18.283Z"}]},"firstSeenAt":"2026-09-09T16:23:57.360Z","updatedAt":"2026-10-28T01:26:52.275Z"}