ML engineer, Independent
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_errorsas 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,
thincombined withup_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
AgentsSkills






Comments
0 comments