- Shell 65.6%
- Dockerfile 14.2%
- HCL 10.8%
- TypeScript 9.4%
|
|
||
|---|---|---|
| .github | ||
| actions | ||
| base-images/deno-python | ||
| docs | ||
| scripts | ||
| templates | ||
| .dockerignore | ||
| .gitignore | ||
| CITATION.cff | ||
| compose.fleet.yml | ||
| compose.ghcr.yml | ||
| deno.json | ||
| deno.lock | ||
| docker-bake.fleet.hcl | ||
| docker-compose.yml | ||
| Dockerfile | ||
| entrypoint.sh | ||
| LICENSE | ||
| README.md | ||
| renovate-preset.json | ||
| VERSION | ||
Casys engineering toolchain
One Docker image carrying the full model-to-physics verification chain — zero native installs:
| Server | What it does | System deps bundled |
|---|---|---|
mcp-syson |
SysML v2 models, constraints, part structure | z3 (constraint solving) |
mcp-build123d |
parametric CAD as code, exact mass properties, STEP/STL/GLTF | Python + build123d/OCCT |
mcp-calculix |
FEA — meshing + CalculiX solves, including recorded static | Gmsh + CalculiX |
The first argument selects a stateless HTTP server. Callers must pass its port and hostname explicitly; the image exposes HTTP only.
Fleet Tooling & Hybrid Build Infrastructure (GHCR + GCP Cloud Build)
In addition to the standalone all-in-one image below, this repository hosts the shared CI/CD, pull-only GHCR fleet compose, base images, and OIDC build actions for the 20-server Casys MCP engineering fleet:
- Pull-only GHCR fleet (zero clones, zero local builds): run
bash scripts/fleet-update.sh [--profile core|fast-jet|cfd-em|manufacturing|studio|all]backed bycompose.ghcr.yml. - Zero-QEMU native multi-arch GHCR builds:
.github/workflows/docker-ghcr.ymlbuildslinux/amd64(ubuntu-24.04) andlinux/arm64(ubuntu-24.04-arm) natively in parallel and merges the OCI manifest list with zero QEMU emulation. - Shared multi-arch base image:
ghcr.io/vidimus-dev/mcp-base-deno-python:v1(base-images/deno-python/Dockerfile) bundles Deno 2.x + Python 3.12 + NumPy/SciPy + non-rootcasys(UID 10001). - Private repo builds on Google Cloud Build (OIDC, zero JSON keys):
actions/cloud-build-gcp+templates/cloudbuild-docker.yaml+templates/ci-gcp-cloud-build-caller.ymltargetingcasys-engineering-build(europe-west1, defaulte2-standard-22,500 free min/month). - Documentation:
Build and run from the public source
With Docker and Git installed, build the image from this public checkout. No access to the private GHCR package is required:
git clone https://github.com/vidimus-dev/engineering-toolchain.git
cd engineering-toolchain
docker build -t engineering-toolchain:local-0.5.0 .
docker run --rm -p 127.0.0.1:3009:3009 engineering-toolchain:local-0.5.0 \
syson --port=3009 --hostname=0.0.0.0
docker run --rm -p 127.0.0.1:3014:3014 engineering-toolchain:local-0.5.0 \
build123d --port=3014 --hostname=0.0.0.0
docker run --rm -p 127.0.0.1:3015:3015 engineering-toolchain:local-0.5.0 \
calculix --port=3015 --hostname=0.0.0.0
The three docker run commands are alternatives; the next section starts the
whole chain together.
The whole chain in one command
After building the local image above:
TOOLCHAIN_IMAGE=engineering-toolchain:local-0.5.0 docker compose up -d
brings up SysON (the SysML v2 modeler, http://localhost:8180) plus the three MCP
servers over stateless HTTP (ports 3009 / 3014 / 3015, loopback only). Every MCP
endpoint is /mcp, emits complete responses without an MCP session, and
publishes its registered viewer resources through resources/list.
mcp-build123d and mcp-calculix share the exports volume, so a STEP
exported by build123d_export is immediately readable by
calculix_solve_static at /exports/<name>.step. Recorded CalculiX runs persist
on the calculix-runs volume.
Notes that matter:
- SYSON_URL — the Compose service uses
http://syson-app:8080; an alternate deployment must point this variable at its SysON instance. - Shared volume — the same named volume (
exports) mounted in build123d and calculix is what lets a STEP flow between them; pass/exports/<name>.stepasstep_path. - Recorded FEA — mount
CALCULIX_RUNS_DIRECTORY(Compose does this) socalculix_solve_static_recordedandcalculix_run_getsurvive a restart. - HTTP inside a container — the servers bind loopback by default. Compose
passes
--hostname=0.0.0.0so its loopback-only host mappings can reach them.
Version pinning
The image pins exact server versions — @casys/mcp-syson@0.6.0,
@casys/mcp-build123d@0.5.0, and @casys/mcp-calculix@0.7.0. deno.json keeps
a P1D dependency-age quarantine. Deno scopes an age exclusion by package name
rather than package version, so the exclusions are limited to five audited Casys
names. Each server keeps the @casys/mcp-server release it published against
(0.24.0 / 0.24.1 / 0.26.0); the import map does not force one version on all
three. @casys/constraint-solver@0.1.0 stays pinned for SysON. The runtime is
cached-only. The base is Ubuntu 24.04 (Debian trixie dropped calculix-ccx),
with the Deno binary copied from the official image. The underlying Python CAD
runtime is pinned to build123d@0.11.1.
The 0.5.0 image is published for linux/amd64 and linux/arm64. Compose
selects the native architecture for the toolchain services. SysON itself remains
amd64-only and is emulated on Apple Silicon.
Security model
build123d executes arbitrary Python and calculix runs solvers on
caller-named files — inside the container, which contains them but is not a
strong sandbox (mounted volumes are writable, the network is reachable unless
restricted). The trust model is unchanged from running the servers natively:
only expose them to callers you trust. Add --network=none to
build123d/calculix deployments if their scripts need no network — the tools
themselves never do.
Use the existing prebuilt image with access
ghcr.io/casys-ai/engineering-toolchain:0.5.0 is an existing private package.
Anonymous pulls fail. If your GitHub account has package access and Docker is
authenticated to GHCR, use that artifact without rebuilding:
TOOLCHAIN_IMAGE=ghcr.io/casys-ai/engineering-toolchain:0.5.0 docker compose up -d
The public repository does not grant access to the private image. Otherwise use the public source build above.
Rebuild locally
docker build -t engineering-toolchain:local-0.5.0 .
docker run --rm engineering-toolchain:local-0.5.0 calculix --port=3015 --hostname=0.0.0.0
License
MIT