Skip to content

v2.0.0

Choose a tag to compare

@github-actions github-actions released this 13 Nov 00:23
· 156 commits to main since this release

Added

  • solidworks-mcp-python selftest (#179; --selftest works 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_mate takes 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_plane makes planes at an angle about an axis, and
      from a face (face_point), sloped or not; create_axis now names the
      axis it made;
    • add_chamfer takes an angle and flip;
    • create_extrusion takes thin_side for 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 need format_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) or planned (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 as warning. A check keeps the table
    in step with the code. Today: 81 stable, 24 beta, 10 experimental, 40
    planned. tutorial_simple_hole is 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.generate regenerates 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; the circuit_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 install puts the solidworks-mcp skill in Claude Code's skills folder
    (--project or --dir for others); it covers the build order, units
    (and the inputs that take metres), choosing faces and edges, checking
    results with verify_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.md and 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 and setup writes it into every client entry, from the newest
    installed release or setup --year. Started without it, the server logs a
    warning and uses the newest installed release, so existing entries keep
    working; rerun solidworks-mcp-python setup to 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_view and create_technical_drawing are 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_properties reported moments of inertia in kg·m²
      under a kg·mm² label; the values are now kg·mm², matching the label.
    • pattern_circular and mirror_feature reported a pattern or mirror
      of a cut (a ring of holes) as an error; any change in volume now
      counts, and the reply gives volume_change.
    • delete_feature names 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_extrusion and create_revolve use the sketch sketch_name
      names (a missing name fails, listing the sketches), and
      create_revolve turns about the reference axis axis_entity names.
    • create_sketch gives the sketch the sketch_name you ask for. SolidWorks
      won't rename an open sketch, so exit_sketch names it and replies with
      the final name; create_sketch replies with SolidWorks' name and
      name_on_exit.
    • create_part assigns its material; get_material also reports the
      density; check_interference honours include_hidden; save_as
      keeps an existing file unless overwrite is on; execute_macro runs
      repeat_count times; sketch_tutorial_simple_hole points 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 (use create_cut_extrude) or a sketch line as
      create_revolve's axis_entity, which takes a reference axis.
    • create_part, create_assembly and create_drawing say that name
      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_feature asks the agent to check with the user first, and its
      reply carries a warning naming 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_assembly no 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
      in target_dir: with overwrite it replaces only the files it
      writes, and copied_files lists only those. A preview that can't be
      written gives a warning. 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 files GetDependencies2 lists,
      under their own names, and its warning names open files whose unsaved
      changes aren't in the copy. The reply's save_statuses and
      all_files_saved are replaced by unsaved_changes.
    • get_dimension reports 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_assembly and list_configurations
      read the configuration's Name; they called a GetName method
      SolidWorks doesn't have, so they always reported an assumed
      "Default". A missing file is not_found before SolidWorks is asked.
    • generate_vba_code writes a valid Sub name (returned as sub_name),
      checks the active document's type, and prints with Debug.Print
      instead of a MsgBox that blocked SolidWorks when the macro ran.
    • classify_feature_tree fails 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_model closes 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 (MidPlane for both_directions), and the
    thin wall. It used to echo direction: blind, so an agent concluded
    both_directions was 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
    failed create_extrusion counted 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_interference repeated 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_chamfer or add_fillet entry 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
    and search_solidworks_api_help used to answer from a hand-typed list of
    about 100 names, many of them wrong: IModelDoc2.SaveBMP was "not a
    member", and the made-up SaveBitmapWithVariableSize was found. They now
    cover every SolidWorks interface (497 on SolidWorks 2026), and
    lookup_api_method returns 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 a Public\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_docs honours include_vba: false, which it
    ignored.

Changed

  • BREAKING: inputs that did nothing are refused (item 7). A call that
    sends one gets an invalid_input error naming what to use instead:

    • create_extrusion.direction (use end_condition) and
      create_revolve.direction (use both_directions);
    • create_assembly.components (use insert_component);
    • create_drawing.model_path and .sheet_format, and
      create_technical_drawing's template, sheet_size, sheet_format,
      title, output_path, scale and auto_populate_views (use
      generate_drawing_package, save_file or set_sheet_scale);
      create_technical_drawing takes projection instead;
    • save_file.force_save; options on the five export_* tools;
    • check_interference.tolerance and .check_all_components;
    • all four calculate_mass_properties inputs;
    • execute_macro's parameters, execution_parameters, target_file,
      execution_mode, pause_on_error and log_execution.
      add_drawing_view refuses an operation other than add. Moments of
      inertia from calculate_mass_properties are 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_materials and
    generate_report (it compares the two files only), and
    generate_vba_code's parameters and code_style (its reply loses
    style). pack_and_go_assembly requires source_path and
    target_dir, and export_preview is off by default, as its
    description always said. compare_drawing_versions takes a typed
    input. get_dimension's angles and counts change value (see Fixed),
    and load_part / load_assembly report configuration: null when
    SolidWorks doesn't say.

  • generate_vba_code's macro opens with a Sub main() that calls the
    named Sub (sub_name). SolidWorks runs a .swb macro only through
    main, so execute_macro runs it with no proc_name.

  • comtypes is no longer a dependency. Pack and Go was its only user,
    and it now copies the files GetDependencies2 lists.

  • 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_docs no 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_missing is 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, what index_status means, and an
    example input.