DesignCraft: An open-source page and layout design editor written by scratch in pure Rust
Docs: install the CLI and register it with MCP clients
KnottyDyes07b4956e0f05
diff --git a/ROADMAP.md b/ROADMAP.mdindex 9bd0274ef..292a5c55b 100644--- a/ROADMAP.md+++ b/ROADMAP.md@@ -348,6 +348,8 @@ list) · [roadmap.md](docs/roadmap.md) (milestones, plan) · [parity-checklist.mNewest first.+- **2026-10-17** · Docs: documented a persistent source CLI install with Cargo, MCP-client PATH setup and bare-name server registration in `docs/mcp.md`. No readiness percentage change.+- **2026-10-16** · Threading: the loaded text cursor threads into a text frame inside a group (it hit the group and showed it could not thread); a plain click still selects the group (#1075). Gap 27 closed. No readiness percentage change.- **2026-10-16** · Greek text hyphenates. The patterns were never compiled in, so Greek set unhyphenated however narrow the column; `"Greek"`, `"Greek: Greece"`, `el` and `el-GR` all resolve now and ανθρωπος breaks αν-θρω-πος. They are the monotonic patterns (hyph-el-monoton, Dimitrios Filippou, under MIT), which is what polytonic text hyphenates by too. Five of InDesign's ~40 hyphenation languages. No readiness percentage change.- **2026-10-16** · A swatch applied to a placed greyscale or bitmap image colours it, as in InDesign: IDML's `<Image FillColor>` is read and written, greyscale pixels become a tint of the swatch on opaque white and a bitmap's white lets the frame show through, on screen and in PDF (spot swatches print on their plate). Colour images keep their colours. Applying the swatch from the Swatches panel comes next. No readiness percentage change.diff --git a/docs/mcp.md b/docs/mcp.mdindex bba394e33..1aba6b224 100644--- a/docs/mcp.md+++ b/docs/mcp.md@@ -7,21 +7,64 @@ the result as PNG images. It speaks newline-delimited JSON-RPC 2.0 on stdin/stdo## Register it-Build the CLI (`cargo build --release -p designcraft-cli`), then:+### From source (development)++With Rust and Cargo installed, run this from the repository root:++```sh+cargo install --path apps/designcraft-cli --locked+```++Cargo copies the executable into its installation root's `bin` directory, normally+`~/.cargo/bin` (Windows `%USERPROFILE%\.cargo\bin`). If you set `CARGO_INSTALL_ROOT`,+Cargo's `install.root` configuration, or `CARGO_HOME`, use that installation's `bin`+directory instead. Unlike a symlink into `target/release`, this copy survives+`cargo clean`. Repeat the install command after source changes to update it.++Ensure that directory is on `PATH`. For a default install in a POSIX shell:++```sh+export PATH="$HOME/.cargo/bin:$PATH"+designcraft-cli --help+```++Persist the PATH setting in your shell configuration (on Windows, add the directory+to your user Path). The **MCP client process** must inherit that PATH too; restart+the client after changing it. A GUI-launched client may not read shell configuration.+If it still reports `ENOENT` or "executable not found", use the absolute path to the+installed binary in its registration instead of the bare name.++### Headless and connected registration++After installation, register the CLI by name:```sh# Headless: an in-process engine, no window-claude mcp add designcraft -- /path/to/target/release/designcraft-cli mcp+claude mcp add designcraft -- designcraft-cli mcp-# Drive the running desktop app (start it first with a control port)+# Drive the running desktop app (install/start the desktop app separately)designcraft --control 7979-claude mcp add designcraft-app -- /path/to/target/release/designcraft-cli mcp --connect 7979+claude mcp add designcraft-app -- designcraft-cli mcp --connect 7979```Other MCP clients use the same command line, e.g. in a JSON config:```json-{"mcpServers": {"designcraft": {"command": "/path/to/designcraft-cli", "args": ["mcp"]}}}+{+ "mcpServers": {+ "designcraft": {+ "command": "designcraft-cli",+ "args": ["mcp"]+ }+ }+}+```++If the client cannot find the CLI on PATH, substitute the absolute installed path+(not a path under `target/`), for example:++```sh+claude mcp add designcraft -- /absolute/install/root/bin/designcraft-cli mcp```### From an installed release