Skip to content

feat(mcp): register loopover-mcp maintain queue/approve/reject/pause/resume/set-level/precision as MCP tools (CLI-only today) #6152

Description

@JSONbored

Context

packages/loopover-mcp/bin/loopover-mcp.js implements several maintain CLI subcommands that call real REST endpoints but have no corresponding MCP tool on either server:

  • maintain queue/approve/reject (lines 1763-1787) → /v1/repos/:owner/:repo/agent/pending-actions[/:id/:decision] (src/api/routes.ts:2537,2547). The remote server already mirrors this as loopover_list_pending_actions/loopover_decide_pending_action (src/mcp/server.ts:2349,2360) — the local stdio server has neither.
  • maintain pause/resume (lines 1788-1792) → PUT /v1/repos/:owner/:repo/settings with agentPaused. Mirrored remotely as loopover_set_agent_paused (src/mcp/server.ts:2314, added per its own comment at lines 528-531 noting this exact CLI gap). Missing locally.
  • maintain set-level (lines 1793-1804). Mirrored remotely as loopover_set_action_autonomy (src/mcp/server.ts:2327). Missing locally.
  • maintain precision (lines 1806-1825) → GET /v1/repos/:owner/:repo/gate-precision. Mirrored remotely as loopover_get_gate_precision (src/mcp/server.ts:1789). Missing locally.

Requirements

  • Add local registerStdioTool(...) registrations for loopover_list_pending_actions, loopover_decide_pending_action, loopover_set_agent_paused, loopover_set_action_autonomy, and loopover_get_gate_precision to packages/loopover-mcp/bin/loopover-mcp.js, backed by the same REST endpoints the CLI subcommands already call (reuse the CLI's existing HTTP-client logic rather than duplicating it).
  • Do not change the remote server or the existing CLI subcommands' own behavior.

Test Coverage Requirements

Match packages/loopover-mcp's existing test conventions; at least one test per new tool covering success and a representative failure path.

Deliverables

  • All 5 tools registered locally, backed by the same endpoints as their CLI counterparts.
  • Tests for each.

Expected Outcome

An agent using the local MCP server can perform maintainer queue/pause/autonomy/precision actions without shelling out to the CLI.

Links & Resources

  • packages/loopover-mcp/bin/loopover-mcp.js:1763-1825
  • src/mcp/server.ts:2349,2360,2314,2327,1789
  • src/api/routes.ts:2537,2547

Metadata

Metadata

Assignees

No one assigned

    Labels

    gittensor:featureGittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.help wantedExtra attention is needed

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions