OpenSCAD

v1.0.6
io.github.fboldo/openscad-mcp-server Checked 2 days ago Published 2 months ago

Render STL and PNG from OpenSCAD code.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

render_scad_png Render OpenSCAD source to a PNG image

Render OpenSCAD (SCAD) source code into a PNG preview image. Provide the SCAD text in `scadCode` and optionally set `width`/`height` (pixels). Optional camera control is available via `cameraPreset` (named preset) or `cameraPosition` ({x,y,z}).

ParameterTypeDescription
scadCode *stringThe OpenSCAD code to render
cameraPositionobjectCamera position as { x,y,z }. Example: { x: 0, y: -25, z: 20 }
cameraPresetstringA named camera preset used when `cameraPosition` is not provided
heightnumberThe height of the output image in pixels (default: 600)
widthnumberThe width of the output image in pixels (default: 800)

export_scad_stl Export OpenSCAD source to an STL

Export OpenSCAD (SCAD) source code into an STL and return it as an embedded resource blob.

ParameterTypeDescription
scadCode *stringThe OpenSCAD code to render
filenamestringThe name of the output STL file