feat(mcp): register the 8 miner write-tools on the local stdio server - #6390
Conversation
packages/loopover-mcp's miner-auto-dev profile lists loopover_open_pr, file_issue, apply_labels, post_eligibility_comment, create_branch, delete_branch, generate_tests, and file_follow_up_issue in its recommendedTools, but none were registered as local stdio tools -- a contributor on the local server could not invoke any of them. Register all 8, reusing the same pure @loopover/engine spec builders the remote server (src/mcp/server.ts) uses: each returns a LOCAL-execution action spec the caller runs with its OWN gh/git creds (loopover never performs the write). Input shapes mirror the remote bounds; the test-framework enum mirrors @loopover/engine's TEST_FRAMEWORKS. Adds a CLI-harness test per tool (spec composition + a zod-rejection failure path). Closes JSONbored#6149
|
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 #6390 +/- ##
=======================================
Coverage 95.60% 95.60%
=======================================
Files 599 599
Lines 47238 47238
Branches 15031 15031
=======================================
Hits 45160 45160
Misses 1291 1291
Partials 787 787
Flags with carried forward coverage won't be shown. Click here to find out more. |
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-16 06:15:36 UTC
Review summary Nits — 5 non-blocking
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.
|
What & why
packages/loopover-mcp's miner-auto-dev profile listsloopover_open_pr,loopover_file_issue,loopover_apply_labels,loopover_post_eligibility_comment,loopover_create_branch,loopover_delete_branch,loopover_generate_tests, andloopover_file_follow_up_issuein itsrecommendedTools, but none were registered as local stdio tools — a contributor driving the local server could not invoke any of the write-tools the profile promises.This registers all 8, reusing the same pure
@loopover/enginespec builders the remote server (src/mcp/server.ts) already uses. Each tool returns a LOCAL-execution action spec ({ action, command, boundary }) that the caller runs with its owngh/gitcredentials — loopover never performs the write itself. Input shapes mirror the remote server's bounds; the test-framework enum mirrors@loopover/engine'sTEST_FRAMEWORKS.Tests
Adds
test/unit/mcp-cli-write-tools.test.ts— drives the real local stdio bin overStdioClientTransportand asserts, per tool, the composed spec (e.g.loopover_open_pr→gh pr create --repo '…',loopover_create_branch→git switch -c '…') plus a zod input-rejection failure path. Updatesmcp-tool-rename-aliases.test.tsfor the new registered-tool count (50).Closes #6149