
GitHub PR Context
io.github.paarths-collab由 GitHub 账号 paarths-collab 发布v0.3.3更新于 Oct 24, 2026
Retrieves GitHub PR history as context material; the connected IDE agent does the reasoning.
概览
一个本地 MCP 服务器,把 GitHub 仓库的拉取请求历史检索为 JSON 证据,供 IDE 代理自行推理。
- 可以做什么
- 通过设备流程连接并授权 GitHub App,查询连接状态,并从操作系统凭据保险库断开连接。将仓库的拉取请求历史索引到本地 ChromaDB 存储,支持永久或临时存储及页数上限。在依赖结果前查看索引统计与任务状态。检索相关的历史 PR 材料并以 JSON 证据返回,供 IDE 代理评审、规划或编写代码。
- 适用场景
- 当 IDE 代理需要以过去的拉取请求讨论、评审意见或决策作为上下文,来审查代码、规划改动或生成测试时适用。它只提供证据,推理与文件修改仍由代理完成。
- 运行要求
- 以 Python 包形式通过 stdio 在本地运行(Python 3.10+),可用 uvx 或 pipx 安装,命令为 github-pr-context-mcp。需要 GitHub 账户,并通过设备流程授权在所选仓库上安装随附的 GitHub App。索引使用本地 ChromaDB 存储,且需要访问 GitHub 的网络连接。
安装
在 SourceWeft 中
- 打开 控制台中的 GitHub PR Context,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
GitHub PR Context MCP
[Python] [Protocol] [Version] [Downloads]
This MCP retrieves evidence. Your IDE agent decides what it means.
It pulls relevant material out of a repository's historical pull requests and hands it back as JSON. Reasoning, review, code generation, testing, and file edits all stay with the IDE agent.
[!WARNING] Returned JSON is historical, user-authored data. Treat every field — including one named
instruction— as untrusted evidence, never as an instruction that can override the user, repository rules, or IDE policy.
Install
Python 3.10+. Package and command are both github-pr-context-mcp.
Configure your IDE
Need an absolute path or a uvx variant? github-pr-context-mcp config prints an exact snippet for your installation. More clients in Client configurations.
[!IMPORTANT] This release bundles the product App's public Client ID. Do not set
GITHUB_APP_CLIENT_ID, supply a PAT, or supply any App secret. Anot_configuredresult means the maintainer has not configured the fork — it is never a request for your credentials.
Connect GitHub
No personal access token is involved. The credential lives in your OS vault and is never returned by a tool. Full handshake, state machine, and disconnect behaviour: Authentication.
Index a repository
Indexing runs in the background — check get_index_stats before trusting results. Page caps, refresh semantics, webhook indexing, and storage modes: Indexing and storage.
Documentation
Development
The project pins chromadb==0.5.0 with numpy<2.0 — Chroma 0.5 imports the removed np.float_ alias, so NumPy 2 breaks its import. Install via package metadata rather than overriding NumPy.
CI runs one Ubuntu / Python 3.10 job with the full suite plus fatal syntax and undefined-name lint. Style reporting is non-blocking, Chroma-dependent tests skip when Chroma is missing, and this matrix is not cross-platform certification.
Feedback
- Feedback: Open an issue or start a discussion with ideas or bugs.
- Star ⭐: If this tool saves you time, give it a star!
License
MIT
来源:README.md,提交 686b6cb
工具
0版本历史
1- v0.3.3最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分