fix(mcp): honor --help on the contributor-profile CLI command#7038
Conversation
contributorProfileCli had no `if (options.help === true)` short-circuit, unlike every sibling command around it (decisionPackCli, monitorOpenPrsCli, repoDecisionCli). `loopover-mcp contributor-profile --help` fell through to login resolution and threw "Pass --login ..." instead of printing usage. Add printContributorProfileHelp() and the --help guard at the top of the command, mirroring decisionPackCli. Closes JSONbored#6992
|
🚨 Contributor flagged. Click here for more info: Superagent Dashboard |
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7038 +/- ##
=======================================
Coverage 93.74% 93.74%
=======================================
Files 692 692
Lines 68740 68740
Branches 18768 18768
=======================================
Hits 64443 64443
Misses 3302 3302
Partials 995 995
Flags with carried forward coverage won't be shown. Click here to find out more. |
|
Warning ⏸️ LoopOver review result - manual review recommendedReview updated: 2026-07-17 19:21:43 UTC
Review summary Nits — 3 non-blocking
Flagged checks (non-blocking)
Decision drivers
Context & advisory signals — never blocks the verdict
Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
What
contributorProfileCli(packages/loopover-mcp/bin/loopover-mcp.js), the CLI mirror ofloopover_get_contributor_profile, had no--helphandling. Every sibling command around it does —decisionPackCli,monitorOpenPrsCli,repoDecisionCli. Runningloopover-mcp contributor-profile --helpfell through to login resolution and threw"Pass --login <github-login>, log in with \loopover-mcp login`, or set LOOPOVER_LOGIN."` instead of printing usage.How
Add
printContributorProfileHelp()and anif (options.help === true) return printContributorProfileHelp();guard at the top of the command, mirroringdecisionPackCliexactly. The help text documents the usage, the--login/--jsonflags, and the login-resolution precedence.Validation
Test added to the existing
test/unit/mcp-cli-contributor-profile.test.ts(rather than a parallel file):contributor-profile --helpprints usage with no--loginand no fixture server, and never emits thePass --loginerror. Confirmed it fails against the unfixed command and passes with the fix.build:mcpandtest:mcp-packpass; sibling CLI tests remain green.Closes #6992