Files
figcraft/apps/figcraft-cli/Cargo.toml
T
David Mann 48287201cf mcp: plain figcraft-cli mcp reaches the open window through the launcher's switch (#2740)
While the ArtCraft Launcher's switch lets agents use FigCraft, figcraft-cli mcp sends each call
to the open window through craft_control::agents::Live (the connection file, the token file; a
closed app is started) and otherwise runs headless in the automation roots or the agent folder.
Without the switch it still needs both roots (rule 18); --headless forces headless. --attach
reads the token file of its port.

Requests from the agent listener carry the agent folder as their roots (ControlRequest::roots):
handle runs confined to them and a screenshot path is checked as it is admitted, unless the app
was started with roots of its own. Docs: mcp.md, control-protocol.md, cli.md.
2026-11-29 15:18:51 +01:00

41 lines
1.1 KiB
TOML

[package]
name = "figcraft-cli"
version.workspace = true
edition.workspace = true
license.workspace = true
publish = false
description = "FigCraft command line: info, export, convert, render, scripted commands, MCP server, perf"
[lib]
name = "figcraft_cli"
path = "src/lib.rs"
[[bin]]
name = "figcraft-cli"
path = "src/main.rs"
[lints]
workspace = true
[dependencies]
figcraft-engine = { workspace = true }
figcraft-collab-net = { workspace = true }
figcraft-doc = { workspace = true }
figcraft-render = { workspace = true }
figcraft-text = { workspace = true }
figcraft-svg = { workspace = true }
figcraft-format = { workspace = true }
figcraft-mcp = { workspace = true }
# `mcp`: the open window through the ArtCraft Launcher's switch, and the control channel's token.
craft-control = { workspace = true }
# The settings folder the app publishes its connection file in.
craft-settings = { workspace = true }
serde_json = { workspace = true }
clap = { workspace = true }
thiserror = { workspace = true }
[dev-dependencies]
# 4.6 breaks Bash subcommand completion for hyphenated binary names (clap-rs/clap#6421).
clap_complete = "~4.5.67"
clap_mangen = "0.3"