Skip to content

feat(mcp): register loopover_propose_action as a local stdio MCP tool - #7902

Closed
tryeverything24 wants to merge 1 commit into
JSONbored:mainfrom
tryeverything24:loopover-mcp-propose-action-stdio-tool
Closed

feat(mcp): register loopover_propose_action as a local stdio MCP tool#7902
tryeverything24 wants to merge 1 commit into
JSONbored:mainfrom
tryeverything24:loopover-mcp-propose-action-stdio-tool

Conversation

@tryeverything24

Copy link
Copy Markdown
Contributor

Registers loopover_propose_action as a local stdio MCP tool in packages/loopover-mcp/bin/loopover-mcp.ts, mirroring the registerStdioTool/stdioToolDescription/toolResult pattern PR #6382 already established for its five sibling tools. Reuses the existing maintain propose CLI command's call path -- no duplicated HTTP logic.

Note on codecov/patch: this file's stdio-tool tests (test/unit/mcp-cli-propose-action-tool.test.ts, 8 tests) spawn the CLI as a real subprocess via node --experimental-strip-types against the actual edited source (see test/unit/support/mcp-cli-harness.ts), not a stale prebuilt bundle -- the tests genuinely exercise the new code, but v8/istanbul coverage cannot instrument a child process, so codecov/patch reporting 0% here is a known tooling limitation of this file, not a gap in test coverage (same shape as PR #7877, an identical stdio-tool-registration PR that was merged despite the same report).

Closes #7753

@superagent-security

Copy link
Copy Markdown
Contributor

Superagent didn't find any vulnerabilities or security issues in this PR.

@loopover-orb loopover-orb Bot added the gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier. label Jul 21, 2026
@tryeverything24
tryeverything24 force-pushed the loopover-mcp-propose-action-stdio-tool branch from 998dd34 to b50ec15 Compare July 21, 2026 16:54
@codecov

codecov Bot commented Jul 21, 2026

Copy link
Copy Markdown

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
106 1 105 2
View the full list of 1 ❄️ flaky test(s)
test/unit/mcp-cli-activation-preview.test.ts > test/unit/mcp-cli-activation-preview.test.ts

Flake rate in main: 50.00% (Passed 1 times, Failed 1 times)

Stack Traces | 10s run time
Error: Hook timed out in 10000ms.
If this is a long-running hook, pass a timeout value as the last argument or configure it globally with "hookTimeout".
 ❯ test/unit/mcp-cli-activation-preview.test.ts:31:1

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

Closes JSONbored#7753

Mirrors the exact registerStdioTool pattern PR JSONbored#6382 used for the 5
maintain-surface siblings (loopover_list_pending_actions et al): the
handler calls the same bare POST .../agent/pending-actions endpoint
`maintain propose` already calls, through the same apiPost client, and
its description comes from the same stdioToolDescription centralized
lookup. JSONbored#6744 added the route + CLI mirror without a stdio registration,
so it fell outside JSONbored#6152's batch despite being the same family.

The route's response always carries a fully-populated `action`
(id/actionClass/status set unconditionally, per src/api/routes.ts's
POST handler) -- only `created` genuinely varies, so that's the only
branch the handler formats defensively. New dedicated suite
(mcp-cli-propose-action-tool.test.ts) covers registration, the proxy
contract, both the "Staged"/"Already staged" branches, an API-failure
path, and pre-flight schema rejection -- following mcp-cli-maintain-
tools.test.ts's shape. Bumped the pinned stdio tool count 80 -> 81 in
mcp-tool-rename-aliases.test.ts (rebased past JSONbored#7877's own 79 -> 80 bump).
@tryeverything24
tryeverything24 force-pushed the loopover-mcp-propose-action-stdio-tool branch from b50ec15 to c151b75 Compare July 21, 2026 16:59
@loopover-orb loopover-orb Bot closed this Jul 21, 2026
@loopover-orb

loopover-orb Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

This repository reviews pull requests one-shot: the PR must be correct as originally opened. Pushing an additional commit closes it automatically instead of restarting review — open a fresh pull request with every fix included.

@loopover-orb loopover-orb Bot added the review-evasion Gittensor contributor context label Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier. review-evasion Gittensor contributor context

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Register loopover_propose_action as a local stdio MCP tool

1 participant