Skip to content

CLI mirror for loopover_get_repo_outcome_patterns #6734

Description

@JSONbored

Context

The MCP tool loopover_get_repo_outcome_patterns (src/mcp/server.ts:1916, via getRepoOutcomePatterns at src/mcp/server.ts:3345) mirrors the already-public, unauthenticated REST route GET /v1/repos/:owner/:repo/outcome-patterns (src/api/routes.ts:3086). No CLI stdio tool exists for it.

Requirements

  • Add registerStdioTool("loopover_get_repo_outcome_patterns", { inputSchema: ownerRepoShape }, ...) proxying GET {prefix}/outcome-patterns.
  • Add --json support.
  • Extend test/unit/mcp-tool-rename-aliases.test.ts's tool count.

Deliverables

  • registerStdioTool("loopover_get_repo_outcome_patterns", ...)
  • Updated tool-count assertion
  • Unit test

Test Coverage Requirements

99%+ Codecov patch coverage on every changed line and branch in the new route/tool/CLI code, plus a test asserting output parity between the mirrored surfaces for identical input.

Expected Outcome

Repo outcome patterns are queryable from the CLI, matching the existing public REST/MCP surfaces.

Links & Resources

Precedent: registerStdioTool("loopover_get_maintainer_noise", ...) at loopover-mcp.js:1225 — same ownerRepoShape + apiGet pattern.

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