Shared CI, base images, and verification toolchain for Vidimus MCPs
  • Shell 65.6%
  • Dockerfile 14.2%
  • HCL 10.8%
  • TypeScript 9.4%
Find a file
Erwan Lee Pesle 4ce30d35f8
Some checks are pending
Fleet Tooling Self-Check / validate (push) Waiting to run
Fleet Tooling Self-Check / test-npm-action (push) Waiting to run
Publish image / build-push (push) Waiting to run
Merge pull request #18 from vidimus-dev/dependabot/github_actions/github-actions-b096154b8f
build(deps): bump the github-actions group across 3 directories with 11 updates
2026-12-05 18:57:57 +08:00
.github build(deps): bump the github-actions group across 3 directories with 11 updates 2026-12-05 10:19:34 +00:00
actions build(deps): bump the github-actions group across 3 directories with 11 updates 2026-12-05 10:19:34 +00:00
base-images/deno-python chore: migrate default GHCR owner and workflow templates to vidimus-dev 2026-12-05 15:26:37 +08:00
docs fix(ci): pin actions to full commit SHAs, restrict the documented WIF condition 2026-12-05 18:04:04 +08:00
scripts feat(cloud-run): add deploy and verify scripts for all 26 Vidimus MCP servers 2026-12-05 16:15:50 +08:00
templates chore: migrate default GHCR owner and workflow templates to vidimus-dev 2026-12-05 15:26:37 +08:00
.dockerignore build: strip leftover pip and shrink the image context 2026-08-17 14:20:08 +08:00
.gitignore Initial release: engineering toolchain image 2026-07-30 06:41:49 +00:00
CITATION.cff build: ship toolchain 0.5.0 with mcp-build123d 0.5 2026-08-26 01:52:34 +08:00
compose.fleet.yml feat(build-infra): native zero-QEMU multi-arch GHCR, pull-only fleet, shared deno-python base & GCP Cloud Build OIDC 2026-12-05 14:13:45 +08:00
compose.ghcr.yml chore: migrate default GHCR owner and workflow templates to vidimus-dev 2026-12-05 15:26:37 +08:00
deno.json build: ship toolchain 0.5.0 with mcp-build123d 0.5 2026-08-26 01:52:34 +08:00
deno.lock build: ship toolchain 0.5.0 with mcp-build123d 0.5 2026-08-26 01:52:34 +08:00
docker-bake.fleet.hcl feat(build-infra): native zero-QEMU multi-arch GHCR, pull-only fleet, shared deno-python base & GCP Cloud Build OIDC 2026-12-05 14:13:45 +08:00
docker-compose.yml build: ship toolchain 0.5.0 with mcp-build123d 0.5 2026-08-26 01:52:34 +08:00
Dockerfile chore: migrate default GHCR owner and workflow templates to vidimus-dev 2026-12-05 15:26:37 +08:00
entrypoint.sh build: ship toolchain 0.5.0 with mcp-build123d 0.5 2026-08-26 01:52:34 +08:00
LICENSE Initial release: engineering toolchain image 2026-07-30 06:41:49 +00:00
README.md chore: migrate default GHCR owner and workflow templates to vidimus-dev 2026-12-05 15:26:37 +08:00
renovate-preset.json feat: add unified 16-server fleet compose, bake, OIDC actions, and CI presets 2026-12-04 10:19:54 +08:00
VERSION build: ship toolchain 0.5.0 with mcp-build123d 0.5 2026-08-26 01:52:34 +08:00

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:

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>.step as step_path.
  • Recorded FEA — mount CALCULIX_RUNS_DIRECTORY (Compose does this) so calculix_solve_static_recorded and calculix_run_get survive a restart.
  • HTTP inside a container — the servers bind loopback by default. Compose passes --hostname=0.0.0.0 so 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