Design a garment with an AI agent (MCP)
Connect Claude or any MCP client to Rustle3D, let it edit the garment open in the app while you watch, or run it headless on a project folder.
Rustle3D ships an MCP server, r3d mcp. MCP (the Model Context Protocol) is an
open standard that lets AI assistants use tools. Through it, an assistant gets
the same commands as the app: it can draft, sew, drape, render and export
garments.
There are two modes:
- Attached: the agent edits the project open in the app, live. Its changes go into the app's undo history.
- Headless: the agent works on a project folder, without a window.
1. Find the r3d command
r3d is in the Rustle3D package, next to the app. Note its full path, or add
its folder to your PATH, then check it runs:
r3d --help
2. Add Rustle3D to your MCP client
Most MCP clients take a server command in a JSON file. For the attached mode:
{
"mcpServers": {
"rustle3d": {
"command": "/path/to/r3d",
"args": ["mcp", "--attach"]
}
}
}
With Claude Code, one command does it:
claude mcp add rustle3d -- /path/to/r3d mcp --attach
3. Allow agents in the app
Agents are off by default: the app does not listen to anything until you allow it. Open a project (the A-line skirt template is a good start), then choose Agents › Allow AI agents.
The app now listens on a local connection only, protected by a secret token
that r3d mcp --attach reads for you. When the agent connects, the app shows
Agent connected.
4. Ask for a change
Ask your assistant, for example:
Make the skirt 5 cm shorter, switch it to denim, then simulate and show me the result.
Watch the pattern and the drape change in the app as the agent works. It
lengthens the hem with the edge_lengthen tool, sets the fabric, runs
simulate and can look at its work with render_3d, which returns an image.
Not happy with it? Ctrl+Z (⌘+Z) in the app undoes the agent's changes like your own. Agents › Disconnect the agent ends the session.
5. Headless mode
For scripts and pipelines, point the server at a project folder instead:
r3d mcp --project ./MySkirt.r3d
The folder is created if it does not exist, and every change is saved as it
happens. The agent can draft a garment from scratch, simulate it and check the
result with render_board (the pattern) and render_3d (the drape), then
export it.
Safety
- File writes are confined to the project folder.
- Destructive commands need an explicit confirmation.
- In attached mode, only one agent at a time, and you can disconnect it.