Support GitHub MCP Server v1.3.0: PR commits routing, get_file_blame spec, and guard docs#7641
Merged
Merged
Conversation
… and spec updates
Copilot
AI
changed the title
[WIP] Update GitHub MCP Server to version 1.3.0
Support GitHub MCP Server v1.3.0: PR commits routing, get_file_blame spec, and guard docs
Jun 16, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates MCP Gateway’s GitHub proxy routing and guard documentation to support GitHub MCP Server v1.3.0 additions, while keeping gateway-side IFC label assignment independent of any server-side annotations.
Changes:
- Add REST proxy routing for PR commits:
GET /repos/{owner}/{repo}/pulls/{pull_number}/commits→pull_request_read { method: "get_commits", ... }. - Add/extend unit test coverage to ensure the new PR commits route matches and produces the expected guard tool args.
- Close spec/implementation gaps in guard docs by explicitly documenting
get_file_blamealongsideget_file_contents, and clarifying PR sub-method labeling behavior.
Show a summary per file
| File | Description |
|---|---|
| internal/proxy/router.go | Adds a route mapping for PR commits to pull_request_read with method: get_commits. |
| internal/proxy/proxy_coverage_test.go | Adds a route-matching test case for /pulls/{n}/commits. |
| guards/github-guard/rust-guard/src/labels/response_items.rs | Updates comment to include get_commits among PR sub-methods that skip per-item response labeling. |
| guards/github-guard/docs/INTEGRITY_TAG_SPEC.md | Documents get_file_blame labeling parity with get_file_contents and clarifies PR sub-method labeling behavior in notes. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 4/4 changed files
- Comments generated: 0
This was referenced Jun 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Gateway-side changes to support GitHub MCP Server v1.3.0. MCPG's internal IFC label assignment is kept independent of any server-side IFC annotations the MCP server may add.
Proxy router:
pull_request_readget_commitsmethodAdded route for the new
get_commitssub-method introduced in v1.3.0:PR commits use the same PR-level resource labels as other
pull_request_readsub-methods — PR facts lookup (merge status, author association, fork lineage) provides the correct integrity bound.Guard docs:
get_file_blameget_file_blamewas already implemented intool_rules.rswith identical secrecy/integrity semantics toget_file_contents(including sensitive-path escalation). Added it explicitly toINTEGRITY_TAG_SPEC.mdResource and Response Label Rules tables to close the spec/impl gap.INTEGRITY_TAG_SPEC.mdclarificationsget_file_blameadded to both label rule tables alongsideget_file_contentspull_request_readsub-methods (get_commits,get_files,get_reviews,get_review_comments,get_check_runs, etc.) fall through to PR-level resource labels rather than per-item response labelingresponse_items.rscomment to explicitly listget_commitsamong the handled sub-methodsWhat requires no gateway changes