Gmsh + CalculiX FEA structural/thermal MCP server
  • TypeScript 98.4%
  • CSS 0.8%
  • Shell 0.5%
  • Dockerfile 0.3%
Find a file
Erwan Lee Pesle adf2b2d08c
Some checks failed
ci.yml / Merge pull request #16 from vidimus-dev/feat/widget-compose-sync (push) Failing after 0s
Merge pull request #16 from vidimus-dev/feat/widget-compose-sync
feat(ui): add bidirectional @mcpview/compose portSync to widgets
2026-12-05 20:30:26 +08:00
.github/workflows chore(ci): migrate engineering-toolchain and GHCR target to vidimus-dev 2026-12-05 15:32:08 +08:00
docs release: 0.10.1 2026-12-04 10:34:55 +08:00
scripts feat(widgets): complete 4-widget migration, snippet unwrap, locked bundles, and notices 2026-12-03 13:46:42 +08:00
src feat(ui): add bidirectional @mcpview/compose portSync to widgets 2026-12-05 20:27:52 +08:00
tests release: 0.10.1 2026-12-04 10:34:55 +08:00
.dockerignore feat: move to @mcpview/server, add Code Mode snippets and npm build (0.9.0) 2026-12-03 11:39:05 +08:00
.gitignore feat: move to @mcpview/server, add Code Mode snippets and npm build (0.9.0) 2026-12-03 11:39:05 +08:00
.release-please-manifest.json chore(ci): adopt engineering-toolchain@v1 (CI, Renovate, Release-Please) 2026-12-04 12:15:09 +08:00
CHANGELOG.md release: 0.10.1 2026-12-04 10:34:55 +08:00
CITATION.cff release: 0.10.1 2026-12-04 10:34:55 +08:00
deno.json chore(ci): adopt engineering-toolchain@v1 (CI, Renovate, Release-Please) 2026-12-04 12:15:09 +08:00
deno.lock feat: move to @mcpview/server, add Code Mode snippets and npm build (0.9.0) 2026-12-03 11:39:05 +08:00
docker-entrypoint.sh fix: use native Casys stdio transport 2026-08-27 13:39:31 +08:00
Dockerfile feat(widgets): complete 4-widget migration, snippet unwrap, locked bundles, and notices 2026-12-03 13:46:42 +08:00
LICENSE Initial release: @casys/mcp-calculix 0.1.0 2026-07-30 06:26:14 +00:00
mod.ts feat(widgets): complete 4-widget migration, snippet unwrap, locked bundles, and notices 2026-12-03 13:46:42 +08:00
README.md release: 0.10.1 2026-12-04 10:34:55 +08:00
release-please-config.json chore(ci): adopt engineering-toolchain@v1 (CI, Renovate, Release-Please) 2026-12-04 12:15:09 +08:00
renovate.json chore(ci): migrate engineering-toolchain and GHCR target to vidimus-dev 2026-12-05 15:32:08 +08:00
SECURITY.md docs: add security policy contact 2026-08-05 11:34:46 +08:00
server.ts release: 0.10.1 2026-12-04 10:34:55 +08:00
THIRD_PARTY_NOTICES.txt feat(widgets): complete 4-widget migration, snippet unwrap, locked bundles, and notices 2026-12-03 13:46:42 +08:00

@casys/mcp-calculix

JSR Release checks MIT license

Bounded finite-element analysis for STEP parts, exposed as an MCP server and a compact MCP App. Gmsh creates the tetrahedral mesh, CalculiX performs the analysis, and the server returns closed, unit-bearing observations.

STEP bytes -> SHA-256 snapshot -> Gmsh mesh -> generated CalculiX deck
           -> parsed observations -> optional recorded evidence -> MCP App

Recorded CalculiX static response in the MCP App

Actual TPS03 recorded session replayed through the read-only viewer.session.apply action. “Documentary” is literal: this view reports two observations and their result-artifact identity, never an engineering verdict.

Source version 0.10.1 moves to @mcpview/server, exposes every tool as a native @mcpview/compose Code Mode snippet (list_snippets / run_snippet), splits the UI into four small responsive @mcpview/components widgets, and runs unchanged under Deno (JSR) and Node.js (npm build). The server is deliberately not a generic CalculiX shell: callers provide STEP geometry and reviewed physical values, not arbitrary decks, commands, executables, or flags.

What it covers

  • Mesh and named-selection preflight before solve physics.
  • Linear static, modal, linear buckling, Norton-law creep, and steady-state coupled temperature-displacement analyses.
  • A recorded static path with idempotent request identity, exact evidence resources, recovery states, and replay validation.
  • One App-owned static-result view for ordinary results, recorded fleet runs, and exact Digital Thread projections.

The server reports solver observations. It does not infer loads or materials, approve a design, or turn a successful run into a safety, compliance, or requirement conclusion. See analysis contracts and honest limits.

Run the released server

Release 0.8.6 publishes to JSR and as a multi-architecture image for linux/amd64 and linux/arm64. The GitHub release records the exact OCI index digest; use that immutable identity rather than a tag:

ghcr.io/casys-ai/mcp-calculix:0.8.6 is a mutable discovery tag, not a qualified deployment identity. latest is mutable too.

RELEASE_IDENTITY_URL=https://github.com/superWorldSavior/mcp-calculix/releases/download/v0.8.6/release-identity.json
curl -fsSLo release-identity.json "$RELEASE_IDENTITY_URL"
IMAGE_REF="$(jq -er '.image | select(test("^ghcr\\.io/(casys-ai|superworldsavior)/mcp-calculix@sha256:[0-9a-f]{64}$"))' release-identity.json)"
docker pull "$IMAGE_REF"

Run the stateless HTTP transport on loopback, with STEP inputs read-only and recorded evidence on a persistent volume:

docker run --rm --name mcp-calculix \
  -p 127.0.0.1:3015:3015 \
  -v /absolute/path/to/step-files:/inputs:ro \
  -v calculix-runs:/var/lib/mcp-calculix-runs \
  -e CALCULIX_RUNS_DIRECTORY=/var/lib/mcp-calculix-runs \
  "$IMAGE_REF" http

The MCP endpoint is http://127.0.0.1:3015/mcp. For native stdio from JSR:

deno run --allow-all jsr:@casys/mcp-calculix@0.8.6/server --stdio

Or configure stdio from the released image:

{
  "mcpServers": {
    "calculix": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "-v",
        "/absolute/path/to/step-files:/inputs:ro",
        "-v",
        "calculix-runs:/var/lib/mcp-calculix-runs",
        "-e",
        "CALCULIX_RUNS_DIRECTORY=/var/lib/mcp-calculix-runs",
        "ghcr.io/casys-ai/mcp-calculix@sha256:<digest from release-identity.json>",
        "stdio"
      ]
    }
  }
}

Container calls must use paths visible inside the container, such as /inputs/bracket.step. Keep one active writer per recorded-run volume.

Viewer and evidence

The server serves four focused MCP App widgets (each declaring 3 ascending supportedWidths in src/widgets.ts) and its machine-readable App manifest at ui://mcp-calculix/app-manifest:

  • ui://mcp-calculix/static-extrema (stat, default for static tools)
  • ui://mcp-calculix/mesh-summary (table)
  • ui://mcp-calculix/boundary-conditions (table)
  • ui://mcp-calculix/modal-frequencies (chart, default for calculix_solve_modal)

Each widget adapts to its granted width and never calls a solve.

Recorded static runs retain the exact STEP snapshot, request, Gmsh program and mesh, generated deck, native diagnostics, DAT output, and normalized result. Every resource read is checked against the durable ledger before publication. The full contract, recovery model, TPS03 capture identity, and Digital Thread boundary are documented in Recorded runs and viewer.

Code Mode snippets

Every tool is also a native @mcpview/compose snippet: list_snippets lists them and run_snippet replays one under its short name (solve_static for calculix_solve_static) with the tool's own input schema and handler. Results carry structuredContent.value and a literal io.casys/provenance: verified-solver only for CalculiX solves, upstream-mcp for mesh preflight and run_get.

Documentation

Develop

Deno 2.9.6 is the release toolchain. Gmsh and CalculiX are required only for the opt-in native end-to-end gate.

deno task release:check
CALCULIX_RUN_NATIVE=1 deno task test

deno task build:npm bundles the same source for Node.js >= 20 into dist-node/bin (not published to npm yet).

Building the App source also requires the three explicit local split package roots described in Development. Runtime consumers use the shipped single-file resource and do not need those packages.

Citation and license

Citation metadata is in CITATION.cff. Licensed under the MIT License.