Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/loopover-mcp/bin/loopover-mcp.js
Original file line number Diff line number Diff line change
Expand Up @@ -4535,8 +4535,10 @@ function printHelp() {
loopover-mcp doctor [--profile name] [--cwd path] [--exit-code] [--json]
loopover-mcp cache status|list|clear [--json]
loopover-mcp init-client --print codex|claude|cursor|mcp|vscode [--agent-profile miner-planner|maintainer-triage|repo-owner-intake] [--json]
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\`)
loopover-mcp decision-pack --login <github-login> [--json]
loopover-mcp repo-decision --login <github-login> --repo owner/repo [--json]
loopover-mcp contributor-profile [--login <github-login>] [--json]
loopover-mcp monitor-open-prs --login <github-login> [--json]
loopover-mcp pr-outcomes --login <github-login> [--limit N] [--json]
loopover-mcp explain-review-risk --repo owner/repo --title <text> [--login <github-login>] [--body <text>] [--json]
Expand Down
25 changes: 25 additions & 0 deletions test/unit/mcp-cli-help.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { describe, expect, it } from "vitest";
import { run } from "./support/mcp-cli-harness";

// #6991: printHelp() listed ~30 real top-level commands but omitted two dispatched ones: `maintain`
// (packages/loopover-mcp/bin/loopover-mcp.js's maintainCli) and `contributor-profile`
// (contributorProfileCli, added by #6737). A user running `loopover-mcp --help` had no way to
// discover either command exists.
describe("loopover-mcp --help lists every real top-level command (#6991)", () => {
it("lists maintain, pointing to its own --help for the full subcommand list", () => {
const output = run(["--help"]);
expect(output).toMatch(/loopover-mcp maintain .*--repo owner\/repo/);
expect(output).toMatch(/loopover-mcp maintain --help/);
});

it("lists contributor-profile", () => {
const output = run(["--help"]);
expect(output).toMatch(/loopover-mcp contributor-profile/);
});

it("also responds to the bare `help` command with the same usage banner", () => {
const output = run(["help"]);
expect(output).toMatch(/loopover-mcp maintain/);
expect(output).toMatch(/loopover-mcp contributor-profile/);
});
});