← Commit history
LICENSEadded+21
@@ -0,0 +1,21 @@+MIT License++Copyright (c) 2026 MartyPM++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE+SOFTWARE.
README.mdadded+54
@@ -0,0 +1,54 @@+# Adom bridge for SolidCraft++Say **solidcraft** to the AI to reach this bridge.++This bridge lets an AI in any Adom workspace drive [SolidCraft](https://solidcraft.io), the+open-source parametric CAD app, on your own PC. It works through SolidCraft's built-in MCP+server, so the AI uses the same commands as the toolbar (sketch, extrude, fillet, shell, hole,+pattern) and you get an editable feature timeline with named parameters, not a dumb mesh.++## What you can ask for++- "Open SolidCraft and show me the current design"+- "Design a 3D printable enclosure for this board, 2 mm walls"+- "Make the wall 2.4 mm, check it still rebuilds, and export a 3MF"+- "Rebuild part.sc with 9 slots and export a STEP" (headless, no window)++## What it does++- Launches SolidCraft minimised and waits until it accepts agents+- Shows the open design and a rendered picture of it, so the AI checks its own work+- Never replaces the design you are working on: new and opened designs go in a new tab+- Runs modelling commands, changes named parameters, measures, saves and exports+- Works headless for batch jobs, with no window+- Reads SolidCraft's tool list at run time, so new SolidCraft tools work without a bridge update+- Converts WSL paths to Windows paths and keeps files in one shared folder++## Install++1. Install SolidCraft from https://solidcraft.io/download.+2. In SolidCraft: Preferences > Assistant > Agents through MCP > tick **Let AI agents connect**.+3. In your Adom workspace:++```+adom-wiki pkg install martypm/solidcraft-bridge+adom-bridge bridge_install '{"manifestUrl":"https://wiki.adom.inc/api/v1/pages/martypm/solidcraft-bridge/files/adom-bridge-solidcraft-manifest.json"}'+```++## Verbs++`solidcraft_status`, `solidcraft_start`, `solidcraft_state`, `solidcraft_tools`, `solidcraft_call`,+`solidcraft_find`, `solidcraft_command`, `solidcraft_pending`,+`solidcraft_open`, `solidcraft_save`, `solidcraft_export`, `solidcraft_new_design`,+`solidcraft_execute`, `solidcraft_batch`, `solidcraft_set_parameter`, `solidcraft_check_parameters`,+`solidcraft_measure`, `solidcraft_topology`, `solidcraft_inspect`, `solidcraft_screenshot`,+`solidcraft_compare_picture`, `solidcraft_undo`, `solidcraft_redo`, `solidcraft_commands`,+`solidcraft_describe_command`, `solidcraft_skill`, `solidcraft_run`, `solidcraft_settings`,+`solidcraft_progress`, `solidcraft_describe`, `solidcraft_uninstall`.++## Requirements++Windows with Adom Bridge and SolidCraft (tested with 0.53). macOS and Linux are untested.++SolidCraft is made by Tangency Labs (github.com/tangency-labs/solidcraft) and is MIT / Apache-2.0+licensed. This bridge is a community integration, MIT licensed, and is not affiliated with them.
SKILL.mdadded+145
@@ -0,0 +1,145 @@+---+name: solidcraft+description: >-+  Drive SolidCraft, the open-source parametric CAD app (tangency-labs/solidcraft), on the user's+  PC through the Adom Bridge solidcraft bridge (solidcraft_* verbs): launch it in the background,+  see the open design, run modelling commands, change named parameters, measure, and export STEP,+  STL or 3MF, live in the open window or headless. Use when the user says "solidcraft", "open in+  solidcraft", "model this in solidcraft", "design an enclosure for this board", "make a 3d+  printable enclosure", "parametric cad part", "change the wall thickness and export", or+  "export a step from solidcraft".+---++# Adom bridge for SolidCraft (keyword: solidcraft)++The **solidcraft** bridge runs on the user's PC under Adom Bridge and talks to SolidCraft's own+MCP server, so you drive SolidCraft with `adom-bridge solidcraft_<verb>` from any Adom workspace.+SolidCraft builds real B-rep solids with an editable feature timeline (sketch, extrude, fillet,+shell, hole, pattern), and every value can be a named parameter the user can retune later.++Every verb answers with `_hint` and `_next`. Read them: they say what to do next.++## First call++```bash+adom-bridge solidcraft_status '{"aiThread":"<your thread>"}'+```++| Result | Do this |+|---|---|+| `installed:false` | Ask the user to install SolidCraft from https://solidcraft.io/download |+| `appRunning:false` | `solidcraft_start` opens it minimised, or pass `mode:"headless"` to work without a window |+| `errorCode:"blocked_on_user"` from start | Ask the user to tick Preferences > Assistant > Agents through MCP > Let AI agents connect (once) |+| `appRunning:true` | `solidcraft_state` to see the design |++If `solidcraft_status` returns `unknown_verb`, the bridge is not installed on that machine:+`adom-bridge bridge_install '{"manifestUrl":"https://wiki.adom.inc/api/v1/pages/martypm/solidcraft-bridge/files/adom-bridge-solidcraft-manifest.json"}'`.++## Verbs++| Verb | What it does |+|---|---|+| `solidcraft_status` | installed? running? which sessions are connected |+| `solidcraft_start` | launch SolidCraft minimised, wait until it accepts agents |+| `solidcraft_state` | the open design (bodies, features, parameters) plus a rendered picture |+| `solidcraft_tools` | SolidCraft's MCP tools; `{"name":"export"}` gives one tool's argument schema |+| `solidcraft_find` | search SolidCraft's commands by words: `{"query":"fillet"}` returns ids and parameters |+| `solidcraft_command` | run one command by id: `{"id":"solid.box","params":{...}}` |+| `solidcraft_batch` | run many steps in order, with `expect` checks and `dry_run`: the usual way to build a part |+| `solidcraft_open`, `_save`, `_export`, `_new_design` | files (open reads .sc, STEP, meshes and KiCad boards) |+| `solidcraft_execute` | run one command as `{"command","params"}` (same as `solidcraft_command`) |+| `solidcraft_pending` | the result of a SolidCraft request that was still running |+| `solidcraft_set_parameter`, `_check_parameters` | change a named parameter, check all rebuild |+| `solidcraft_measure`, `_topology`, `_inspect`, `_screenshot`, `_compare_picture` | look and check |+| `solidcraft_undo`, `_redo` | history |+| `solidcraft_commands`, `_describe_command` | SolidCraft's modelling commands and their options |+| `solidcraft_skill` | SolidCraft's own modelling skills (modeling, editing, checking, mechanisms, reporting) |+| `solidcraft_call` | any SolidCraft tool by name: `{"tool":"...","arguments":{...}}` |+| `solidcraft_run` | headless rebuild with parameter overrides: `{"in","params":{},"out","save"}` |+| `solidcraft_settings` | the shared project folder and extra allowed folders |+| `solidcraft_progress` | live progress of `start` and `run` |+| `solidcraft_describe` | the full catalog with each verb's risk |++The tool verbs pass their arguments straight to SolidCraft, which refuses unknown arguments by+name, so use SolidCraft's names: check them with `solidcraft_tools {"name":"<tool>"}` before the+first call, not by guessing. Add `"mode":"headless"` to any of them to work without the window.++## How to build a part++1. `solidcraft_find {"query":"box"}` to get the command id and its parameters.+2. `solidcraft_batch` with every step, user parameters first so the part stays editable, and+   `expect` set to the volume and bounding box you computed. A mismatch comes back as an error:++```json+{"commands":[+  {"command":"set_parameter","params":{"name":"L","value":"40 mm"}},+  {"command":"set_parameter","params":{"name":"W","value":"30 mm"}},+  {"command":"set_parameter","params":{"name":"H","value":"10 mm"}},+  {"command":"solid.box","params":{"length":"L","width":"W","height":"H"}}],+ "expect":{"volume_mm3":12000,"bodies":1}}+```++3. `solidcraft_state` and look at the picture.+4. `solidcraft_export {"path":"/mnt/c/Users/<user>/cad-projects/part.step"}` (format follows the+   extension: STEP, IGES, 3MF, STL, OBJ, GLB, USD).++## Never lose the user's work++In the live app the user is usually working in the open design. `new_design` and `open` would+replace it, so the bridge opens a new tab for them instead. `replaceActive:true` replaces the+active design, and is refused with `unsaved_changes` while it has unsaved changes. A live batch+with an `open` or `new_design` step is refused with `would_replace_design`. Do throwaway work in+`mode:"headless"`, which never touches the window.++## Modelling: read SolidCraft's own skills first++Before building anything non-trivial, read the matching SolidCraft skill (solidcraft-modeling,+-editing, -checking, -mechanisms, -reporting, -sheetmetal):++```bash+adom-bridge solidcraft_skill '{"aiThread":"<t>","skill":"solidcraft-modeling"}'+```++Those skills track SolidCraft's version; this one only covers the Adom side.++## Files++SolidCraft only reads and writes inside allowed folders. The bridge's shared folder is+`C:\Users\<user>\cad-projects` (`/mnt/c/Users/<user>/cad-projects` from WSL); `solidcraft_status`+prints both forms. Paths under `/mnt/<drive>/` are converted to Windows paths for you. Paths that+exist only inside WSL (`/home/...`) are refused with `path_not_shared`: copy the file into the+shared folder first. Results come back with `wslPath` so you can read them straight away.++## Verify by looking++After each modelling step, call `solidcraft_state` (or `solidcraft_screenshot`) and look at the+picture, and `solidcraft_measure` the dimensions that matter. Pictures come back as a file `path`+and `wslPath` (read the PNG); pass `inline:true` for base64 in the response. Live screenshots are+the whole window and about 1 MB. `solidcraft_state` summarises the design; `full:true` gives every+body's measurements and every sketch. For the whole window including any+dialog: `adom-bridge desktop_screenshot_window '{"titleContains":"SolidCraft"}'`. The bridge never+brings SolidCraft to the front; `solidcraft_start` takes `foreground:true` only with a+`foregroundReason` (read `foreground-etiquette` first).++## Enclosure for a PCB++1. Export the board as STEP into the shared folder (KiCad: File > Export > STEP; Altium: see+   `altium-outputs`), or `solidcraft_open` the KiCad PCB directly.+2. Build the enclosure with named parameters (wall, clearance, standoff height, cut-outs) so+   the user can retune it with `solidcraft_set_parameter`.+3. `solidcraft_measure` the clearance to the tallest parts and connectors.+4. `solidcraft_export` STEP or 3MF into the shared folder.++## Errors++| errorCode | Meaning |+|---|---|+| `app_not_running` | control port closed: `solidcraft_start`, or `mode:"headless"` |+| `blocked_on_user` | waiting for the user to allow agents in SolidCraft |+| `unsaved_changes` | replaceActive refused: the open design has unsaved changes |+| `would_replace_design` | a live batch step would replace the open design |+| `session_closed` | SolidCraft closed or restarted; retry, the bridge reconnects |+| `tool_unavailable` | this SolidCraft version has no such tool; see `availableTools` |+| `tool_error` | SolidCraft rejected the arguments; check the schema |+| `path_not_shared` | a WSL-only path; use the shared folder |+| `timed_out` | still working or stuck on a dialog: `solidcraft_state` before retrying |
install.shadded+6
@@ -0,0 +1,6 @@+#!/usr/bin/env bash+set -e+SKILL_DIR="${CLAUDE_SKILLS_DIR:-$HOME/.claude/skills}/solidcraft"+mkdir -p "$SKILL_DIR"+cp "$(dirname "$0")/SKILL.md" "$SKILL_DIR/SKILL.md"+echo "OK: Installed solidcraft skill to $SKILL_DIR"
package.jsonadded+71
@@ -0,0 +1,71 @@+{+  "schema_version": 1,+  "type": "app",+  "slug": "solidcraft-bridge",+  "title": "Adom bridge for SolidCraft",+  "brief": "Drive the open-source SolidCraft parametric CAD app on your PC from an Adom workspace. Say solidcraft. Community integration, not affiliated with SolidCraft.",+  "version": "0.1.0",+  "description": "Adom Bridge bridge for SolidCraft (tangency-labs/solidcraft): solidcraft_* verbs to launch it, see the design, run modelling commands, set parameters, measure and export, live or headless, through SolidCraft's own MCP server.",+  "license": "MIT",+  "dependencies": {+    "adom/adom-bridge": "*"+  },+  "scripts": {+    "install": "./install.sh",+    "uninstall": "./uninstall.sh"+  },+  "files": [+    "SKILL.md",+    "README.md",+    "package.json",+    "install.sh",+    "uninstall.sh",+    "screenshots/hero.png"+  ],+  "tags": [+    "bridge",+    "solidcraft",+    "cad",+    "parametric",+    "mcp",+    "enclosure",+    "3d-printing",+    "step"+  ],+  "visibility": "public",+  "discovery_triggers": [+    "open in solidcraft",+    "model this in solidcraft",+    "solidcraft bridge",+    "drive solidcraft",+    "connect to solidcraft",+    "design an enclosure for this board",+    "make a 3d printable enclosure",+    "parametric cad part",+    "export a step from solidcraft",+    "change the wall thickness and export"+  ],+  "hero": {+    "type": "image",+    "path": "screenshots/hero.png"+  },+  "discovery_pitch": "Use when the user wants an AI to drive SolidCraft, the open-source parametric CAD app, on their PC: build or edit parametric parts, change parameters, measure, and export STEP, STL or 3MF.",+  "sample_prompts": [+    {+      "label": "See the open design",+      "prompt": "Open SolidCraft and show me the design that's open"+    },+    {+      "label": "Enclosure for a board",+      "prompt": "Design a 3D printable enclosure for this board in SolidCraft, 2 mm walls"+    },+    {+      "label": "Change and export",+      "prompt": "Make the wall 2.4 mm in SolidCraft, check it still rebuilds, and export a 3MF"+    },+    {+      "label": "Headless rebuild",+      "prompt": "Rebuild part.sc in SolidCraft with 9 slots and export a STEP"+    }+  ]+}
page.jsonadded+74
@@ -0,0 +1,74 @@+{+  "schema_version": 1,+  "type": "app",+  "slug": "solidcraft-bridge",+  "title": "Adom bridge for SolidCraft",+  "brief": "Drive the open-source SolidCraft parametric CAD app on your PC from an Adom workspace. Say solidcraft. Community integration, not affiliated with SolidCraft.",+  "version": "0.1.0",+  "description": "Adom Bridge bridge for SolidCraft (tangency-labs/solidcraft): solidcraft_* verbs to launch it, see the design, run modelling commands, set parameters, measure and export, live or headless, through SolidCraft's own MCP server.",+  "license": "MIT",+  "dependencies": {+    "adom/adom-bridge": "*"+  },+  "scripts": {+    "install": "./install.sh",+    "uninstall": "./uninstall.sh"+  },+  "files": [+    "SKILL.md",+    "README.md",+    "package.json",+    "install.sh",+    "uninstall.sh",+    "screenshots/hero.png"+  ],+  "tags": [+    "bridge",+    "solidcraft",+    "cad",+    "parametric",+    "mcp",+    "enclosure",+    "3d-printing",+    "step"+  ],+  "visibility": "public",+  "discovery_triggers": [+    "open in solidcraft",+    "model this in solidcraft",+    "solidcraft bridge",+    "drive solidcraft",+    "connect to solidcraft",+    "design an enclosure for this board",+    "make a 3d printable enclosure",+    "parametric cad part",+    "export a step from solidcraft",+    "change the wall thickness and export"+  ],+  "hero": {+    "type": "image",+    "path": "screenshots/hero.png"+  },+  "discovery_pitch": "Use when the user wants an AI to drive SolidCraft, the open-source parametric CAD app, on their PC: build or edit parametric parts, change parameters, measure, and export STEP, STL or 3MF.",+  "sample_prompts": [+    {+      "label": "See the open design",+      "prompt": "Open SolidCraft and show me the design that's open"+    },+    {+      "label": "Enclosure for a board",+      "prompt": "Design a 3D printable enclosure for this board in SolidCraft, 2 mm walls"+    },+    {+      "label": "Change and export",+      "prompt": "Make the wall 2.4 mm in SolidCraft, check it still rebuilds, and export a 3MF"+    },+    {+      "label": "Headless rebuild",+      "prompt": "Rebuild part.sc in SolidCraft with 9 slots and export a STEP"+    }+  ],+  "author": {+    "name": "MartyPM"+  }+}\ No newline at end of file
screenshots/hero.pngadded
⋯ 1 unchanged line ⋯
uninstall.shadded+3
@@ -0,0 +1,3 @@+#!/usr/bin/env bash+rm -rf "${CLAUDE_SKILLS_DIR:-$HOME/.claude/skills}/solidcraft"+echo "OK: Removed solidcraft skill"