feat(mcp): register loopover_watch_issues as a local stdio tool - #7899
feat(mcp): register loopover_watch_issues as a local stdio tool#7899claytonlin1110 wants to merge 1 commit into
Conversation
…bored#7763) loopover_watch_issues was already a remote MCP tool (src/mcp/server.ts) and had a CLI mirror (`watch`, JSONbored#6746), but never got the matching local stdio registration -- the same gap class the five JSONbored#6152/JSONbored#6382 maintain-surface tools filled. Follows their exact registerStdioTool pattern and proxies to the same /v1/contributors/:login/watches endpoint the `watch` CLI already calls, through the same apiGet/apiPost/apiDelete client (list=GET, watch=POST, unwatch=DELETE) -- no duplicated HTTP logic. `login` is optional, resolving from the active session / LOOPOVER_LOGIN / GITHUB_LOGIN like its sibling loopover_get_pr_ai_review_findings tool.
|
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 #7899 +/- ##
===========================================
- Coverage 91.39% 80.64% -10.76%
===========================================
Files 730 89 -641
Lines 74774 23372 -51402
Branches 22818 4514 -18304
===========================================
- Hits 68343 18849 -49494
+ Misses 5389 4345 -1044
+ Partials 1042 178 -864
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
Caution 🛑 LoopOver review result - fixes requiredReview updated: 2026-07-21 16:43:31 UTC
Review summary Nits — 5 non-blocking
CI checks failing
Decision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionAddressed 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://loopover.ai/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)). 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. |
What
loopover_watch_issueswas already a remote MCP tool (src/mcp/server.ts:2279) and had a CLI mirror (watch,packages/loopover-mcp/bin/loopover-mcp.ts:4081, added by #6746), but never got the matching local stdio MCP tool registration -- the same gap class the five #6382 maintain-surface tools (loopover_list_pending_actions,loopover_decide_pending_action,loopover_set_agent_paused,loopover_set_action_autonomy,loopover_get_gate_precision) filled.Changes
registerStdioTool("loopover_watch_issues", ...)block topackages/loopover-mcp/bin/loopover-mcp.ts, placed next to its sibling stdio tools, following the exact pattern from feat(mcp): register the maintain REST surface as local stdio tools #6382 (samestdioToolDescriptionlookup, sametoolResultformatting helper)./v1/contributors/:login/watchesREST endpoint the existingwatchCLI command already calls, through the sameapiGet/apiPost/apiDeleteclient (list= GET,watch= POST,unwatch= DELETE) -- no duplicated HTTP logic.loginis optional and resolves from the active session /LOOPOVER_LOGIN/GITHUB_LOGIN, matching the login-resolution convention already used by the siblingloopover_get_pr_ai_review_findingstool and thewatchCLI command itself.test/unit/mcp-cli-watch-issues-tool.test.ts, covering all three actions (list/watch/unwatch), login-resolution fallbacks, and error conditions, mirroring the existing sibling test file's shape.test/unit/mcp-tool-rename-aliases.test.tsto account for the new tool.Closes
Closes #7763
Verification
npm run typecheckpassednpx vitest run test/unit/mcp-tool-rename-aliases.test.ts test/unit/mcp-cli-watch-issues-tool.test.ts test/unit/mcp-cli-tools.test.ts test/unit/mcp-discovery.test.ts test/unit/mcp-output-schemas.test.tspassed (83 passed)npm run build:mcppassed