Repository navigation
v2.0.0
Added
-
solidworks-mcp-python selftest(#179;--selftestworks too).
With SolidWorks running, it builds a part, an assembly, a drawing view
and a STEP export through the MCP tools, checks each against a hand
calculation, and prints a report with a link that opens the new
Compatibility report form already filled in. It never touches a
document you had open. The docs list the releases checked so far. -
Tools the U-joint needed (#209), each checked on SolidWorks 2026:
add_matetakes a face as a point on it (face_a,face_b) in that
part's own coordinates, so a pin mates concentric in its hole;set_component_state(new) fixes or floats a component and makes a
sub-assembly rigid or flexible, keeping its other settings;create_reference_planemakes planes at an angle about anaxis, and
from a face (face_point), sloped or not;create_axisnow names the
axis it made;add_chamfertakes anangleandflip;create_extrusiontakesthin_sidefor thin walls, and an open
outline makes a bent plate.
-
Every tool accepts a plain dict (#209). A script calling a tool
function with a dict gets the same validation as an MCP client; the
export file tools no longer needformat_type. -
Support levels for every tool (#79). Each tool is
stable(checked
live, no known fault),beta(a known fault or partial COM coverage),
experimental(not yet checked live) orplanned(not implemented),
in one table,tools/support_levels.py. The level is in the tool's tags
(level:beta); a beta or experimental tool's description opens with it,
and its successful results carry it aswarning. A check keeps the table
in step with the code. Today: 81 stable, 24 beta, 10 experimental, 40
planned.tutorial_simple_holeis now planned: its cut step fails on
SolidWorks. -
Progress bars and a progress page (#79). The README opens with an
image of the tools by level and the share of the core SolidWorks COM API
the adapters reach (208 of 2,838 methods), counted from a committed
snapshot of the type library. The docs site's new Progress page lists
every tool with its level and reason, filterable by level and family.
python -m solidworks_mcp.progress.generateregenerates both; a test
fails when they're stale. -
reset_circuit_breaker(#208). Re-opens operations the server paused
after repeated failures, all of them or one by name; thecircuit_open
hint now names it. -
The U-joint demo (#175, #207). SolidWorks' U-Joint sample, written up
as a prompt and built by Claude Code (Opus 5.5, medium effort) in 294
tool calls, is the top demo in the README and on the Demos page, beside
the original. The same prompt with and without the agent skill made the
same parts; the skill page records the comparison. -
The monitor stand, printed. The monitor-stand demo now shows the
stand on the printer. -
An agent skill for using the server (#175).
solidworks-mcp skill installputs thesolidworks-mcpskill in Claude Code's skills folder
(--projector--dirfor others); it covers the build order, units
(and the inputs that take metres), choosing faces and edges, checking
results withverify_model, recovering from errors, the tools that don't
work yet and the known faults. The server also serves it as
skill://solidworks-mcp/SKILL.mdand sends short usage instructions when
a client connects. A test fails if the skill names a tool that is gone or
recommends one that can't run. -
The server takes
--year, the installed SolidWorks release it works
with (uvx solidworks-mcp-python --year 2026). It is required for real
SolidWorks andsetupwrites it into every client entry, from the newest
installed release orsetup --year. Started without it, the server logs a
warning and uses the newest installed release, so existing entries keep
working; rerunsolidworks-mcp-python setupto add it. -
Every tool carries MCP behaviour hints and a family tag. Clients now
see a title for each tool and whether it is read-only, destructive or
idempotent, so they can ask before a call that deletes or overwrites.
Each tool is also tagged with its family (modeling,drawing, ...).
The hints live in one table,tools/tool_hints.py; a tool without an
entry fails to register. A written standard for tool descriptions
(docs/agents/tool-description-standard.md) and a test that checks it
come with them; the descriptions themselves are rewritten in the next
changes (#82). -
Clearer descriptions for every tool. Each of the 154 now says what
the tool does, when to use it and which tool to use instead, what it
needs, what it changes (or that it is read-only) and what it returns, and
names its required inputs; the check now covers every module. The 39
tools that no adapter implements yet say so up front ("Not available yet
... planned for a future release"), and inputs a tool ignores are named as
unused.add_drawing_viewandcreate_technical_drawingare no longer
marked destructive: neither overwrites anything. The tool catalog pages
carry the new summaries (#82).
Fixed
-
The beta tools' faults (item 7 in the work queue):
calculate_mass_propertiesreported moments of inertia in kg·m²
under a kg·mm² label; the values are now kg·mm², matching the label.pattern_circularandmirror_featurereported a pattern or mirror
of a cut (a ring of holes) as an error; any change in volume now
counts, and the reply givesvolume_change.delete_featurenames every feature it removed, dependents included,
and can delete a sketch a feature uses: the features built from it go
with it. SolidWorks refused that delete before.create_extrusionandcreate_revolveuse the sketchsketch_name
names (a missing name fails, listing the sketches), and
create_revolveturns about the reference axisaxis_entitynames.create_sketchgives the sketch thesketch_nameyou ask for. SolidWorks
won't rename an open sketch, soexit_sketchnames it and replies with
the final name;create_sketchreplies with SolidWorks' name and
name_on_exit.create_partassigns itsmaterial;get_materialalso reports the
density;check_interferencehonoursinclude_hidden;save_as
keeps an existing file unlessoverwriteis on;execute_macroruns
repeat_counttimes;sketch_tutorial_simple_holepoints at
create_cut_extrude.- On SolidWorks versions without
IMassProperty, the products of
inertia Ixz and Iyz were swapped. - The agent guides' examples no longer send
direction: "cut"to
create_extrusion(usecreate_cut_extrude) or a sketch line as
create_revolve'saxis_entity, which takes a reference axis. create_part,create_assemblyandcreate_drawingsay thatname
is only a label: SolidWorks names a new document itself.- The 23 tools these fixes cover are now
stable, each checked by a
live test (tests/live/test_live_sw_beta_tools.py). delete_featureasks the agent to check with the user first, and its
reply carries awarningnaming everything else it deleted (a
sketch takes the features built from it).
-
The experimental tools' faults (item 8 in the work queue):
pack_and_go_assemblyno longer closes every open document without
saving when the assembly can't be opened (it packs the open copy, or
fails and closes nothing), and no longer deletes everything already
intarget_dir: withoverwriteit replaces only the files it
writes, andcopied_fileslists only those. A preview that can't be
written gives awarning. On SolidWorks 2026, SolidWorks' own Pack and
Go listed and copied only the assembly, not its parts, and reported
success; the tool now copies the saved filesGetDependencies2lists,
under their own names, and itswarningnames open files whose unsaved
changes aren't in the copy. The reply'ssave_statusesand
all_files_savedare replaced byunsaved_changes.get_dimensionreports an angle in degrees (units: "deg") and a
count with no unit; it used to multiply every value by 1000 and call
it mm.open_model,load_part,load_assemblyandlist_configurations
read the configuration'sName; they called aGetNamemethod
SolidWorks doesn't have, so they always reported an assumed
"Default". A missing file isnot_foundbefore SolidWorks is asked.generate_vba_codewrites a valid Sub name (returned assub_name),
checks the active document's type, and prints withDebug.Print
instead of aMsgBoxthat blocked SolidWorks when the macro ran.classify_feature_treefails when it can't read the model, instead
of classifying an empty one. On a part it no longer answers
"assembly" ("Material" contains "mate") or "sheet metal" (the tree's
folders contain "fold"); a known document type decides, and folders
aren't counted as features.close_modelcloses the document SolidWorks made active after the
last close; a second close in a row used to fail with "No active
model to close" while documents were still open.
-
create_extrusion's reply says what was built (#209): the end
condition SolidWorks used (MidPlaneforboth_directions), and the
thin wall. It used to echodirection: blind, so an agent concluded
both_directionswas ignored. -
One failed call could pause a tool for good (#208). The server's router
fell back to the VBA adapter, which called back into the router, so one
failedcreate_extrusioncounted as many failures and opened the circuit
breaker at once; every retry did the same. The fallback is gone (it only
re-ran the same COM call). -
check_interferencerepeated an old result (#209). Its result was
cached for 60 seconds while components moved; it is no longer cached. -
The live chamfer and fillet tests treat the faces they name (#199).
They assumed the test block's height ran along Z; it runs along Y, so they
chamfered a side face where they meant the face with the hole, and their
loose checks didn't notice. Points now come from the measured bounding
box, and each test checks the removed volume against the exact value
within 0.001 mm³ (all match to 0.0001 live). The calls that must be
refused have their own test file. -
An
add_chamferoradd_filletentry that selects nothing is logged
as one warning line, not a traceback. The error returned is unchanged. -
The API lookup tools answer from SolidWorks' own type library (#195).
lookup_api_method,lookup_api_interface,find_related_api_members
andsearch_solidworks_api_helpused to answer from a hand-typed list of
about 100 names, many of them wrong:IModelDoc2.SaveBMPwas "not a
member", and the made-upSaveBitmapWithVariableSizewas found. They now
cover every SolidWorks interface (497 on SolidWorks 2026), and
lookup_api_methodreturns each member's parameters, which ones are
outputs, its return type and a description. A name in the wrong case is
found under its real spelling, with a note. -
API lookups no longer rebuild the index on every call. On a machine
without aPublic\Documents\SOLIDWORKS <year>folder, or with one left by
an older release, each lookup rebuilt and rewrote the 3 MB index. Lookups
now find the index by the type library they read, and report that
library's year. -
discover_solidworks_docshonoursinclude_vba: false, which it
ignored.
Changed
-
BREAKING: inputs that did nothing are refused (item 7). A call that
sends one gets aninvalid_inputerror naming what to use instead:create_extrusion.direction(useend_condition) and
create_revolve.direction(useboth_directions);create_assembly.components(useinsert_component);create_drawing.model_pathand.sheet_format, and
create_technical_drawing'stemplate,sheet_size,sheet_format,
title,output_path,scaleandauto_populate_views(use
generate_drawing_package,save_fileorset_sheet_scale);
create_technical_drawingtakesprojectioninstead;save_file.force_save;optionson the fiveexport_*tools;check_interference.toleranceand.check_all_components;- all four
calculate_mass_propertiesinputs; execute_macro'sparameters,execution_parameters,target_file,
execution_mode,pause_on_errorandlog_execution.
add_drawing_viewrefuses anoperationother thanadd. Moments of
inertia fromcalculate_mass_propertiesare a million times larger
than before, because they are now in the kg·mm² their label always said.
-
BREAKING: more inputs that did nothing are refused (item 8):
compare_templates'comparison_type,comparison_depth,
include_properties,include_dimensions,include_materialsand
generate_report(it compares the two files only), and
generate_vba_code'sparametersandcode_style(its reply loses
style).pack_and_go_assemblyrequiressource_pathand
target_dir, andexport_previewis off by default, as its
description always said.compare_drawing_versionstakes a typed
input.get_dimension's angles and counts change value (see Fixed),
andload_part/load_assemblyreportconfiguration: nullwhen
SolidWorks doesn't say. -
generate_vba_code's macro opens with aSub main()that calls the
named Sub (sub_name). SolidWorks runs a.swbmacro only through
main, soexecute_macroruns it with noproc_name. -
comtypesis no longer a dependency. Pack and Go was its only user,
and it now copies the filesGetDependencies2lists. -
No tool is experimental any more: the ten from item 8 passed live
tests on SolidWorks 2026 and are stable. -
Building the API index needs SolidWorks installed, not running, and
never starts or calls SolidWorks. The lookups build the index themselves,
and an index written by an older version is rebuilt automatically. Without
a SolidWorks type library on the machine they answer "no match" and say
why, instead of guessing. -
discover_solidworks_docsno longer returns the whole index, which is
now megabytes. It returns a summary, the type library it read and the
saved file.auto_discover_if_missingis no longer needed but is still
accepted. -
The docs tools' descriptions tell an agent how to use them: what they
need, that nothing has to be run first, whatindex_statusmeans, and an
example input.