Skip to content

Commit f53f9aa

Browse files
committed
fix(mcp): list maintain and contributor-profile in --help
printHelp() listed ~30 real top-level commands but omitted two dispatched ones: maintain (13-plus subcommands, its own printMaintainHelp()) and contributor-profile (added by #6737). A user running loopover-mcp --help had no way to discover either command exists. Added a usage line for each, following the existing entries' formatting; maintain's line points to loopover-mcp maintain --help for the full subcommand list rather than duplicating it.
1 parent a45625f commit f53f9aa

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

packages/loopover-mcp/bin/loopover-mcp.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4535,8 +4535,10 @@ function printHelp() {
45354535
loopover-mcp doctor [--profile name] [--cwd path] [--exit-code] [--json]
45364536
loopover-mcp cache status|list|clear [--json]
45374537
loopover-mcp init-client --print codex|claude|cursor|mcp|vscode [--agent-profile miner-planner|maintainer-triage|repo-owner-intake] [--json]
4538+
loopover-mcp maintain status|queue|approve|reject|pause|resume|set-level|precision|outcome-calibration|onboarding-pack|audit-feed|automation-state|refresh-docs|generate-issue-drafts --repo owner/repo [--json] (see \`loopover-mcp maintain --help\`)
45384539
loopover-mcp decision-pack --login <github-login> [--json]
45394540
loopover-mcp repo-decision --login <github-login> --repo owner/repo [--json]
4541+
loopover-mcp contributor-profile [--login <github-login>] [--json]
45404542
loopover-mcp monitor-open-prs --login <github-login> [--json]
45414543
loopover-mcp pr-outcomes --login <github-login> [--limit N] [--json]
45424544
loopover-mcp explain-review-risk --repo owner/repo --title <text> [--login <github-login>] [--body <text>] [--json]

test/unit/mcp-cli-help.test.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { describe, expect, it } from "vitest";
2+
import { run } from "./support/mcp-cli-harness";
3+
4+
// #6991: printHelp() listed ~30 real top-level commands but omitted two dispatched ones: `maintain`
5+
// (packages/loopover-mcp/bin/loopover-mcp.js's maintainCli) and `contributor-profile`
6+
// (contributorProfileCli, added by #6737). A user running `loopover-mcp --help` had no way to
7+
// discover either command exists.
8+
describe("loopover-mcp --help lists every real top-level command (#6991)", () => {
9+
it("lists maintain, pointing to its own --help for the full subcommand list", () => {
10+
const output = run(["--help"]);
11+
expect(output).toMatch(/loopover-mcp maintain .*--repo owner\/repo/);
12+
expect(output).toMatch(/loopover-mcp maintain --help/);
13+
});
14+
15+
it("lists contributor-profile", () => {
16+
const output = run(["--help"]);
17+
expect(output).toMatch(/loopover-mcp contributor-profile/);
18+
});
19+
20+
it("also responds to the bare `help` command with the same usage banner", () => {
21+
const output = run(["help"]);
22+
expect(output).toMatch(/loopover-mcp maintain/);
23+
expect(output).toMatch(/loopover-mcp contributor-profile/);
24+
});
25+
});

0 commit comments

Comments
 (0)