ISO 286 fits and tolerance stack-up MCP server
  • TypeScript 99.3%
  • Dockerfile 0.3%
  • Shell 0.2%
  • HTML 0.1%
Find a file
Erwan Lee Pesle c94f5794e2
Some checks failed
docker.yml / Merge pull request #4 from vidimus-dev/feat/level2-code-mode-snippets (push) Failing after 0s
Publish / check (push) Waiting to run
Publish / publish-jsr (push) Blocked by required conditions
Publish / smoke-jsr (push) Blocked by required conditions
Merge pull request #4 from vidimus-dev/feat/level2-code-mode-snippets
feat: upgrade to @mcpview/server and add Level-2 Code Mode snippets
2026-12-05 17:48:28 +08:00
.github/workflows ci: align GHCR multi-arch Docker workflow to vidimus-dev on main and tags 2026-12-05 15:35:37 +08:00
docs feat(viewers): share View presentation and capture the ISO fit surface 2026-09-05 11:49:53 +08:00
scripts Publish future GHCR images in personal namespace [skip ci] 2026-10-05 23:02:16 +08:00
src feat: upgrade to @mcpview/server and register Level-2 Code Mode snippets 2026-12-05 17:46:33 +08:00
tests feat: upgrade to @mcpview/server and register Level-2 Code Mode snippets 2026-12-05 17:46:33 +08:00
.dockerignore chore: add Dockerfile and .dockerignore for Docker MCP Catalog packaging 2026-08-05 10:31:37 +08:00
.gitignore fix(ci): ignore audited viewer checkout 2026-08-31 19:47:19 +08:00
CHANGELOG.md feat(viewers): share View presentation and capture the ISO fit surface 2026-09-05 11:49:53 +08:00
CITATION.cff feat(viewers): share View presentation and capture the ISO fit surface 2026-09-05 11:49:53 +08:00
deno.json feat: upgrade to @mcpview/server and register Level-2 Code Mode snippets 2026-12-05 17:46:33 +08:00
deno.lock feat: upgrade to @mcpview/server and register Level-2 Code Mode snippets 2026-12-05 17:46:33 +08:00
docker-entrypoint.sh fix: use native Casys stdio transport 2026-08-27 13:39:31 +08:00
Dockerfile docs: present and release tolerance viewers 2026-08-31 23:43:03 +08:00
LICENSE feat: scaffold @casys/mcp-tolerance 0.1.0 — ISO 286-1:2010 dimensional tolerance oracle [skip ci] 2026-08-05 08:34:57 +08:00
mod.ts feat: upgrade to @mcpview/server and register Level-2 Code Mode snippets 2026-12-05 17:46:33 +08:00
README.md ci: align GHCR multi-arch Docker workflow to vidimus-dev on main and tags 2026-12-05 15:35:37 +08:00
SECURITY.md docs: add security policy contact 2026-08-05 11:34:39 +08:00
server.ts feat: upgrade to @mcpview/server and register Level-2 Code Mode snippets 2026-12-05 17:46:33 +08:00

@casys/mcp-tolerance

JSR Publish License: MIT

Deterministic ISO 286-1:2010 size-tolerance calculations and linear 1D stack-ups, available as an MCP server and a Deno library.

Give it H7/g6 at 25 mm and it reports the actual dimensional relationship:

Member Limits
Hole H7 25.000–25.021 mm
Shaft g6 24.980–24.993 mm
Clearance 0.007–0.041 mm

It calculates; it does not inspect a part, choose a fit for an application, or declare a design conformant.

MCP View fit result rendered from the exact H7/g6 fixture

Fixture preview generated through the real bundled viewer and exact tool result. It is a demo surface, not a recorded Digital Thread result or a verdict.

Start it

Desktop / stdio

deno run \
  --allow-env \
  --allow-read=mcp-server.yaml \
  --allow-net=jsr.io \
  jsr:@casys/mcp-tolerance@0.3.5/server \
  --stdio

Minimal MCP client configuration:

{
  "mcpServers": {
    "tolerance": {
      "command": "deno",
      "args": [
        "run",
        "--allow-env",
        "--allow-read=mcp-server.yaml",
        "--allow-net=jsr.io",
        "jsr:@casys/mcp-tolerance@0.3.5/server",
        "--stdio"
      ]
    }
  }
}

Stateless HTTP

deno run \
  --allow-env \
  --allow-read=mcp-server.yaml \
  --allow-net=127.0.0.1:3019,jsr.io \
  jsr:@casys/mcp-tolerance@0.3.5/server \
  --port=3019

The endpoint is http://127.0.0.1:3019/mcp and speaks the stateless MCP 2026-07-28 contract.

Container

docker run --rm -p 127.0.0.1:3019:3019 \
  ghcr.io/casys-ai/mcp-tolerance:0.3.5 http

Use stdio instead of http for an interactive container client. Version tags and latest are convenient selectors; pin the published OCI digest when the deployment itself must be reproducible.

What it covers

  • IT grades and supported hole/shaft limit classes over (0, 500] mm.
  • Hole-basis and general hole/shaft fit analysis with signed clearance ranges.
  • Scalar 1D chains with worst-case and RSS intervals plus reconstructable contributor terms.

Every result carries provenance, explicit not_checked limits, and no invented pass/fail verdict. The complete class coverage, sign conventions, formulas, stack-up assumptions, and exclusions live in the technical reference.

MCP Apps

MCP Apps-capable hosts receive compact provider-owned surfaces for limits, fits, and stack-ups. Text-only hosts keep the same content and structuredContent.

The package exports @casys/mcp-tolerance/view-app-manifest, which declares the whole-view resources and their read-only viewer.session.apply contracts. A recording host may replay an exact projection; this provider does not create a Digital Thread session, anchor, approval, or manufacturing claim.

Library

deno add jsr:@casys/mcp-tolerance@0.3.5
import { computeFit, fundamentalTolerance } from "@casys/mcp-tolerance";

console.log(fundamentalTolerance(7, 25)); // 21 µm
console.log(computeFit("H7", "g6", 25).fit); // clearance, 7–41 µm

Documentation

For a checkout, the short validation path is:

deno task test
deno task release:check

MIT licensed. This project references ISO 286-1:2010 but is not an official ISO publication or certification service.