feat(mcp): add loopover_get_pr_reviewability tool on both MCP servers - #6222
Merged
JSONbored merged 1 commit intoJul 15, 2026
Merged
Conversation
The GET /v1/repos/:owner/:repo/pulls/:number/reviewability route is already MCP-auth-aware (isMcpReadRepoAllowed, same gate as /intelligence and /issue-quality) but had no tool on either server. Adds loopover_get_pr_reviewability to the remote server, mirroring loopover_get_issue_quality's cached-snapshot-then-compute pattern and reusing the existing contributor-fast-context loader, plus the equivalent apiGet proxy tool on the local stdio server. Bumps the stdio tool-count invariant 37->38. Closes JSONbored#6154.
Contributor
|
🚨 Contributor flagged. Click here for more info: Superagent Dashboard |
Contributor
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6222 +/- ##
=======================================
Coverage 95.32% 95.32%
=======================================
Files 596 596
Lines 47110 47129 +19
Branches 15016 15021 +5
=======================================
+ Hits 44908 44927 +19
Misses 1477 1477
Partials 725 725
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Contributor
|
Important 🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪 🔍 LoopOver is reviewing…AI analysis is in progress. This comment will update when the review is complete. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed · 🟪 Reviewing |
JSONbored
approved these changes
Jul 15, 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.
Summary
The
GET /v1/repos/:owner/:repo/pulls/:number/reviewabilityroute is already MCP-auth-aware (isMcpReadRepoAllowed, the same repo-allowlist gate/intelligence→loopover_get_repo_contextand/issue-quality→loopover_get_issue_qualityuse) but had no tool on either server. This wires it up.src/mcp/server.ts): addsloopover_get_pr_reviewability, mirroringloopover_get_issue_qualityexactly — samecanAccessRepogate, cached-snapshot-then-compute (serving the persistedpr-reviewabilitysnapshot the route already writes), samefreshnessResponseOutputSchema. Reuses the existingloadContributorFastContextloader and calls the samebuildPullRequestReviewabilitythe route does, with identical inputs.packages/loopover-mcp): adds the equivalentapiGetproxy tool; bumps the stdio tool-count invariant to 42.Response shape matches the
loopover_get_issue_qualitywrapper; no new response shape invented.Closes #6154.