garment-cad-mcp
Provides remote GPU worker integration with NVIDIA AutoDL, enabling serial execution, caching, polling, artifact retrieval, and screenshot enforcement for garment CAD workloads.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@garment-cad-mcp Draft a front bodice panel and preview it"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
garment-cad-mcp
Agent-facing garment CAD control plane built around pinned Valentina and GarmentCode sources.
Repository checkpoint: see current status and verification. This is a source-checkout development release, not a certified autonomous patternmaker. The native vendor trees contain documented local integration fixes; no commercial 3D backend has been installed or substituted. Historical evaluation reports remain dated evidence and do not override the current capability boundaries.
Current qualification: a fresh GPT-6 session has completed drafting and a post-delivery designer-feedback revision without in-round reviewer intervention. The complex-jeans result still fails intended fit; this is not production-ready patternmaking certification. See the two-round evidence and limits.
Latest core/reference evaluation: after generic export, surface-containment and runtime fixes, a new GPT-6 session independently restored sewing and completed current physical observation of an existing paper project without changing its paper or material inputs. Waist position still fails; this is not full multilayer or fit approval. See optimization, reference inputs and A/B/C evidence. The material-response follow-up adds native flat-area/mass observations and controlled cloth-response diagnostics; it does not calibrate real fabrics or change simulation parameters to pass a garment.
It provides two local stdio MCP servers, a shared Python SDK, preview/commit transactions, append-only revisions, a native GarmentCode document, and a serial AutoDL GPU worker API. Public geometry uses millimetres; the native GarmentCode host converts to centimetres at its boundary.
from garmentcad import GarmentSDK
cad = GarmentSDK("./projects/sample")
preview = cad.commands.pattern_along_line(
alias="front.armhole.guide",
first_point={"alias": "front.shoulder"},
second_point={"alias": "front.underarm"},
length_mm=35,
)
# Inspect preview.summary, then commit explicitly:
# garmentcad commit <preview.preview_token> --path ./projects/sampleValentina, Tape, and Puzzle recipes use the schema-generated typed atomic surface. They create all 2D geometry; GarmentCode only receives a read-only projection for sewing and 3D placement. The same contracts are embedded in lazily loaded MCP tool schemas:
assembly_preview = cad.sync_assembly_from_pattern(bindings={"interfaces": [], "stitches": []})Quick start:
./scripts/bootstrap-macos.sh
uv run garmentcad create ./projects/sample
./scripts/test.shBoth MCP servers can create a project from the minimal Valentina-authored seed. Claude Code uses
.mcp.json; local Codex clients use .codex/config.toml. Codex starts the atomic catalogs eagerly
because Codex 0.144.1 does not refresh tools registered after catalog_search. The stable
command_preview core tool remains available to clients that cannot refresh a dynamic catalog.
Exercise integration fixtures without editing .val XML (these are rectangular
test panels, not usable bodice/shirt/trouser patterns):
uv run python scripts/recipes/draft_qualification_pattern.py bodice /tmp/bodice --create
uv run python scripts/recipes/draft_qualification_pattern.py shirt /tmp/shirt --create
uv run python scripts/recipes/draft_qualification_pattern.py trousers /tmp/trousers --createRun the public real-pattern qualification suite and open its HTML report:
GARMENTCAD_VALENTINA_COMMAND="$PWD/scripts/valentina-command-host.sh" \
uv run garmentcad-corpus validate --output build/reports/real-patterns
open build/reports/real-patterns/report.htmlRead the architecture, setup guide, and
native Valentina host contract. The
acceptance ledger separates locally proven gates from the pending real-GPU
evidence. See THIRD_PARTY.md for exact upstream commits and licenses.
For actual drafting, use the project-local garment-patternmaking skill in
.agents/skills/. The drafting evaluation record
describes real GPT-6 attempts, paper-pattern checks and remaining limits.
pattern_inspect, seam_compare and pattern_check expose read-only native
measurements; they report only the explicitly checked criteria, not fit approval.
For ongoing client work, work_order_save/read/check preserves the brief, body versus
finished measurements, assumptions, required piece roles and native checks alongside
the project. Reports become stale when the task or CAD content changes. knowledge_search
retrieves a small, sourced offline reference library; it is not a database of certified
mother patterns. See the workflow research and implementation.
These tools need no database service and do not upload customer data.
For the single-agent image → draft → sew → physical preview → revise workflow, see
the 3D loop record. simulation_run_local runs the
pinned physical solver on local CPU using configured body/material/camera inputs;
it preserves failed meshes and views as diagnostic evidence. It does not certify fit.
Native cut instances, sewing directions, outward placement and actual convergence
must be verified; a placed mesh or an imported library is not a simulated garment.
Current integration status
GarmentCode native-document sync, placement, interface/stitch transactions, SDK, and MCP: implemented and tested. There is no Python-side panel geometry kernel.
Remote worker upload, serial execution, cache, polling, artifacts, and screenshot enforcement: implemented together with the pinned Warp/GarmentCode runner, AutoDL bootstrap, and SSH tunnel; deployment supplies the body assets and an NVIDIA AutoDL instance.
Valentina/Tape/Puzzle native command services, MCP catalog, and schema-generated typed recipes: implemented with complete reviewed handler coverage.
Native previews include compact image resources; full coordinates, change-sets, assembly data, exports, and simulation logs remain URI-addressable on demand.
The checked-in public corpus contains 85
.valfiles: the current strict run passed every self-contained production-like case; missing measurement assets and regression rejections remain visible as separate report categories.
The boundary remains explicit: this project never edits .val XML behind Valentina's back.
Passing this suite establishes CAD transport and transaction fidelity, not that an unaudited agent
draft is fit for manufacture.
Available Tools
10 toolscatalog_searchARead-onlyIdempotent
Search atomic tools by name/action/description and optionally load matches.
Inputs: query (required), load, limit. Returns: object
changeset_commitA
Atomically commit one valid preview at its recorded base revision/hash.
Inputs: path (required), preview_token (required). Returns: object
changeset_discardA
Discard one immutable preview without changing native CAD truth.
Inputs: path (required), preview_token (required). Returns: object
command_previewB
Preview one catalog action without requiring a dynamically refreshed tool list.
Inputs: action (required), project_path (required), author, target, +2 more. Returns: object
project_createA
Create a minimal native-authored Garment Project for drafting from scratch.
Inputs: path (required), name. Returns: object
project_importB
Import native .val and optional Tape files without parsing or rewriting them.
Inputs: project_path (required), source_pattern (required), name, measurement_files. Returns: object
project_openARead-onlyIdempotent
Open an existing Garment Project and return compact current state.
Inputs: path (required). Returns: object
project_statusCRead-onlyIdempotent
Refresh revision, content hash, GUI-dirty state, and project identity.
Inputs: path (required). Returns: object
resource_readBRead-onlyIdempotent
Read a project change-set, preview, thumbnail, or content-addressed artifact.
Inputs: uri (required), project_path (required).
revision_revertC
Append a reverse revision from native CAD preimages.
Inputs: path (required), revision (required), author. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Most tools target distinct actions (create, import, open, status, search, read, commit, preview, discard, revert). However, project_open and project_status both relate to viewing project state, which could cause minor confusion, though their descriptions clarify that status refreshes state while open returns it.
All tool names follow a consistent verb_noun pattern in snake_case (e.g., project_create, changeset_commit, revision_revert). No mixed conventions or vague verbs; the naming is highly predictable and readable.
The server has 10 tools, which is well within the typical 3-15 range. Each tool serves a distinct purpose in the garment CAD workflow, and the count feels proportionate to the domain without being excessive or thin.
The tool surface covers core project lifecycle (create, import, open, status), changeset management (commit, discard), and revision operations (revert). Minor gaps exist such as no project deletion or listing, but the provided tools cover the primary workflows.
Maintenance
Related MCP Connectors
Design canvas for agents: create, edit, render and export Figma-shaped designs over MCP.
Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.
Build, test, publish, and run Kovca workflows from AI agents over remote MCP.
Hosted AgentLux MCP server for marketplace, identity, creator, services, and social flows.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceA PRD-first multi-agent MCP server that wraps agent definitions, collaboration rules, and staged delivery into a local stdio service for standardized software delivery workflows.MIT
- AlicenseNot gradedqualityBmaintenanceLocal-first code intelligence and safety layer for AI coding agents. MCP server exposes dependency graph, impact analysis, and AST-compressed repo context, backed by typed local memory, patch-scope safety gates, and git-independent transaction rollback.1MIT
- FlicenseBqualityBmaintenancemcp-agent-ops is a local stdio MCP server for deterministic agent-development operations that otherwise cause repeated shell and generated Python calls.26-
- AlicenseCqualityBmaintenanceLocal-first MCP runtime for coding agents with bounded workspace access, content-preconditioned writes, AST search, LSP navigation and diagnostics, and Git status/diff. Designed to give coding agents useful repository access without treating unrestricted shell access as the default integration boundary.133MIT