From b61e51d0b2da8605c220d560595bccb6ff82843c Mon Sep 17 00:00:00 2001 From: Mex <44814932+MMexicann@users.noreply.github.com> Date: Sat, 14 Nov 2026 18:30:53 +0100 Subject: [PATCH] docs: align MCP reference with repeatable roots and switches Clarify usage of MCP and serve launch options regarding value requirements and repetition. --- docs/mcp.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/mcp.md b/docs/mcp.md index 64fd88baa5..59859326be 100644 --- a/docs/mcp.md +++ b/docs/mcp.md @@ -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.