cadcraft/docs
Valentin Klein bcbbc5e8a4
cadcraft-cli mcp: --connect without HOST:PORT is an error, not a headless session (fixes #103) (#167)
* cadcraft-cli mcp: --connect without HOST:PORT is an error, not a headless session (#103)

`mcp --connect` with no address (or an empty or flag-like one) fell through
to the headless backend, so a client meant for the app got successful edits
in a separate drawing. The mcp arguments now go through parse_mcp_args:
--connect must be followed by a non-empty value that doesn't start with `-`,
unknown arguments and a repeated --connect are rejected, and every error
exits non-zero before any MCP request is served. Plain `mcp` is still
headless; a real address still connects, and an unreachable one still fails.

- Unit tests for the parser; integration tests (tests/mcp_connect.rs) run the
  binary: missing/empty/flag-like address, headless control, loopback
  endpoint routing, closed port.
- docs/mcp.md says what happens without an address.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Move tests away from other PRs' hunks to avoid merge conflicts

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 12:15:50 -04:00
..
brand M0: CADCraft skeleton and vertical slice 2026-10-05 23:22:25 -04:00
images README screenshots, alpha/parity assessment in ROADMAP, MLEADER written to DXF as LEADER + MTEXT 2026-10-06 02:12:34 -04:00
contributors.md About: contributor and model credits compiled in (grab bag + table, self-submitted names) (#3) 2026-10-07 21:16:30 -04:00
control-protocol.md M0: CADCraft skeleton and vertical slice 2026-10-05 23:22:25 -04:00
mcp.md cadcraft-cli mcp: --connect without HOST:PORT is an error, not a headless session (fixes #103) (#167) 2026-10-10 12:15:50 -04:00
parity.md M4 annotation depth + M9 parametric constraints 2026-10-06 01:27:38 -04:00
releasing.md Release: Flatpak x86_64/aarch64, AppImage zsync updates, README Downloads (#16) 2026-10-08 09:40:49 -04:00