openscad-mcp-v2 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/index.js +699 -365
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -56,7 +56,7 @@ You open the 3MF in Bambu Studio, OrcaSlicer or PrusaSlicer and print it.
|
|
|
56
56
|
- **Live in OpenSCAD.** `open_in_openscad` opens the design in your OpenSCAD window, which follows every change. Edits you make there are noticed and kept.
|
|
57
57
|
- **Works on your files too.** `link_file` takes an existing `.scad` file, such as the one open in OpenSCAD right now, and edits it where it is, with the same versions and checks.
|
|
58
58
|
- **Never loses a state.** Every save is a version; going back adds a new one.
|
|
59
|
-
- **Fits your printer.** Real size, closed-solid check and fit on your printers' build volumes (Bambu Lab, Prusa, Creality profiles built in, your own by size).
|
|
59
|
+
- **Fits your printer.** Real size, closed-solid check and fit on your printers' build volumes (Bambu Lab, Prusa, Creality profiles built in, your own by size), and the overhangs that would need supports.
|
|
60
60
|
- **Learns your preferences.** Corrections such as "always round the edges" are saved and come back with the guidelines for the next part.
|
|
61
61
|
- **Designs for FDM.** Built-in guidelines for wall thickness, overhangs, tolerances, screw and nut sizes, plus usage notes for BOSL2, NopSCADlib and MCAD when installed.
|
|
62
62
|
|
|
@@ -436,7 +436,7 @@ A single call can name another one: `printer: "x1c"` or `printer: "300x300x400"`
|
|
|
436
436
|
| `open_in_openscad` | Shows the design in the OpenSCAD window, which then follows every change |
|
|
437
437
|
| `list_versions`, `restore_version` | History, and going back (a restore is a new version) |
|
|
438
438
|
| `set_parameters` | Lists the customizer parameters, or changes their values in the file |
|
|
439
|
-
| `analyze_design` | Real size, bounding box, closed-solid check, bed contact, fit per printer; with parameter overrides an overlap check answers "Empty", "Touching only" or the size of the overlap |
|
|
439
|
+
| `analyze_design` | Real size, bounding box, closed-solid check, bed contact, fit per printer, overhangs steeper than 45° (area, position, narrowest width); with parameter overrides an overlap check answers "Empty", "Touching only" or the size of the overlap; `variants` checks up to 4 poses in one call |
|
|
440
440
|
| `measure_design` | Distances in the rendered model: solid and empty stretches along lines parallel to X, Y or Z (wall thickness, the gap between two parts, hole widths), and whether points are in material; optional parameter overrides, e.g. an assembled pose |
|
|
441
441
|
| `export_design` | 3MF (default) or binary STL into the design's `exports/` folder, with path, size and fit; `parts: true` writes one file per part (box and lid separately) from the design's `part` parameter |
|
|
442
442
|
| `record_learning`, `list_learnings`, `forget_learning` | Lessons for later designs: your corrections and preferences, techniques that failed or worked |
|
|
@@ -511,7 +511,7 @@ Printer servers can start a print without asking. This server's instructions tel
|
|
|
511
511
|
## Limits
|
|
512
512
|
|
|
513
513
|
- The closed-solid check is OpenSCAD's own. Two bodies that only share an edge pass it.
|
|
514
|
-
-
|
|
514
|
+
- Overhangs are found, but whether one needs supports is left to the model: a flat region between two walls is a bridge, a ledge is not, and the server does not tell them apart. Wall thickness is measured only where `measure_design` is asked to look. The slicer preview is the final check.
|
|
515
515
|
- Images show the bounding box fitted to the frame; there is no free camera yet.
|
|
516
516
|
- Of a linked file only the file itself is edited; files it includes stay as they are. Code typed in OpenSCAD but not saved is not visible to the server.
|
|
517
517
|
|
|
@@ -539,7 +539,7 @@ Notes for coding agents are in [CLAUDE.md](CLAUDE.md).
|
|
|
539
539
|
|
|
540
540
|
### Benchmark
|
|
541
541
|
|
|
542
|
-
The server's guidance (instructions, guidelines, tool descriptions) decides how good the models get, so changes to it are measured. `bench/tasks.ts` holds six complex parts (Raspberry Pi case, planetary gears, screw-top jar, print-in-place hinge, Gridfinity bin, phone stand), each a first request plus two follow-up requests. Claude solves them through this server's tools, with a fresh workspace per run; the final design is graded with a full render: valid closed solid on z = 0, size, Customizer parameters, render time, point probes (solid or empty at a given position), parameter values
|
|
542
|
+
The server's guidance (instructions, guidelines, tool descriptions) decides how good the models get, so changes to it are measured. `bench/tasks.ts` holds six complex parts (Raspberry Pi case, planetary gears, screw-top jar, print-in-place hinge, Gridfinity bin, phone stand), each a first request plus two follow-up requests, and one change to a file the user already has (`edit-file`: a wall hook written to a folder outside the workspace, which has to be linked and edited in place). Claude solves them through this server's tools, with a fresh workspace per run; the final design is graded with a full render: valid closed solid on z = 0, size, Customizer parameters, render time, point probes (solid or empty at a given position), parameter values, whether a follow-up used `set_parameters`, and for `edit-file` whether the file was linked and kept most of its lines. `--judge` adds a rating of six rendered views against a per-task rubric.
|
|
543
543
|
|
|
544
544
|
```bash
|
|
545
545
|
npm run bench -- --tasks jar --runs 1 # one task, to try it
|