docs: align MCP reference with repeatable roots and switches

Clarify usage of MCP and serve launch options regarding value requirements and repetition.
This commit is contained in:
Mex authored and GitHub committed 2026-11-14 18:30:53 +01:00
1 parent 4ae6e4df37
commit b61e51d0b2
1 file changed
+3 -2
+3 -2
View File
@@ -171,8 +171,9 @@ flags on `photocraft-cli mcp --bridge` are rejected. Explicit `--control-token`
`--control-token-file` flags require `--bridge` (or `PHOTOCRAFT_CONTROL_PORT`) and are mutually
exclusive. Bridge credentials can also come from `PHOTOCRAFT_CONTROL_TOKEN` or `PHOTOCRAFT_CONTROL_TOKEN_FILE`.
MCP and `serve` launch options (all but `--help`/`-h`) take one non-empty value each and cannot
be repeated. Missing values, stray positional arguments and options for the wrong mode are
MCP and `serve` switches such as `--headless`, `--gpu`, `--no-gpu` and `--help`/`-h` take no
value. Value options take one non-empty value each; `--automation-read-root` may repeat to
add ordered read directories, while other launch options cannot be repeated. Missing values, stray positional arguments and options for the wrong mode are
usage errors (exit 2), reported on stderr before the server starts; stdout stays available for
protocol messages. For `serve`, explicit credential flags require `--port` (or
`PHOTOCRAFT_CONTROL_PORT`); stdio needs no control token.