feat(mcp): register loopover_get_automation_state as a local stdio tool - #7966
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-22 00:34:18 UTC
Review summary Nits — 6 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.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7966 +/- ##
===========================================
- Coverage 91.87% 81.78% -10.09%
===========================================
Files 735 91 -644
Lines 75477 23716 -51761
Branches 22960 4551 -18409
===========================================
- Hits 69344 19397 -49947
+ Misses 5041 4123 -918
+ Partials 1092 196 -896
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Closes #7752
Summary
loopover_get_automation_statewas a remote MCP tool (src/mcp/server.ts) with amaintain automation-stateCLI mirror (REST + CLI mirror for loopover_get_automation_state #6742), but had no local stdio MCP tool registration.GET ${toolRepoBase(owner, repo)}/automation-stateendpoint the CLI already uses.Closes #7752
Change
packages/loopover-mcp/bin/loopover-mcp.ts): registeredloopover_get_automation_state(ownerRepoShape) with a matchingSTDIO_TOOL_DESCRIPTORSentry (agentcategory, matching the remote tool). Handler proxiesapiGet(.../automation-state)with a branch-free fixed summary (no??/?./ ternaries); the full derived payload rides asstructuredContent.mcp-tool-rename-aliases.test.ts(currentmainalready includes Register loopover_check_improvement_potential as a local stdio MCP tool #7759 / Register loopover_get_contributor_profile as a local stdio MCP tool #7760 / Register loopover_list_notifications as a local stdio MCP tool #7761 / Register loopover_mark_notifications_read as a local stdio MCP tool #7762 / Register loopover_watch_issues as a local stdio MCP tool #7763).Tests
test/unit/mcp-cli-automation-state-stdio.test.ts: in-processInMemoryTransportcoverage — tool registers and proxiesGET .../automation-state(this is what Codecov instruments).test/unit/mcp-cli-maintain-tools.test.ts: added toMAINTAIN_TOOLS(6 → 7), capture regex includesautomation-state.Validation
git diff --checkclean;npm run build:mcpclean.coverage-final.jsonthat every added executable line is hit and there are zero branches on added lines.??summary without an in-process Codecov test; this branch is based on currentmainat 94 tools).