Skip to content

feat: unify version management with --version/-V flag#231

Open
axisrow wants to merge 1 commit intoIBM:mainfrom
axisrow:feature/unified-version
Open

feat: unify version management with --version/-V flag#231
axisrow wants to merge 1 commit intoIBM:mainfrom
axisrow:feature/unified-version

Conversation

@axisrow
Copy link
Contributor

@axisrow axisrow commented Mar 2, 2026

Summary

  • Replace hardcoded version strings with dynamic version from importlib.metadata
  • __init__.py: read __version__ from installed package metadata instead of "1.0.0"
  • apps/host.py: use APP_VERSION from config instead of hardcoded "0.13"
  • main.py: add --version/-V CLI flag via Typer eager option

Test plan

  • mcp-cli --version prints mcp-cli <version> and exits cleanly
  • mcp-cli -V same behavior
  • mcp-cli --help shows the --version option
  • MCP Apps host page still shows correct version in footer
  • Existing commands unaffected

🤖 Generated with Claude Code

Replace hardcoded version strings with dynamic version from
importlib.metadata. Add --version/-V CLI flag to mcp-cli.

- __init__.py: read __version__ from package metadata instead of "1.0.0"
- apps/host.py: use APP_VERSION from config instead of hardcoded "0.13"
- main.py: add _version_callback and --version/-V option to Typer app

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant