SolidCraft: an open-source parametric 3D CAD application built in pure Rust. Desktop, web, and automation through MCP.
Windows installer: add the install folder to the system PATH (#6340)
bherbruck152efb5774f6
diff --git a/assets/platforms/windows/solidcraft.wxs b/assets/platforms/windows/solidcraft.wxsindex 42c8ec4bae..a47fac2d65 100644--- a/assets/platforms/windows/solidcraft.wxs+++ b/assets/platforms/windows/solidcraft.wxs@@ -8,7 +8,7 @@Per-machine install with a setup wizard: Welcome, install folder (Program Files\SolidCraft bydefault, remembered for upgrades), Ready, progress, and a Finish page with a ticked "Launch- SolidCraft" box. Installs a Start Menu shortcut, solidcraft-cli, the licence files (including+ SolidCraft" box. Installs a Start Menu shortcut, solidcraft-cli (and adds its folder to the system PATH), the licence files (includingTHIRD-PARTY-LICENSES.txt), makes SolidCraft the owner of `.solidcraft` (and of the pre-rename `.solvecraft`), and offers it under"Open with" for STEP, IGES, 3MF and STL. `msiexec /qn` installs silently.Adapted from PhotoCraft's (storytold/photocraft, Apache-2.0; see ATTRIBUTION.md).@@ -122,6 +122,9 @@<Component Id="SolidcraftCli"><File Id="SolidcraftCliExe" Source="$(var.BinDir)\solidcraft-cli.exe" KeyPath="yes" />+ <!-- The install folder on the system PATH, so MCP clients and shells find `solidcraft-cli` by name;+ removed again on uninstall. -->+ <Environment Id="SolidcraftPath" Name="PATH" Value="[INSTALLFOLDER]" Action="set" Part="last" System="yes" Permanent="no" /></Component><!-- Compatibility shim (docs/compatibility.md): the old CLI name, forwarding to solidcraft-cli. --><Component Id="SolidcraftCliAlias">diff --git a/docs/mcp.md b/docs/mcp.mdindex 33c6bfa813..6787ec5dc6 100644--- a/docs/mcp.md+++ b/docs/mcp.md@@ -133,6 +133,8 @@ not read-only, `destructiveHint` and `openWorldHint` are true.### Client configuration+On Windows the installer adds its folder to the system `PATH`, so `solidcraft-cli` works by name in clients opened after the install (restart the client).+Claude Code (project `.mcp.json`, or `claude mcp add solidcraft -- solidcraft-cli mcp`; a setupadded under the previous name keeps working, see the [compatibility notes](https://github.com/bherbruck/solidcraft/blob/main/docs/compatibility.md#mcp)):