Skip to content

Conversation

@majiayu000
Copy link
Contributor

Summary

  • Added printCommandHelp() function to display help for each subcommand
  • mcp-publisher init --help now shows init command help instead of running init
  • mcp-publisher login --help now shows login methods instead of error
  • mcp-publisher publish --help now shows publish usage instead of attempting publish

Fixes #735

majiayu000 and others added 2 commits December 28, 2025 21:04
Each subcommand (init, login, logout, publish) now properly displays
help information when called with --help or -h flag.

Fixes modelcontextprotocol#735

Signed-off-by: majiayu000 <1835304752@qq.com>
Copy link
Member

@rdimitrov rdimitrov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for addressing this, @majiayu000! 💯

This wasn't part of the issue but at some point we would want to revisit the CLI implementation and use something like cobra instead. In any case, thanks for addressing this gap, for the time being this is perfect 🚀

@rdimitrov rdimitrov merged commit 61fdf17 into modelcontextprotocol:main Jan 3, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mcp-publisher <command> --help does not display help

2 participants