by armpro24-blip
Enables AI-driven generation, editing, verification, and simulation of mechanical designs using build123d/OpenCASCADE geometry and CalculiX analysis, while preserving editable parameters, stable topology pointers, and full provenance in a reproducible .aieng package.
CAD/CAE Copilot provides an AI‑native workbench where an MCP‑capable agent can turn natural‑language engineering specifications into real, editable CAD models, run deterministic critiques, and continue directly into CAE simulations. All artifacts—geometry, parameters, named parts, analysis results, and provenance—are stored in a single .aieng package for repeatable review.
docker pull ghcr.io/armpro24-blip/aieng-workbench:latest
docker run --rm -it -p 8000:8000 -p 8765:8765 -v aieng-data:/data ghcr.io/armpro24-blip/aieng-workbench:latest
http://localhost:8765/sse.http://localhost:8000/app/) or VS Code extension, approve gated actions, and iterate.@face:* topology pointers..aieng packages containing source, parameters, artifacts, and provenance.Q: Do I need an API key for the backend? A: No. The backend runs locally and the MCP server does not require any external API keys.
Q: Which operating systems are supported? A: All platforms that can run Docker or a Python 3.11+ environment (Linux, macOS, Windows WSL). The Docker image provides a consistent setup.
Q: Can I use the system without a GUI? A: Yes. Agents can drive the backend purely via MCP calls; the UI is optional.
Q: How is reproducibility ensured?
A: Every edit, parameter, and generated artifact is recorded in the .aieng package, allowing the exact state to be re‑loaded and re‑executed.
Q: Is the generated CAD production‑ready? A: The tool produces verified geometry, but a human engineer must still approve and sign‑off before manufacturing.
An AI-native CAD/CAE/CAX workbench. An MCP-capable agent writes real
build123d / OpenCASCADE geometry, exports STEP/STL/GLB, names the parts,
exposes stable topology pointers, runs a deterministic critique, and can
continue into CAE — all preserved in one reproducible .aieng package.
You bring your own MCP client (e.g. Claude Code, Codex, Copilot, Cursor), which carries its own model access. The aieng backend itself needs no API key.
What is this? · Quick Start · CAD Examples · Why aieng · MCP Setup · Agent Guide
English | 中文
Real STEP/STL/GLB · Editable parameters · Named parts · Stable topology pointers · Deterministic critique · CAD → CAE artifacts · Approval-gated actions
In one picture: a natural-language engineering spec becomes optimized, verified
CAD/CAE, driven end-to-end by your own MCP agent and preserved in one
reproducible .aieng package.
User requirement → agent (plan & reason) → MCP tool layer → CAD modeling &
editing → CAE setup & simulation → result evaluation → closed-loop
optimization. A human-in-the-loop trust & approval layer gates every
mutation, a credibility tier is stamped on every result, and all artifacts
land in a self-describing .aieng package — so any MCP-capable agent can design,
analyze, optimize, and deliver verified, reproducible CAD/CAE solutions.
Three ways in — pick one and you're modeling in minutes.
Before you start: you need your own MCP client (Claude Code, OpenAI Codex, GitHub Copilot, Cursor, …) with its own model access. The aieng backend itself needs no API key — your agent connects to it over MCP and drives the workbench through its own harness.
For a first try, Docker (Option 2) is the most reliable — it pins the build123d / OpenCASCADE / CalculiX stack so nothing has to compile on your machine. The local dev install is best once you intend to hack on the code.
Click "Open in GitHub Codespaces" above. The environment sets itself up;
when it finishes loading, run make dev (or python3 scripts/dev.py if make
is unavailable). Then connect an agent and paste the
motor mounting fixture prompt, or the
shorter bracket prompt:
Create a 120 × 80 × 12 mm machined bearing support bracket with a centered
Ø42 mm horizontal bearing bore, four Ø10 mm base mounting holes, and two
mirrored gussets. Preserve the exact dimensions, expose editable parameters,
verify the final geometry, and run the deterministic engineering critique.
Inspect the generated model, named parts, verification results, and stable
@face:* references in the workbench.
Packages the backend, built viewer, MCP HTTP server, build123d / OpenCASCADE dependencies, and CalculiX into one container.
Quick start — pull the published image (no local build):
docker pull ghcr.io/armpro24-blip/aieng-workbench:latest
docker run --rm -it -p 8000:8000 -p 8765:8765 -v aieng-data:/data ghcr.io/armpro24-blip/aieng-workbench:latest
The alpha image is published to GHCR from main after the Docker smoke passes
(latest + an immutable sha-<commit> tag). Alpha-scoped, not
production-certified.
Contributor path — build locally from source (Docker Compose or manual, for developing the image or running an unmerged branch):
docker compose up -d
# or:
docker build -t aieng/workbench:local .
docker run --rm -it -p 8000:8000 -p 8765:8765 -v aieng-data:/data aieng/workbench:local
Open the viewer at http://localhost:8000/app/ and point an MCP-over-HTTP client
at http://localhost:8765/sse. Projects and .aieng packages persist in the
aieng-data volume. The container enables AIENG_MCP_MANAGED_APPROVAL=1 by
default, so approval-gated CAD/CAE tools surface through the workbench UI.
Best when you intend to modify the code. Prerequisite: a conda env named
exactly aieng311 (Python ≥ 3.11) with build123d — the MCP configs
and run scripts assume this name. The build123d / OpenCASCADE (OCP) install
can be slow or fail on some platforms; if it does, prefer the Docker path
above.
conda create -n aieng311 python=3.11 -y
conda activate aieng311
pip install build123d
cd aieng-ui/backend && pip install -e .
Then start both services in one terminal (Ctrl+C stops both):
make dev # macOS / Linux / WSL
.\dev.ps1 # Windows PowerShell
python scripts/dev.py # cross-platform fallback
Backend → FastAPI on http://127.0.0.1:8000; frontend → Vite on
http://localhost:5173. Custom ports: BACKEND_PORT=8080 FRONTEND_PORT=3000 make dev.
make backend # or: cd aieng-ui/backend && uvicorn app.main:app --host 127.0.0.1 --port 8000 --reload
make frontend # or: cd aieng-ui/frontend && npm install && npm run dev
cd aieng-ui/backend && python -m pytest # backend test suite
The hero model above was built from an explicit industrial fixture specification — fixed dimensions, named parts, exact hole and slot locations, required symmetry, and no permission to invent extra geometry. The agent executes and verifies the spec; it does not silently fill in the engineering.
Create a fully specified industrial motor mounting fixture using millimeters.
Coordinate system:
- X is the fixture width, Y is the fixture depth, and Z is vertical.
- Center the complete fixture on X=0.
- Place the bottom face of the base plate at Z=0.
Base plate:
- Create a 180 × 140 × 14 mm base plate.
- Add four Ø11 mm vertical through-holes at X=±70 mm and Y=±50 mm.
- Add an Ø18 mm, 5 mm deep counterbore to the top of every mounting hole.
- Add a 3 mm fillet to the four outside vertical corners.
Motor support:
- Add a centered rear vertical support plate, 130 mm wide, 14 mm thick,
and 120 mm tall above the base.
- Add a Ø72 mm horizontal locating bore through the plate along Y.
- Position its center at X=0 and Z=78 mm.
- Add four Ø8.5 mm horizontal mounting holes on a Ø100 mm bolt circle.
Reinforcement and rails:
- Add two mirrored 12 mm thick triangular gussets extending 45 mm forward
and rising 65 mm above the base.
- Add two separate 110 × 12 × 8 mm guide rails centered at X=±38 mm, Y=-12 mm.
- Add one centered 70 × 6 mm longitudinal slot to each rail.
Modeling requirements:
- Create named parts "fixture_body", "guide_rail_left", and "guide_rail_right".
- Color the fixture body dark blue-gray and both guide rails orange.
- Declare all major dimensions as editable UPPER_SNAKE_CASE constants.
- Preserve exact left/right symmetry.
- Verify overall dimensions, named parts, and stable topology pointers.
- Run the deterministic engineering critique after modeling.
- Do not add a motor, fasteners, logos, decorative features, or unspecified geometry.
Each example starts from explicit dimensions, feature locations, and modeling constraints — the agent executes and verifies the specification rather than inventing the requirements.
160 × 50 × 40 mm envelope, six equally spaced outlets, axial inlet
ports, counterbored mounting holes, edge fillets, opening chamfers, and
editable dimensions.Most AI CAD and text-to-CAD demos stop when a model appears. aieng treats
geometry generation as one step in a reviewable engineering workflow built
around self-describing .aieng packages: editable parameters, stable topology,
provenance, and a full CAD → CAE path all survive after the picture.
| Capability | Typical text-to-CAD demo | aieng |
|---|---|---|
| Generate real CAD exports (STEP/STL/GLB) | Yes | Yes |
| Execute explicit dimensions and datums | Partial | Yes |
| Preserve editable source and parameters | Partial | Yes |
| Name parts and expose stable topology references | Rarely | Yes |
| Verify geometry and run deterministic critique | Rarely | Yes |
| Diff every edit (topology drift + manufacturability) | No | Yes |
Design-rule assertions that fail the build (require) |
No | Yes |
| Stamp a credibility tier on every result (V&V-40) | No | Yes |
| Preserve artifacts and provenance in one package | Rarely | Yes |
| Continue from CAD into CAE workflows | Rarely | Yes |
| Require approval for gated engineering actions | Rarely | Yes |
| Standard parts library | No | Yes |
| Extended material database (51 materials) | No | Yes |
| BOM generation | No | Yes |
What that buys you:
@face:* pointers support precise verification and
follow-up edits..aieng packages preserve geometry,
generated source, analysis state, artifacts, metadata, and provenance, so a
result is reviewable instead of opaque.Who it's for: AI agent / MCP developers wanting engineering tools beyond text and code; mechanical engineers exploring AI-assisted CAD/CAE with real geometry; and makers, researchers, and open-source contributors interested in CAD, CAE, MCP, VS Code extensions, or build123d / OpenCASCADE.
The crowded field is generation; the empty field is trust. Every AI-suggested change here is checked and explainable, not just rendered:
regression_diff (did unintended parts move?) and a critique_diff (did the
edit worsen min-wall / hole-spacing / floating-part / symmetry rules?),
re-surfaced as a first-class before→after diff in the viewer.require(WALL >= 3, "wall below 3mm") (or a
bare assert) in build123d code; a violation fails the build deterministically
with a structured design_rule_violation, so constraints are verified by
construction instead of hoped for.critique_finding < surrogate_prediction < proxy_assembly_result <
executed_solver_result); a claim is never presented as more credible than its
evidence, and production_ready is never assumed.@face:*) for follow-up changes.Materials & standard parts workflow:
aieng.list_materials { category: "Aluminum Alloy" }
aieng.get_material_details { material_name: "Al6061-T6" }
aieng.compare_materials { material_names: ["Al6061-T6", "Steel-316L"] }
aieng.list_standard_parts { category: "fastener" }
aieng.get_standard_part_specs { part_type: "hex_bolt", preset_name: "M8" }
aieng.insert_standard_part { part_type: "hex_bolt", preset_name: "M8", position: [0,0,0] }
aieng.generate_bom { format: "markdown" }
The workbench UI and the
aieng-vscode-extension provide visual inspection for
live backend projects and .aieng packages.
The VS Code extension is the most visual way to experience aieng — a front-end
for the .aieng package format, MCP tools, and CAD/CAE backend that brings the
AI-CAD design loop directly into your editor. It can:
.aieng package as a read-only custom editor,@face:id pointers back into your chat with an agent.The extension is one layer of the system, not the whole thing — the core is the
package format and engineering backend that let agents and humans share
reproducible CAD/CAE project state. Setup and development notes live in
aieng-vscode-extension/README.md.
The backend exposes its tool registry as an MCP server (aieng-workbench),
so agents drive the workbench through their own harnesses — no API key needed on
our side. Connection configs are committed and load automatically for a fresh
clone, assuming the aieng311 env exists:
| Agent | Config file |
|---|---|
| Claude Code | .mcp.json |
| VS Code / GitHub Copilot | .vscode/mcp.json |
| Cursor | .cursor/mcp.json |
| Cline | its own cline_mcp_settings.json (copy the block from MCP_SETUP) |
| OpenAI Codex | add [mcp_servers.*] to ~/.codex/config.toml (see MCP_SETUP) |
Approval works three ways (--approval-mode): your client's own prompt
(client), the workbench viewer / VS Code extension card (managed), or
headless MCP elicitation (elicit) for agents with no UI — with a fail-safe
deny when no surface can answer. Run aieng-workbench-mcp --doctor to check that
your MCP config, backend, and tool set are wired before you start. Full matrix
of tested-vs-documented clients:
MCP client compatibility.
First three calls every session:
1. aieng.agent_readme -> compact operational onboarding
2. aieng.list_projects -> discover project IDs
3. aieng.agent_context { project_id } -> geometry state, pointers, next steps
Use aieng.guide { topic } for task-specific detail, or
aieng.agent_readme { detail: "full" } when the complete canonical
AGENTS.md is genuinely required.
The sustainable modeling loop:
cad.get_source -> see accumulated source, named parts, has_base
cad.execute_build123d -> build/extend geometry (mode=replace|append)
- set .label on parts -> semantic names you can reference
- mode=append builds onto `previous_result`
- returns a thumbnail + named_parts / parts_added
(inspect the result, repeat)
Full tool details, pointer syntax, and approval-gated operations live in AGENTS.md; MCP wiring by client in aieng-ui/backend/MCP_SETUP.md.
Canonical backend demos, each runnable as a single test:
Runs the CAD → FEA → topology optimization loop and writes back editable optimized geometry.
pytest aieng/tests/test_topology_optimization.py -q
Key artifacts: analysis/topology_optimization.json, geometry/shape_ir.json
Boundary: 2D plane-stress; 3D SIMP is experimental/reference only.
Details →
Reconstructs analytic CAD from a mesh and exports STEP when the shell validates.
pytest aieng/tests/test_mesh_brep_solidification.py -q
Key artifacts: geometry/reconstructed.step (when valid),
graph/mesh_brep_stitching_plan.json
Boundary: Mesh-derived/lossy; plane/cylinder dominant; freeform/NURBS
future work; partial shells do not produce STEP.
Details →
Builds a proxy assembly analysis model and optimizes one selected design part.
pytest aieng-ui/backend/tests/test_assembly_topopt_demo.py -q
Key artifacts: analysis/assembly_topology_optimization.json,
parts/bracket/geometry/optimized_shape_ir.json
Boundary: Proxy connections only; no real contact/friction/bolt preload;
one design part only; not production-certified.
Details →
Validates, executes, compares, and optionally adopts parameterized design candidates without overwriting the baseline.
pytest aieng-ui/backend/tests/test_design_study_demo.py -q
Key artifacts: analysis/design_study_candidate_ranking.json,
analysis/design_study_acceptance.json,
accepted/candidate_good/geometry/shape_ir.json
Boundary: Static metrics in demo; no autonomous optimization; no baseline
overwrite; ranking is advisory.
Details →
Honesty boundaries — outputs are review material, not production sign-off:
| Path | Status | What it is |
|---|---|---|
aieng-ui/ |
Active | FastAPI backend, React workbench, and MCP server — the active CAD/CAE engine (build123d) |
aieng/ |
Core library | .aieng semantic package format engine, schemas, validation, CLI, Shape IR, and evidence model |
aieng-vscode-extension/ |
Active | VS Code visualization front-end for .aieng packages and live project previews |
aieng-agent-skills/ |
Active | SKILL.md contracts teaching agents how to use the ecosystem |
legacy/aieng-freecad-mcp/ |
Legacy | Old FreeCAD execution adapter — not used by the active path |
archive/CAD-Agent-main/ |
Archived | Historical and experimental auxiliary CAD-agent material |
| Doc | Purpose |
|---|---|
| AGENTS.md | Canonical agent guide — tools, workflows, and conventions |
| aieng-ui/backend/MCP_SETUP.md | Per-agent MCP wiring for Claude Code, Copilot, Cursor, and Codex |
| aieng-vscode-extension/README.md | VS Code extension usage and development notes |
| aieng/docs/showcase_gallery.md | Showcase gallery — demo talking points, visual guidance, and honesty boundaries |
| aieng/docs/demo_catalog.md | Backend demo catalog — run commands, expected artifacts, and maturity levels |
| aieng/docs/backend_capability_matrix.md | Capability status snapshot |
| aieng/docs/roadmap.md | Phase-by-phase development roadmap |
| CLAUDE.md | Claude Code entry pointer |
| .github/copilot-instructions.md | GitHub Copilot entry pointer |
Contributions are welcome across the package format, backend workflows, MCP tooling, and VS Code front-end. Work that improves reproducibility, visual inspection, engineering honesty boundaries, or agent usability is especially in scope.
data/projects/),
virtual environments, node_modules, and embedded conda envs are gitignored.aieng311, edit the -n aieng311 argument in
the MCP configs or point command directly at your interpreter — see
aieng-ui/backend/MCP_SETUP.md.http://127.0.0.1:8000 enables live UI updates when an
agent drives a build; if it is down, the MCP server falls back to in-process
execution.Please log in to share your review and rating for this MCP.
Explore related MCPs that share similar capabilities and solve comparable challenges
by robotmcp
Enables bidirectional integration of large language models with ROS‑enabled robots, allowing natural language commands and real‑time access to robot state, topics, services and parameters.
by sunsetcoder
Track flights in real time, retrieve arrival and departure times, view airport status, and monitor emergency situations using Flightradar24 data via a Model Context Protocol server.
by daiemon12
Provides a Model Context Protocol server that lets Claude AI drive Dassault Systèmes CATIA V5 through natural‑language commands, exposing more than 50 CAD operations via COM automation.
by EduBase
Enables Claude and other LLMs to interact with the EduBase e‑learning platform via the Model Context Protocol, allowing automated quiz creation, exam scheduling, and result analysis.
by gNucleus
Generate editable CAD parts or assemblies directly from natural‑language prompts by leveraging gNucleus generative AI models through a lightweight MCP server.
by jyjune
Provides control and access to a video surveillance system, allowing retrieval of live and recorded video streams, channel status queries, PTZ camera positioning, and playback dialog management.
by hessius
Automatically creates espresso profiles, analyzes shot data, and provides AI coaching through a web interface, REST API, and MQTT bridge, all packaged in a single Docker container.
by Casys-AI
Provides a Model Context Protocol server that connects AI agents to ERPNext instances, exposing 120 tools across 14 functional categories and seven interactive UI viewers for seamless data exploration and actions.
by litmusautomation
Enables LLMs and other intelligent agents to configure, monitor, and manage Litmus Edge devices through real‑time Model Context Protocol communication.