Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 95 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ craft-behavior = { git = "https://github.com/storytold/craft-libs", rev = "d7010
craft-host = { git = "https://github.com/storytold/craft-libs", rev = "d7010805175ba1190d521b2565852bdda39e632c" }
craft-theme = { git = "https://github.com/storytold/craft-libs", rev = "d7010805175ba1190d521b2565852bdda39e632c" }
craft-i18n = { git = "https://github.com/storytold/craft-libs", rev = "d7010805175ba1190d521b2565852bdda39e632c" }
# Agents in the open window through the ArtCraft Launcher's switch: the link host (control server, token,
# connection file) and the Agents page of Preferences (`craft-automation`), the switch, the agent settings and
# the CLI's live client (`craft-control`).
craft-automation = { git = "https://github.com/storytold/craft-libs", rev = "d7010805175ba1190d521b2565852bdda39e632c" }
craft-control = { git = "https://github.com/storytold/craft-libs", rev = "d7010805175ba1190d521b2565852bdda39e632c" }
craft-font-catalog = { git = "https://github.com/storytold/craft-libs", rev = "d7010805175ba1190d521b2565852bdda39e632c", default-features = false }
harfrust = "0.13"
read-fonts = { version = "0.43", default-features = false }
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,16 +160,16 @@ starts from a PBR template or one of the sample materials.

### Use it from Claude Code and other agents

Register the MCP server with Claude Code, giving it the folders it may read and write:
Turn on **ArtCraft Launcher ▸ Settings ▸ AI agents**: the launcher adds one entry to Claude
Desktop, Claude Code, Cursor and LM Studio, and agents then work in the open MaterialCraft window,
with files in `Documents/ArtCraft/Agents/MaterialCraft` (**Edit ▸ Preferences ▸ AI Agents** sets
other folders and what happens while MaterialCraft is closed).

```sh
claude mcp add materialcraft -- /path/to/materialcraft-cli mcp --read-root /work/materials --write-root /work/materials
```

To drive the running app instead, start it with `--control 7878` and bridge to it:
Without the launcher, register a headless MCP server with Claude Code, giving it the folders it may
read and write:

```sh
claude mcp add materialcraft-app -- /path/to/materialcraft-cli mcp --bridge 7878
claude mcp add materialcraft -- /path/to/materialcraft-cli mcp --headless --read-root /work/materials --write-root /work/materials
```

The details are in [`docs/control-protocol.md`](docs/control-protocol.md).
Expand Down
Loading
Loading