feat(mcp-server): --help/--version + npm-name clarity (0.113.9)#234
Merged
Conversation
The stdio entry ignored argv and booted the server even for `--help`/ `--version`, which is confusing for a human probing `npx @vibeframe/mcp-server`. Add a pure, testable handleCliFlags() helper (kept out of the booting entry so it stays unit-testable) that prints usage or the version to stdout and exits before any startup side effects; unknown args still fall through to a normal boot. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Note that the published packages are @vibeframe/cli (bin vibe) and @vibeframe/mcp-server, and that the bare `vibeframe` npm name is an unrelated third-party package, so `npx vibeframe` does not run this tool. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Post-0.113.8 polish surfaced while re-verifying the release across hosts.
--help/--version: the stdio entry ignored argv and bootedthe server even when a human ran
npx @vibeframe/mcp-server --help. Add apure, testable
handleCliFlags()helper (kept out of the booting entry so itstays unit-testable) that prints usage / the version to stdout and exits
before any startup side effects. Unknown args still fall through to a normal
boot.
@vibeframe/cli(binvibe) and@vibeframe/mcp-server, and that the barevibeframenpm name is an unrelated third-party package, sonpx vibeframedoes not run this tool.
Testing
pnpm -F @vibeframe/mcp-server test— 73 passed (incl. 4 newcli-flagstests)--version→0.113.9,--help→ usage on stdout,bare invocation still boots ("VibeFrame MCP Server started")
bash scripts/pre-push-validate.sh→ exit 0 (version sync, typecheck,gen:reference:check, agent-sync:check, CHANGELOG)
plan → build --dry-run, all exit 0; dry-run est. $0.78, 0 validation errors)
🤖 Generated with Claude Code