feat(mcp): add loopover_get_gate_config_effective MCP tool - #7900
Closed
jsdevninja wants to merge 1 commit into
Closed
feat(mcp): add loopover_get_gate_config_effective MCP tool#7900jsdevninja wants to merge 1 commit into
jsdevninja wants to merge 1 commit into
Conversation
Mirrors loopover_get_pr_reviewability's remote + local stdio pattern (JSONbored#7800) for the existing gate-config/effective REST route: registers the tool in src/mcp/server.ts (ownerRepoShape, maintainer category, same canAccessRepo precedent) and as a CLI proxy in packages/loopover-mcp/bin/loopover-mcp.ts, so an MCP client can read a repo's effective self-tuned gate thresholds without raw HTTP. Bumps the pinned MCP tool-count invariant test from 80 to 81. No new REST route or human CLI verb.
Contributor
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7900 +/- ##
===========================================
- Coverage 91.40% 81.33% -10.07%
===========================================
Files 730 90 -640
Lines 74789 24364 -50425
Branches 22822 4690 -18132
===========================================
- Hits 68358 19816 -48542
+ Misses 5389 4348 -1041
+ Partials 1042 200 -842
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Contributor
|
This repository closes pull requests automatically while they're in draft, to keep CI capacity and review bandwidth available for work that's ready to review. Reopen (or open a fresh pull request) once your changes are ready — LoopOver will pick it up from there. |
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
loopover_get_gate_config_effectivehas a REST route (GET /v1/repos/:owner/:repo/gate-config/effective) but no MCP tool on either surface.loopover_get_gate_config_effectiveas a remote MCP tool insrc/mcp/server.ts, mirroringloopover_get_pr_reviewability's pattern:ownerRepoShapeinput, an output schema matching the REST route's exact response shape, themaintainercategory, and the samecanAccessRepoprecedent the other maintainer read tools already use.packages/loopover-mcp/bin/loopover-mcp.ts, proxying to the existing REST route viaapiGet. No new REST route and no new human-typable CLI verb, per the issue.test/unit/mcp-tool-rename-aliases.test.ts) from 80 to 81.Test plan
npm run typechecknpm run build --workspace @loopover/engine && npm run build --workspace @loopover/mcptest/unit/mcp-gate-config-effective.test.ts(remote MCP tool: no-override, live override + soaking shadow, confidence-floor-only override, forbidden-repo) andtest/unit/mcp-cli-gate-config-effective.test.ts(stdio CLI proxy: registers in tool list, proxies to the REST path, surfacesshadowPendingwithout leaking the shadow's queued recommendation)gate-config/effectiveintest/unit/support/mcp-cli-harness.tstest/unit/mcp-tool-rename-aliases.test.ts's pinned tool count (80 → 81)mcp-cli-gate-config-effective,mcp-gate-config-effective,mcp-tool-categories,mcp-output-schemas,mcp-cli-maintain-tools,mcp-cli-tools-search,mcp-tool-rename-aliases,mcp-cli-pr-reviewability(82 tests, all passing)