Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- **Sketch essentials** (queue item 32): six sketch tools agents reach
for next, 151 tools in all. `add_sketch_fillet` and `add_sketch_chamfer`
round or bevel corners picked by their points (a rectangle's corners have
no ids of their own); `add_slot` draws a straight or arc slot and gives
its area; `sketch_trim` and `sketch_extend` cut back or lengthen an entity
at a point; `set_construction_geometry` makes entities construction
geometry, or normal again, by id. `add_arc` takes `kind` (`center`,
`three_point`, `tangent`) and `add_rectangle` takes `from_center`. Demo:
a slotted bracket plate, on the demos page.
- **Equations and global variables** (queue item 29): `list_equations`,
`set_equation` and `delete_equation`. One value (`"Width" = 60mm`) can
drive several dimensions (`"D1@Sketch1" = "Width" / 2`); `set_equation`
Expand Down Expand Up @@ -219,6 +228,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

- **`construction` is honoured on SolidWorks**: `add_line`, `add_circle`
and `add_rectangle` accepted `construction` but drew normal geometry, while
the reply said `"construction": true`. The tools now set it on the new
entity.
- **`create_cut_extrude` with `both_directions` on a Blind cut** cut one way
only, so a slot meant to straddle its sketch plane came out beside it. It
is now a mid-plane cut, `depth` in total, as `create_extrusion` does.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[![SolidWorks](https://img.shields.io/badge/tested%20on-SolidWorks%202026-red)](https://www.solidworks.com/)
[![Coverage](https://codecov.io/gh/andrewbartels1/SolidworksMCP-python/branch/main/graph/badge.svg)](https://codecov.io/gh/andrewbartels1/SolidworksMCP-python)

Python MCP server for SolidWorks automation with 145 tools, plus an optional agent/prompt-testing layer for AI-assisted workflows.
Python MCP server for SolidWorks automation with 151 tools, plus an optional agent/prompt-testing layer for AI-assisted workflows.

[![115 MCP tools by support level (the 8 deprecated ones not counted), and how much of the core SolidWorks COM API they reach](docs/assets/progress/progress.svg)](https://andrewbartels1.com/SolidworksMCP-python/progress/)

Expand Down Expand Up @@ -367,7 +367,7 @@ It works only with the circuit-breaker adapter wrapper (the default for real Sol

### A shorter tool list

All 145 tools cost about 59,000 tokens a turn. `SOLIDWORKS_MCP_TOOL_MODE=search` lists four instead (about 900 tokens); `SOLIDWORKS_MCP_TOOLSETS=core,drawing` lists only those groups. See [Choose which tools a client sees](https://andrewbartels1.com/SolidworksMCP-python/getting-started/installation/#4-choose-which-tools-a-client-sees).
All 151 tools cost about 63,000 tokens a turn. `SOLIDWORKS_MCP_TOOL_MODE=search` lists four instead (about 900 tokens); `SOLIDWORKS_MCP_TOOLSETS=core,drawing` lists only those groups. See [Choose which tools a client sees](https://andrewbartels1.com/SolidworksMCP-python/getting-started/installation/#4-choose-which-tools-a-client-sees).

## Teach your agent the workflow

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
63 changes: 58 additions & 5 deletions docs/assets/progress/progress.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"tools": {
"total": 145,
"total": 151,
"by_level": {
"stable": 137,
"stable": 143,
"beta": 0,
"experimental": 0,
"planned": 0,
Expand All @@ -28,7 +28,7 @@
"family": "sketching",
"level": "stable",
"reason": "",
"summary": "Draw a circular arc in the open sketch from its centre, start point and end point, in mm."
"summary": "Draw a circular arc in the open sketch: from its centre, through three points, or tangent."
},
{
"name": "add_centerline",
Expand Down Expand Up @@ -149,6 +149,13 @@
"reason": "",
"summary": "Draw a closed, axis-aligned rectangle in the open sketch from two opposite corners, in mm."
},
{
"name": "add_sketch_chamfer",
"family": "sketching",
"level": "stable",
"reason": "",
"summary": "Bevel corners of the open sketch, picking each corner by its point."
},
{
"name": "add_sketch_constraint",
"family": "sketching",
Expand All @@ -163,13 +170,27 @@
"reason": "",
"summary": "Add a driving dimension to sketch entities: linear, angular, radial, diameter or an ellipse axis."
},
{
"name": "add_sketch_fillet",
"family": "sketching",
"level": "stable",
"reason": "",
"summary": "Round corners of the open sketch to a radius, picking each corner by its point."
},
{
"name": "add_sketch_text",
"family": "sketching",
"level": "stable",
"reason": "",
"summary": "Write text in the open sketch, at a point or centred on one, to deboss or emboss it."
},
{
"name": "add_slot",
"family": "sketching",
"level": "stable",
"reason": "",
"summary": "Draw a slot in the open sketch: straight between two centres, or along an arc."
},
{
"name": "add_spline",
"family": "sketching",
Expand Down Expand Up @@ -891,6 +912,13 @@
"reason": "",
"summary": "Fix or float a component of the active assembly, or make a sub-assembly rigid or flexible."
},
{
"name": "set_construction_geometry",
"family": "sketching",
"level": "stable",
"reason": "",
"summary": "Make sketch entities construction geometry, or normal again, by id."
},
{
"name": "set_custom_property",
"family": "engineering_data",
Expand Down Expand Up @@ -961,6 +989,13 @@
"reason": "",
"summary": "Copy model edges, or a face's whole outline, into the open sketch (Convert Entities)."
},
{
"name": "sketch_extend",
"family": "sketching",
"level": "stable",
"reason": "",
"summary": "Lengthen a sketch entity from its end nearest a point until it meets the next entity."
},
{
"name": "sketch_linear_pattern",
"family": "sketching",
Expand All @@ -982,6 +1017,13 @@
"reason": "",
"summary": "Offset sketch entities by a distance in mm, outward or inward, e.g. for a wall or a clearance."
},
{
"name": "sketch_trim",
"family": "sketching",
"level": "stable",
"reason": "",
"summary": "Trim away the piece of a sketch entity at a point, back to where it meets others."
},
{
"name": "sketch_tutorial_simple_hole",
"family": "sketching",
Expand Down Expand Up @@ -1029,11 +1071,11 @@
"com": {
"type_library": "83A33D31-27C5-11CE-BFD4-00400513BB57x0x34x0",
"core": {
"covered": 255,
"covered": 266,
"total": 2838
},
"api": {
"covered": 298,
"covered": 308,
"total": 5985
},
"interfaces": [
Expand Down Expand Up @@ -1078,6 +1120,7 @@
"AddRelation",
"AddVerticalDimension2",
"ClearSelection2",
"Create3PointArc",
"CreateArc",
"CreateCenterLine",
"CreateCircleByRadius",
Expand All @@ -1086,6 +1129,7 @@
"CreateLine",
"CreateLinearSketchStepAndRepeat",
"CreatePoint",
"CreateTangentArc",
"DeleteConfiguration2",
"EditDelete",
"EditRebuild3",
Expand Down Expand Up @@ -1147,6 +1191,7 @@
"SketchAddConstraints",
"SketchMirror",
"SketchOffset2",
"SketchTrim",
"SketchUseEdge",
"ViewZoomtofit",
"ViewZoomtofit2"
Expand Down Expand Up @@ -1270,19 +1315,27 @@
{
"name": "ISketchManager",
"covered": [
"Create3PointArc",
"CreateArc",
"CreateCenterLine",
"CreateCenterRectangle",
"CreateChamfer",
"CreateCircleByRadius",
"CreateCircularSketchStepAndRepeat",
"CreateCornerRectangle",
"CreateEllipse",
"CreateFillet",
"CreateLine",
"CreateLinearSketchStepAndRepeat",
"CreatePoint",
"CreatePolygon",
"CreateSketchSlot",
"CreateSpline2",
"CreateTangentArc",
"InsertSketch",
"SketchExtend",
"SketchOffset2",
"SketchTrim",
"SketchUseEdge",
"SketchUseEdge3"
],
Expand Down
14 changes: 7 additions & 7 deletions docs/assets/progress/progress.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading