Skip to content

fix(mcp): canopy-mcp --help (v3.1.1)#28

Merged
ashmitb95 merged 1 commit into
mainfrom
mcp-help-flag
May 31, 2026
Merged

fix(mcp): canopy-mcp --help (v3.1.1)#28
ashmitb95 merged 1 commit into
mainfrom
mcp-help-flag

Conversation

@ashmitb95

Copy link
Copy Markdown
Owner

Summary

canopy-mcp --help used to fall through to mcp.run(transport="stdio"), read EOF from the TTY, and crash with a Pydantic JSON validation error. That's the first thing a fresh pipx install canopy-cli user hits when they try to inspect the binary. Adds explicit --help / -h handling that prints usage and exits, mirroring the existing --version branch.

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 --help and -h print usage and exit cleanly
  • canopy-mcp --version still prints canopy-mcp 3.1.1
  • canopy-mcp with no args still starts the stdio server (no behavior change)
  • CI green
  • After merge: tag v3.1.1, workflow publishes canopy-cli 3.1.1 to PyPI

… 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.
@ashmitb95 ashmitb95 merged commit ba6a96d into main May 31, 2026
4 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.

1 participant