- TypeScript 98.4%
- CSS 0.8%
- Shell 0.5%
- Dockerfile 0.3%
|
Some checks failed
ci.yml / Merge pull request #16 from vidimus-dev/feat/widget-compose-sync (push) Failing after 0s
feat(ui): add bidirectional @mcpview/compose portSync to widgets |
||
|---|---|---|
| .github/workflows | ||
| docs | ||
| scripts | ||
| src | ||
| tests | ||
| .dockerignore | ||
| .gitignore | ||
| .release-please-manifest.json | ||
| CHANGELOG.md | ||
| CITATION.cff | ||
| deno.json | ||
| deno.lock | ||
| docker-entrypoint.sh | ||
| Dockerfile | ||
| LICENSE | ||
| mod.ts | ||
| README.md | ||
| release-please-config.json | ||
| renovate.json | ||
| SECURITY.md | ||
| server.ts | ||
| THIRD_PARTY_NOTICES.txt | ||
@casys/mcp-calculix
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
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 forcalculix_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
- Analysis contracts, units, examples, and limits
- Recorded runs, evidence resources, and MCP App
- Deployment, transports, security, and operations
- Development and release gates
- Changelog · Security policy
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.
