fix(mcp): canopy-mcp --help (v3.1.1)#28
Merged
Merged
Conversation
… stdin Running `canopy-mcp --help` from a shell used to fall through to `mcp.run(transport="stdio")`, which read EOF from a TTY stdin and crashed with a Pydantic JSON validation error — the first thing a fresh pipx-installer would see. Add explicit --help / -h handling that prints usage text and exits, mirroring the existing --version branch. Bump to 3.1.1, add changelog entry.
4 tasks
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
canopy-mcp --helpused to fall through tomcp.run(transport="stdio"), read EOF from the TTY, and crash with a Pydantic JSON validation error. That's the first thing a freshpipx install canopy-cliuser hits when they try to inspect the binary. Adds explicit--help/-hhandling that prints usage and exits, mirroring the existing--versionbranch.Why a patch release
The bad UX ships in v3.1.0 (just published to PyPI). Cutting v3.1.1 immediately so new pipx-installers don't trip on it.
Test plan
canopy-mcp --helpand-hprint usage and exit cleanlycanopy-mcp --versionstill printscanopy-mcp 3.1.1canopy-mcpwith no args still starts the stdio server (no behavior change)v3.1.1, workflow publishescanopy-cli 3.1.1to PyPI