GitHub PR Context MCP
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.
flowchart LR
U["Developer request"] --> A["IDE agent"]
A -->|"tool call"| M["PR Context MCP"]
M --> AU["Device Flow"]
AU --> K["OS credential vault"]
M --> G["GitHub PR history"]
M --> V["ChromaDB index"]
M -->|"evidence JSON"| A
A --> O["Review, plan, code, tests"]
style M fill:#2d6a4f,color:#fff
style A fill:#1d3557,color:#fff
Install
Python 3.10+. Package and command are both github-pr-context-mcp.
uvx github-pr-context-mcp
pipx install github-pr-context-mcp
Configure your IDE
{
"mcpServers": {
"github-pr-context": {
"command": "github-pr-context-mcp"
}
}
}
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.
Connect GitHub
1. get_github_connection_status → install the App on the repos you choose
2. begin_github_authorization → open the URL, enter the code
3. complete_github_authorization → poll until "connected"
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
ensure_repo_ready({"repo": "owner/repo", "storage": "permanent", "pages": 2})
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
flowchart LR
R["README"] --> Q["Quick start"]
R --> AR["Architecture"]
R --> AU["Authentication"]
R --> P["Indexing & storage"]
R --> T["Tools"]
R --> C["Configuration"]
style R fill:#1d3557,color:#fff
| Page | What is in it |
|---|---|
| Quick start | First run, end to end |
| Architecture | Retrieval/reasoning split, trust boundary, what gets indexed, pipelines |
| Authentication | Device Flow handshake, connection states, disconnect |
| Indexing and storage | Job states, page caps, refresh, webhook, permanent vs temporary |
| Tools | Every MCP tool and when an agent should reach for it |
| Configuration | Environment variables and local settings |
| Integrations | Per-client setup |
| Roadmap | Direction and known gaps |
Development
python -m pip install ".[test]" flake8
python -m pytest
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude=.venv
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
Metadata
Release files for github-pr-context-mcp 0.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| github_pr_context_mcp-0.3.3.tar.gz | 91.3 kB | With provenance | Details for github_pr_context_mcp-0.3.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| github_pr_context_mcp-0.3.3-py3-none-any.whl | Python 3 | none | any | Details for github_pr_context_mcp-0.3.3-py3-none-any.whl |
Total release size: 164.1 kB
Release files / github_pr_context_mcp-0.3.3.tar.gz
| Download URL | github_pr_context_mcp-0.3.3.tar.gz |
|---|---|
| Size | 91.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
283cdba0470e2cb13ac9ef617afd8c1bde30fac1dd6921cb97a170a7c2d6f979
|
|
BLAKE2b-256 checksum How to use checksums |
7b758bdfb3dcdcb6db0c1e841b9498312fd7202aab93ebc6c92d982501c313b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 29, 2026.
Transparency logRelease files / github_pr_context_mcp-0.3.3-py3-none-any.whl
| Download URL | github_pr_context_mcp-0.3.3-py3-none-any.whl |
|---|---|
| Size | 72.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
07bbd0935c7f9f968dc6c5a13960018d168ea0d2096aca54b1bb7f362227aedc
|
|
BLAKE2b-256 checksum How to use checksums |
2b21c5e3e106fd6ffdee3f9cce06102aabff212f4de460162e19d3e5b63ebcef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 29, 2026.
Transparency logSecurity for github-pr-context-mcp 0.3.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for github_pr_context_mcp-0.3.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 29, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.