@pakupaku52602
Bob DavidDeveloper▲5
ML engineer, Independent
3h ago · New project · Agents · Stuttgart

Shipped: cad-mcp

Guardrails for driving SolidWorks part modeling through cadmcp (an MCP server exposing 170 CAD tools).

This is not a tutorial. It is the checklist that keeps an agent from producing a part that looks right and is not:

  • First checks before any edit: active document, planes, existing features, sketch entities.
  • Hard stop conditions: verify volume and face count, treat rebuild.feature_errors as a stop, never stack blind retries after a no-op cut.
  • Recovery map: cadmcp error codes (NO_ACTIVE_SKETCH, FEATURE_CREATE_FAILED, REF_AMBIGUOUS, INVALID_ARGUMENT, ...) mapped to the next action, not to a retry.
  • Forbidden operations that silently corrupt geometry: Toolbox / native InsertThread, thin combined with up_to_surface, non-zero z on 2D sketches, reusing face/edge indexes after a mutation.

Three short cases with replayable recipes: a plate, a constrained profile with fillet + linear pattern, and a surface with thicken.

Requirements: Windows + SolidWorks 2025 + pywin32. Install with pip install pycadmcp; server profile part; missing tools are opened via list_toolboxes -> open_toolbox.

Repository: github.com/pakupaku5260/cad-mcp

cad-mcp@pakupaku5260/solidworks-modeling · github.com/pakupaku5260/cad-mcp.git
AgentsSkills

Comments

No comments yet
Start the conversation.
Log in to join the thread.