Skip to content / 跳到正文

How can an AI agent control OpenSCAD? ​

An MCP-compatible AI agent can use DCC-MCP to inspect declarative CAD source and automate bounded validation, preview rendering, and mesh export. The agent selects the correct application instance or integration, discovers available tools, and reads their parameter definitions before acting and checking the result. These typed tools declare their inputs, outputs, and parameter types.

OpenSCAD MCP and OpenSCAD CLI ​

The OpenSCAD MCP endpoint and OpenSCAD CLI workflow share the same DCC-MCP adapter and tool catalog. Use dcc-mcp-cli with --dcc-type openscad to limit tool searches to OpenSCAD. Tools declare their inputs, outputs, and parameter types so arguments can be checked before a call.

bash
dcc-mcp-cli search --query "inspect source dependencies and runtime capabilities" --dcc-type openscad

What can an AI agent do in OpenSCAD? ​

  • inspect source dependencies and runtime capabilities.
  • validate one bounded parametric model without arbitrary code execution.
  • render a preview and export a verified STL or mesh result.

Capabilities change with the adapter version and loaded Skills. Search and describe tools first instead of guessing current tool names from this page.

Safe operating flow ​

  1. Install and follow the public dcc-mcp Skill.
  2. Inspect the existing CLI, adapter, and live hosts; obtain consent before installing software or changing system state.
  3. Use health, dcc-types, and list to verify the Gateway and target instance.
  4. Search and describe tools for the actual OpenSCAD task, then follow every returned next_step.
  5. Make one bounded change and verify it through host state, files, previews, logs, or rendered output.
bash
dcc-mcp-cli health
dcc-mcp-cli dcc-types
dcc-mcp-cli list

Copyable prompt ​

text
Use the dcc-mcp Skill to connect to my OpenSCAD session. Inspect the existing CLI, adapter, and live instance first; ask before installing software or changing system state. Search for and describe typed tools related to "validate one bounded parametric model without arbitrary code execution", then follow every returned next_step. Do not delete, overwrite, or publish existing work. Make the smallest verifiable change, then check the result against this requirement: "render a preview and export a verified STL or mesh result". Report the instance, tool, result, and evidence path.

Current availability and official source ​

The current catalog lists openscad as the adapter identifier. Catalog definitions do not establish host acceptance; run dcc-mcp-cli dcc-types, then discover and describe the live instance's tools before operating.

This page describes the shared Agent workflow. Each integration's repository owns its installation, API, and compatibility details.

Gateway, CLI, adapters, and Skills for creative applications.