feat(mcp): add loopover_get_pr_reviewability tool on both MCP servers - #6197
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. Closes JSONbored#6154.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6197 +/- ##
==========================================
- Coverage 95.33% 89.10% -6.23%
==========================================
Files 599 599
Lines 47186 47205 +19
Branches 15032 15037 +5
==========================================
- Hits 44983 42063 -2920
- Misses 1477 3643 +2166
- Partials 726 1499 +773
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Caution 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥 🛑 LoopOver review result - fixes requiredReview updated: 2026-07-15 21:17:08 UTC
🛑 Suggested Action - Fix Blockers Review summary Nits — 2 non-blocking
CI checks failing
Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://gittensory.aethereal.dev/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
|
LoopOver is closing this pull request on the maintainer's behalf (CI is failing (codecov/patch, validate, validate-tests (3))). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs may be analyzed later to improve review accuracy, but they are not automatically reopened or re-reviewed. |
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 — the samecanAccessRepogate, the cached-snapshot-then-compute pattern (serving the persistedpr-reviewabilitysnapshot the route already writes before recomputing), and the samefreshnessResponseOutputSchema. Reuses the existingloadContributorFastContextloader and calls the samebuildPullRequestReviewabilitythe route does, with identical inputs.packages/loopover-mcp): adds the equivalentapiGetproxy tool, per the convention that a new remote tool gets a local mirror.Response shape matches the
loopover_get_issue_qualitywrapper; no new response shape invented.Closes #6154.