mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-24 23:25:07 +00:00
487e18d726
The review round of the #7071 stack, which #9167 merged without (it took the pre-review heads): - A bare --help or -h before `--` is help after any parse error, not only after a missing value: `mcp stray.psd --help` and `serve --port abc --port 1 -h` print the subcommand's help. - mcp and serve --help carry #8035's rules: what the automation roots grant, that bridge roots are refused, and that the token flags need --bridge or --port (or PHOTOCRAFT_CONTROL_PORT). - check_server takes the subcommand and whether a transport is set; the bridge-roots check moves next to the other mcp checks. - The server tests match clap's "a value is required for" text, and mcp.md in the book and docs names PHOTOCRAFT_CONTROL_PORT. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>