mirror of
https://github.com/storytold/figcraft.git
synced 2026-11-30 10:16:46 +01:00
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.