Skip to content
Rustle3D

MCP

AI agents

For people who use an AI assistant: Rustle3D comes with an MCP server that gives it the same commands you have. It's off by default, and you can undo anything it does.

Step-by-step tutorial

Two ways to connect

Attached to the app

The assistant edits the project you have open. You see the pattern and the drape change live, and ⌘Z / Ctrl+Z undoes anything it did.

r3d mcp --attach

Headless

No window: the assistant works straight on a project folder. It simulates and renders images to check its own work. Handy for scripts and automation.

r3d mcp --project ./MySkirt.r3d

What an agent can do

  • Draft garments from templates and measurements
  • Create and reshape pieces, curves and notches
  • Sew edges, match lengths, gather
  • Set fabrics and colours, arrange around the body
  • Run the cloth simulation, with the avatar walking or turning
  • Render the pattern and the drape to images, and take studio photos, to see its work
  • Check the fit: strain and gap maps, the ease at the chest, waist and hips
  • Export SVG, PDF, DXF-AAMA, glTF and OBJ, markers and tech packs
  • Undo, redo, and batch changes into one step

You stay in control

  • Off by default: the app listens only after Agents › Allow AI agents.
  • Local only: a loopback connection with a secret token.
  • Visible: the app shows when an agent is connected, and can disconnect it.
  • Confined: files are only written inside the project folder.
  • Reversible: every change goes into the undo history.

Add Rustle3D to your MCP client

Most clients take a JSON entry like this one. Make sure r3d is on your PATH, or give its full path.

mcp.json
{
  "mcpServers": {
    "rustle3d": {
      "command": "r3d",
      "args": ["mcp", "--attach"]
    }
  }
}
Claude Code
claude mcp add rustle3d -- r3d mcp --attach