L'Atlas / Serveurs MCP / kernelCAD

kernelCAD

com.kernelcad/kernelcad

Serveur MCP OK

Faire examiner Voir les tarifs

CAD in ChatGPT and Claude: editable parts, STEP/STL/drawings, in-chat 3D, automatic checks.

Fiche technique

Auteur
kernelcad.com (espace de noms du registre)
Dépôt
github.com/w1ne/kernelCAD-web
Site
kernelcad.com
Version
0.17.1
Transport
Streamable HTTP
Authentification
Aucune (constatée par notre test)
Adresse du serveur
https://mcp.kernelcad.com/mcp Streamable HTTP
Outils
22
Catégories
IA, agents et mémoire
Dernière mise à jour
27 oct. 2026
Publication
27 oct. 2026

Badge pour votre README

Référencé sur L’Atlas

Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.

MarkdownREADME.md
[![Référencé sur L’Atlas](https://latlas.dev/badge/fiche/com.kernelcad/kernelcad.svg)](https://latlas.dev/mcp/com.kernelcad/kernelcad)
HTML
<a href="https://latlas.dev/mcp/com.kernelcad/kernelcad"><img src="https://latlas.dev/badge/fiche/com.kernelcad/kernelcad.svg" alt="Référencé sur L’Atlas" height="20"></a>

Nos tests

Chaque semaine : initialize puis tools/list, sans identifiant, sans jamais appeler d’outil. Méthode

Adresse
https://mcp.kernelcad.com/mcp
Dernier résultat
OK 28 nov. 2026, 09:11
Temps de réponse
598 ms (initialize + tools/list)
Version du protocole
2025-11-25
Nom annoncé
kernelcad 1.0.0
Outils
22

Historique

DateRésultatRéponseOutils
28 nov. 2026, 09:11OK598 ms22

Outils exposés (22, réponse à tools/list, 28 nov. 2026)

open_in_studio

Open in Studio

Save the model as a kernelCAD project AND show it: persists a project revision, returns the interactive Studio viewer (MCP Apps / ChatGPT outputTemplate), and includes a PNG preview in the SAME tool result (image content + previewUrl when available). For a new private model pass new_project:true, privacy:"private" over an authenticated connection. Private models return an owner-only Studio link without public preview, mesh or animation artifacts. For an update, pass expected_version from your read to refuse overwriting a newer revision. Decide electronics actions from the user request at render time: pass show_electronics:true only when electronics are relevant. Default false for mechanical-only models such as mugs. This is an agent decision, not geometry or linked-PCB detection. Use hardware_pack for optional LabWired context. ONE VIEWER PER PROJECT PER RESPONSE: every call renders a new viewer card. Do all validation with evaluate_script first, then call open_in_studio exactly once, after validation succeeds; reuse the returned URL, revision and preview, and never call it again after a successful result in the same response. Re-calling with unchanged code for the same project returns that revision instead of writing a new one. A heavy model can answer status:"running" (code tool.still-running) before the client times out; that is NOT a success: call open_in_studio again with exactly the same arguments, which joins the running save and returns its result. CONTINUE, DO NOT D…

ParamètreTypeRequisDescription
codestringnonThe full .kcad source of the model to open in Studio (the script you have been editing). Optional: omit to reuse the source from your most recent evaluate_script call.
titlestringnonOptional human-readable title for the model (shown in Studio). Defaults to "Model from Claude".
parametersarray<object>nonOptional list of the model's editable parameters, so Studio can render parameter controls. Each item is one control derived from the .kcad params.
projectstringnonSlug of the project to update (from the last open_in_studio result, a "Saved to your projects" note, list_my_projects, or a /p/ link). Adds a new revision to that project instead of creating a new one, and live-updates the user's open Studio tab.
slugstringnonOlder name for `project`. Use `project`.
new_projectbooleannonPass true only when the user wants a separate, new design. Default: continue this chat's project, or your project with the same title from the last 24 h. Still wins over a matching title or cookbook.
privacyenum: "private" | "public_unlisted"nonCreation only. Default public_unlisted preserves link sharing. private requires authentication and does not publish preview, mesh or animation artifacts. Use new_project:true when creating an independent private model. Existing project visibility is preserved; omit this field on updates.
expected_versionintegernonUpdate only. The revision read before editing. Refuses the save if another writer changed it; read and reconcile the current revision before retrying. Requires project or slug and cannot be combined with new_project:true.
continue_designbooleannonPass true to add a revision to the design this chat is already saving, even when this call is a different cookbook or title. Ignored when `project` is set.
show_electronicsbooleannonAgent render decision. Default false. Set true to show Electronics in LabWired when relevant to the requested design, even before a PCB exists. Set false for mechanical-only models. Existing links never override this decision.
include_previewbooleannonDefault true: render an iso PNG preview into this same tool result (reuses the server render cache when this source was already rendered). Set false to skip rasterization and return save/viewer URLs only.
likeness_profileenum: "automotive"nonHard success gate for organic/car bodies. When set, open_in_studio returns ok:false unless body-likeness is publishReady (inline body_bbox/wheels/still_verdicts, or a prior verify body-likeness pass for this exact code). Omit for WIP previews.
body_bboxobjectnonBody AABB { min:[x,y,z], max:[x,y,z] } mm — for likeness_profile gate when no session attest.
cabin_bboxobjectnonOptional cabin AABB for likeness gate.
wheelsarray<object>nonWheel centres + radii for likeness gate [{ center:[x,y,z], radius }].
still_verdictsarray<object>nonAgent still checklist for likeness gate [{ code, passed, finding, view? }].
require_stillsbooleannonForwarded to body-likeness gate (default true).
attachmentsarray<object>nonComplementary project files referenced by relative path from the .kcad source.
anon_tokenstringnonAnonymous owner token returned as `anonToken` by an earlier open_in_studio result. Pass it on every open_in_studio call, also in a new chat, so all your anonymous projects stay together and move to the user's account when they sign in. Omit when you have none.
intentstringnonThe user's request in one sentence, in the user's own words and language (e.g. 'M4 bracket for a 25 mm tube, print on Bambu A1'). Helps kernelCAD improve; leave out personal data.

get_project

Get Project

Use this when you need to reopen a saved project or browse what the user has saved — it fetches a kernelCAD Studio project, or lists the signed-in user's saved projects. Pass `slug` (from a /p/ link or a prior listing) to fetch that project's full .kcad source and metadata — then edit and open_in_studio with the same slug so the user's open tab updates live. Private projects require their owner's OAuth connection. OMIT `slug` to list the signed-in user's saved projects (most recently updated first); that listing mode requires the OAuth connection and does NOT paint — prefer list_my_projects to find a project to continue. Read-only: this tool never shows a viewer (only open_in_studio does, once per response). Paint phases: projectSaved/meshReady reflect fetch state; viewerPainted stays false. Use open_in_studio (with code) to publish+paint — do NOT call get_model_mesh or get_latest_render for interactive paint.

ParamètreTypeRequisDescription
slugstringnonThe project slug from a listing or a /p/ Studio link. Omit to list the signed-in user's saved projects.

get_project_revision

Get Project Revision

Fetch the exact immutable .kcad source and parameters captured at a prior `open_in_studio` version. Use this to read-after-write verify a release: pass the returned `slug` and `version`, then hash or inspect the returned source. Public/unlisted projects use the slug as capability; private projects require the owner's OAuth connection.

ParamètreTypeRequisDescription
slugstringouiProject slug returned by open_in_studio.
versionintegerouiPositive immutable revision version returned by open_in_studio.

get_model_mesh

Get Model Mesh

Return the raw per-feature triangle mesh (positions/indices/normals) of a project by slug. Pass version for an exact immutable revision; omission reads the current model. The result echoes slug and version. For the in-chat 3D viewer widget to render geometry; delivered over the MCP Apps bridge. The slug is the capability: public/unlisted need no OAuth; private requires the owner signed in. This tool returns geometry without publishing a mesh, preview or animation artifact.

ParamètreTypeRequisDescription
slugstringouiProject slug from open_in_studio/get_project.
versionintegernonExact immutable revision from open_in_studio/get_project_revision. Omit only to read the current model.

request_upload

Request File Upload

Use this when the user has a photo, PDF drawing, STEP, STL, DXF, SVG or 3MF file on their device and you need it in a kernelCAD tool (trace_from_image, drawing_to_cad, mesh_to_features, inspect of:"step", or lib.fromSTEP / fromSTL / fromDXF / fromSVG / referenceImage in a script). Do not ask the user to paste the file as text or base64, and do not type coordinates from an image by hand. Returns a one-time `uploadUrl` (valid 30 minutes) and an `asset` reference. Give the user the link; after they say the upload is done, pass the `asset` value ("asset: ") as the file argument, for example trace_from_image({ imageUrl: "asset: " }) or lib.fromSTEP("asset: "). If the file is already at a public https:// URL, pass that URL instead. On clients that support MCP URL elicitation the upload page opens for the user directly and the call returns once the file is stored (status "uploaded"); then use the asset right away without asking the user anything.

ParamètreTypeRequisDescription
purposestringnonOptional short note shown on the upload page, e.g. "the photo of the worn bracket".

lookup_authoring_skill

Look Up Authoring Skill

Return the kernelcad-authoring skill — conventions for writing .kcad.ts scripts (API surface, parameters, evaluation contract, common pitfalls) — in sections. Call with NO arguments first: you get the quick-start (units, axes, the return rule, the rules that prevent most failures, the intent → API routing table, the "Before you finish" checklist) and an index of every section with a one-line summary (under 17k chars). Then pull what you need: `{ section: " " }` returns one section (e.g. "top-level-functions", "materials", "dfm-gates-print-readiness"); `{ query: "fillet after subtract" }` returns the best-matching sections. `{ section: "all" }` returns the full ~140k-char skill (SKILL.md plus its reference files) — only if your client accepts large responses. Clients that list resources can also read `kernelcad://skills/authoring` (the SKILL.md core). OUTPUT: { uri, mimeType, mode, text, sections? } — `mode` is index | section | search | all | not-found. Lookup responses include `kernelSource`: the exact kernel package version/revision, composed runtime source hash, and version-pinned public authoring/API references.

ParamètreTypeRequisDescription
sectionstringnonSection id from the index (e.g. 'top-level-functions'), or 'all' for the full skill.
topicstringnonAlias of section; also accepts a loose title such as 'materials' or 'cli commands'.
querystringnonKeywords to search section titles and bodies (e.g. "sweep along helix").

evaluate_script

Evaluate CAD Script

Run a script and check the built model against its declared requirements. A full result has buildOk for geometry availability and ok for overall acceptance: a failed or not-evaluated requirement makes ok:false while retaining built geometry for inspection. Full local builds return viewerUrl: a live Studio link reused and updated on later full builds in the same MCP process. Hosted builds return viewerMode: hosted and viewerHint pointing to open_in_studio; they do not start a loopback viewer. Full evaluations return step evidence: build validity, volume and before/after local PNG paths in one shared iso frame. Snapshots require PW_CDP_URL for an existing browser; unavailable captures report an explicit error. Run a kernelCAD .kcad.ts script and report pass/fail + feature count + diagnostics + sceneSummary (BREP validity, volume in mm³, face count, bounding size in mm). When ok is false, refuse is the first error (refuse.code, refuse.message, refuse.try) so the next edit can target it. When the scene is assembly-built (assembly().part(...) → .model()/.solvedModel()), also returns a parts summary { count, names } AND runs the mechanism-truth gate by default: the `mechanism` field reports real/broken/unverified and a broken mechanism (disconnected components / mechanism.orphan-part, self-collision, fastened drift, dof-mismatch) makes ok:false with the failures in diagnostics. A mate connector more than 6 mm outside the bounding box of its part and of every part fastened to it (a…

ParamètreTypeRequisDescription
filestringnonPath to a .kcad.ts script file. Hosted: `code`, `project: ` (head), or a Studio `/p/ ?version=N` link (pinned); no local files.
codestringnonInline kernelCAD script source.
dry_runbooleannonFast validation only: skip solid build, DFM gates, and meshing. Does not set or clear the active session.
kernelenum: "occt" | "smlib"nonSolid-modeling kernel. Default 'occt' (OpenCascade); opt-in 'smlib' uses guarded candidates with explicit OCCT fallback diagnostics.
skip_mechanism_checkbooleannonOpt out of the default mechanism-truth gate. By default a full evaluation of an assembly-built scene runs checkMechanismTruth and returns a `mechanism` verdict (real/broken/unverified); a broken mechanism makes ok:false. A budget-skipped sweep still runs rest-pose checks and reports a typed warning…
baselinearray<object>nonThe `selections` of an earlier evaluation of this model. A selector that now binds to a different face or edge is reported as selector.binding-changed (warning), one whose entity only moved or resized as selector.binding-moved (info). Defaults to the previous evaluation of the same `file`.
requirementsarray<object>nonCall-time external requirements ([{ name, predicate }]) measured in the same `requirements` ledger, tagged source: 'external' and never persisted. The predicate is the serializable form of require(): { metric: clearance | distance | mass | volume | bbox | centerOfMass | count | innerLoops | angle |…
patcharray<object>nonEdit-and-test in place: use with file "project: " instead of resending the script. Each { old, new } replaces text that must occur exactly once in the saved source (no match or several matches is an error and nothing runs); edits apply in order. The tool runs on the patched source; nothing is saved…
intentstringnonThe user's request in one sentence, in the user's own words and language (e.g. 'M4 bracket for a 25 mm tube, print on Bambu A1'). Helps kernelCAD improve; leave out personal data.

inspect

Inspect Model

Use this when you need to read facts about a model. One reader, selected by `of`: - 'assembly' — physical assembly inventory (parts, bboxes, connectors, mates, disconnected solids). - 'robot' — URDF/SDFormat export preview (links, joints, planning groups, end-effectors, issues). - 'step' — inspect an imported STEP file: solid tree, exact bbox/volume, analytic planar/cylindrical faces, hole axes, and conservative hole/pocket/boss/slot/round candidates with per-feature status/confidence. - 'brep' — the same recognition report for a native OCCT BREP file, including BRepCheck validity per solid. - 'shape' — volume / surfaceArea / bbox for one feature ({ feature_id? }). - 'mass' — mass, centre of mass, centroidal inertia tensor (inertia6 + 3x3 inertiaMatrix), principalMoments/principalAxes, symmetry flags, and optionally the radius of gyration about an arbitrary axis ({ feature_id?, density?, gyration_axis? }); density in kg/m^3, defaults to 1000 (water). - 'features' — features captured by the script (kind, id, params, transforms, suppression). - 'assemblies' — assembly intent (assemblies, parts, connectors, joints). - 'topology' — canonical face names + edge count for a feature ({ feature_id? }). - 'edges' — edges of a shape with optional EdgeQuery ({ feature_id?, query? }); returns @kc[...] refs. - 'face-edges' — boundary edges of a named canonical face ({ feature_id?, face_name }). - 'faces' — faces of a shape with optional FaceQuery ({ feature_id?, query? }); returns @kc[...…

ParamètreTypeRequisDescription
ofenum: "assembly" | "robot" | "step" | "brep" | "shape" | "mass" | "features" | "assemblies" …ouiWhich facts to read.
filestringnonPath to the subject file: .step/.stp for of:'step', .brep for of:'brep', or a .kcad.ts script for script-backed subjects. Hosted: `code`, `project: ` (head), or a Studio `/p/ ?version=N` link (pinned); no local files. Hosted server: pass an https:// URL, a data: URI, or "asset: " from request_uploa…
codestringnonInline kernelCAD script source.
assemblystringnonof:'assembly'|'robot'|'bom' — assembly name; defaults to the first captured assembly.
feature_idstringnonof:'shape'|'mass'|'topology'|'edges'|'faces'|'face-edges'|'face-labels' — FeatureId; defaults to the last returned shape.
densitynumbernonof:'mass' — material density in kg/m^3 (steel 7850, aluminium 2700, ABS 1050). Defaults to 1000 (water); the response echoes the value used and flags when it was defaulted.
gyration_axisobjectnonof:'mass' — optional axis in shape-local mm to report the radius of gyration about. Omit for centroidal quantities only; the result is density-independent and returned in mm.
face_nameenum: "top" | "bottom" | "left" | "right" | "front" | "back"nonof:'face-edges' — canonical face name (required for that subject).
queryobjectnonof:'edges'|'faces' — optional EdgeQuery/FaceQuery filter. of:'mates' — optional { poses: { [mateName]: number | [number,number,number] } } to solve the same captured assembly and return solution. code/file binds mate inventory, limits and solution atomically to evaluationEvidence.source.sha256. A n…
categorystringnonof:'part-families' — optional top-level category to filter families by.
planestring | objectnonof:'section' — section plane. Either a cardinal name string 'xy'|'xz'|'yz', { plane: 'xy'|'xz'|'yz', offset? }, or { origin: [x,y,z], normal: [nx,ny,nz] }. Omit to use `at`+`axis`.
atnumbernonof:'section' — single slice position along `axis` (mm).
axisenum: "x" | "y" | "z"nonof:'section' — normal axis for `at` / `stack` (default 'z').
stackobjectnonof:'section' — dense scan: `count` slices evenly spaced from `from` to `to` along `axis`; response reports minAreaIndex/minAreaPosition.
edgesobject | array | stringnonof:'continuity' — optional EdgeQuery or @kc[...] ref(s) limiting which shared edges are sampled.
facesobject | array | stringnonof:'curvature' — optional FaceQuery or @kc[...] ref(s) limiting which faces are sampled.
spike_factornumbernonof:'curvature' — spike sensitivity as a multiple of the face's Gaussian stddev (default 6).
patcharray<object>nonEdit-and-test in place: use with file "project: " instead of resending the script. Each { old, new } replaces text that must occur exactly once in the saved source (no match or several matches is an error and nothing runs); edits apply in order. The tool runs on the patched source; nothing is saved…

verify

Verify Design

Use this when you need to check a design against a rule set. One verifier, selected by `check`: - 'assembly' — static assembly review ({ file | code }, or the session evaluate_script left): mate validator, default-pose interference, joint topology, mechanical plausibility. ok:false with `blocking[]` exactly when review_cad's blocking rules fire on these findings; review_cad also sweeps joint ranges and runs physics. - 'urdf' — structural validity of a .urdf file ({ urdf_path }). - 'dfm' — print-readiness gates declared by dfmSpec() ({ file | code }). - 'dfm-preflight' — sheet-metal flat pattern vs a job-shop's ordering rules ({ vendor, material, thickness_in|thickness_mm, ... }). Returns the vendor's catalog source pages as `sources`; when `disclosure` is present, show it with those links. - 'assembly-path' — continuous straight-line removal of each assembly part along ±X/±Y/±Z and optional world-space directions. Returns valid directions, blocking parts and one of three states (removable / blocked / unknown); sequence peels the directional blocking graph and reverses it into a build sequence with a model stamp. Fastened-mate and fixed-connect clusters become subassemblies: each is planned recursively inside and installed as one unit at the top level (`Step.subassembly`). Remaining valid orders use deterministic heuristics (subassemblies first, outside-in, fewest reorientations, fewest tool changes); stuck sets get a budgeted blocking-reduction partition and a sampling fallb…

ParamètreTypeRequisDescription
checkenum: "assembly" | "urdf" | "dfm" | "dfm-preflight" | "swept-collision" | "joint-range" | "reachable" | "mounting-holes" …ouiWhich verification to run. Omit only when passing call-time `requirements`; then the requirements ledger is the verification.
requirementsarray<object>nonCall-time external requirements ([{ name, predicate }]) measured in the same ledger as script require(), dfmSpec and feaStudy, tagged source: 'external' and never persisted. The predicate is the serializable form of require(): { metric: clearance | distance | mass | volume | bbox | centerOfMass | c…
filestringnonPath to a .kcad.ts script (assembly/dfm/dfm-preflight/swept-collision/joint-range/reachable/mounting-holes/load-capacity/static-hold/geometry-quality/edge-radius/requirements). Hosted: `code`, `project: ` (head), or a Studio `/p/ ?version=N` link (pinned); no local files.
codestringnonInline kernelCAD script source (same checks as `file`).
feature_idstringnoncheck:'geometry-quality' — body feature to measure; defaults to script return. check:'edge-radius' — lowered feature; default the returned model.
tiny_face_area_mm2numbernoncheck:'geometry-quality' — flag faces strictly below this absolute area; zero disables.
tiny_face_relativenumbernoncheck:'geometry-quality' — fraction of total BREP surface area, ORed with absolute threshold.
short_edge_length_mmnumbernoncheck:'geometry-quality' — flag edges strictly below this length; zero disables.
symmetry_tolerance_mmnumbernoncheck:'geometry-quality' — maximum sampled mirror-to-mesh distance, mm.
mesh_deflection_mmnumbernoncheck:'geometry-quality' — absolute mesh deflection, defaults to tolerance/4; must be <= tolerance/2.
asserted_planeobjectnoncheck:'geometry-quality' — optional required mirror plane in model coordinates; normal is normalized and must be nonzero.
assemblystringnonAssembly name; defaults to the first captured assembly.
dynamicsobjectnoncheck:'physics' — separate forward dynamics acceptance. Applied effort is N or N·m by CAD mate name. Contacts require explicit convex pieces. Does not certify geometry or physical hardware.
min_radius_mmnumbernoncheck:'edge-radius' — minimum fillet radius in mm (does not imply sharp-edge prohibition).
max_radius_mmnumbernoncheck:'edge-radius' — maximum fillet radius in mm; must be >= min_radius_mm.
require_edge_breakenum: "external" | "internal" | "all"noncheck:'edge-radius' — prohibit sharp convex/external, concave/internal, or all edges.
partsarray<string>noncheck:'edge-radius' — explicit assembly part names (default all).
edgesobject | array | stringnoncheck:'edge-radius' — EdgeQuery or @kc[...] edge ref(s); intersected with faces. Query near sorts, it does not filter.
facesobject | array | stringnoncheck:'edge-radius' — FaceQuery or @kc[...] face ref(s); includes incident edges and fillets on selected faces.
fastenersarray<object>noncheck:'fastener-installation' — explicit named stations; empty means no coverage.
tolerance_mmnumbernoncheck:'fastener-installation' — linear tolerance, default .05 mm.
angle_tolerance_degnumbernoncheck:'fastener-installation' — axis tilt tolerance, default 1 degree.
urdf_pathstringnoncheck:'urdf' — path to the .urdf file.
dxfstringnoncheck:'dfm-preflight' — path to a DXF file.
vendorstringnoncheck:'dfm-preflight' — vendor SKU (required for that check).
materialstringnoncheck:'dfm-preflight' — material SKU (required for that check).
thickness_innumbernoncheck:'dfm-preflight' — material thickness in inches.
thickness_mmnumbernoncheck:'dfm-preflight' — material thickness in millimeters.
serviceenum: "laser" | "cnc-router" | "waterjet" | "bending"noncheck:'dfm-preflight' — service.
refresh_catalogbooleannoncheck:'dfm-preflight' — force vendor catalog refresh.
directionsarray<array<number>>noncheck:'assembly-path' — additional nonzero world-space removal vectors; normalized and deduplicated.
disassembly_orderbooleannoncheck:'assembly-path' — iteratively remove freed parts and return removalOrder or stuckParts.
work_budgetnumbernoncheck:'assembly-path' — positive finite per-call work allowance for mesh validation, acceleration builds and path checks. Default 8000000. Exhaustion remains unknown; job time and memory limits still apply.
sequencebooleannoncheck:'assembly-path' — plan a build sequence { steps, model, unknown, search?, requiresForce?, toolBlocked?, needsHold? }. Fastened/fixed clusters become subassemblies planned inside and installed as one unit; steps carry the insertion direction (reverse removal), and may be motion: helical (decla…
threaded_fastenersarray<string>noncheck:'assembly-path' — part names that need a helical removal. Catalog screw/bolt/nut families are detected automatically; without a fastened-mate fastener declaration (axis/pitch) they remain unknown: non-straight-path. Declare the motion on arm.mate(..., 'fastened', { fastener: { part, axis, pit…
stabilitybooleannoncheck:'assembly-path' — run the approximate P3 static-stability pass on the sequence. Each part's closed-mesh volume centroid (uniform density) must project inside the convex hull of its contacts with already-stable parts. Unsupported parts become needsHold { part, reason, supports } and ok:false;…
fixturesarray<string>noncheck:'assembly-path' with stability:true — declared base/fixture part names, stable from step 1. Default: the lowest part(s) along gravity.
contact_tolerance_mmnumbernoncheck:'assembly-path' with stability:true — surface distance at or below which parts count as touching (default 0.05 mm).
jointstringnoncheck:'swept-collision' — joint to sweep; omit to sweep every declared joint. check:'joint-range' — revolute or prismatic joint to measure; omit to measure every one. check:'static-hold' — joint to evaluate; omit to evaluate every joint with a declared actuator.
rangearray<number>noncheck:'swept-collision' — [lower, upper, step] in joint-native units.
collision_tolerance_mm3numbernoncheck:'swept-collision' — BREP intersection volume tolerance (mm^3).
clearance_mmnumbernoncheck:'joint-range' — surface clearance the suggested stop protects, mm (default 0.3).
searcharray<number>noncheck:'joint-range' — [min, max] search window in the joint's units. Overrides authored limits. A joint with no finite window is unknown, not clear.
stepnumbernoncheck:'joint-range' — coarse step in the joint's units (default 5 degrees or 2 mm). A contact thinner than one step can be missed. no-stop means those sampled poses found no crossing, not a continuous proof.
resolutionnumbernoncheck:'joint-range' — bisection tolerance in the joint's units (default 0.1 degrees or 0.05 mm). The reported stop is the clear side of the final bracket.
sweep_budgetnumbernoncheck:'joint-range' — face-weighted exact BREP distance budget (default 40000). 0, or a probe that would pass the budget, returns unknown. Never a clear range.
tip_linkstringnoncheck:'reachable' — end-effector part name (required for that check).
target_positionarray<number>noncheck:'reachable' — target [x, y, z] mm (world frame).
target_orientationarray<number>noncheck:'reachable' — target XYZ Euler angles in radians.
position_tolerance_mmnumbernoncheck:'reachable' — position tolerance in mm.
orientation_tolerance_radnumbernoncheck:'reachable' — orientation tolerance in radians.
prefer_solverenum: "analytical" | "numeric" | "auto"noncheck:'reachable' — force the IK path ('auto' default).
max_iterationsnumbernoncheck:'reachable' — numeric-path iteration cap.
seedobjectnoncheck:'reachable' — numeric IK seed pose (joint name -> deg/mm).
loadsobjectnoncheck:'load-capacity' — partName -> { force?: [Fx,Fy,Fz] N, torque?: [Tx,Ty,Tz] N*m }.
materialsobjectnoncheck:'load-capacity' — partName -> material declaration.
modeenum: "stub" | "beam" | "fea"noncheck:'load-capacity' — 'beam' (default), 'stub', or 'fea' (solve the script's feaStudy: CalculiX + gmsh when installed, else the in-process voxel estimate).
safety_factor_thresholdnumbernoncheck:'load-capacity' — pass/fail safety-factor floor (default 1.5; mode 'fea': the study's minSafetyFactor when declared).
studystringnoncheck:'load-capacity' mode:'fea' — feaStudy name (default: the last declared one).
mesh_sizenumbernoncheck:'load-capacity' mode:'fea' — element size override, mm.

lookup_api

Look Up API

Look up the kernelCAD script API by symbol, plain-language query, and/or section. Plain-language matches are ranked across sections. Results contain exact runtime signatures. All matching entries are returned by default; set limit and offset only when you want pages. Omit query and section for the compact API index and section counts. Use query to request full descriptions of matching entries. intent is telemetry, not a search query. Lookup responses include `kernelSource`: the exact kernel package version/revision, composed runtime source hash, and version-pinned public authoring/API references.

ParamètreTypeRequisDescription
querystringnonAPI symbol or plain-language terms; matching entries retain full descriptions.
sectionenum: "globals" | "shapeMethods" | "shapeListMethods" | "sketchMethods" | "pathBuilderMethods" | "paramRefMethods" | "sceneMethods" | "scenePartProperties" …nonRestrict results to one section from the returned section index.
limitintegernonOptional entries per page; omit to return every match.
offsetintegernonContinue from next_offset with the same query and section.
intentstringnonThe user's request in one sentence, in the user's own words and language (e.g. 'M4 bracket for a 25 mm tube, print on Bambu A1'). Helps kernelCAD improve; leave out personal data.

export

Export

Use this when you need to export geometry to a file. One exporter, selected by `target`: - target:'model' — export the script geometry to one file. Pass { file | code }, a required { output_path }, and { format }. Supported formats: stl (binary STL mesh), step (BREP CAD interchange), dxf (2D cut file for laser / waterjet / CNC: a flat part — plate, panel, extruded profile, in any orientation — exports its outline and holes in its own plane with exact arcs and circles; a sheet-metal part or a returned Region exports its flat pattern; a flat or sheet-metal part also returns sheet { thickness_mm, bend_count }, which a shop needs and the DXF does not carry; options.section { axis: "x"|"y"|"z", at } exports the cross-section of any part in world coordinates (plans, profiles); a multi-part model (cut list) writes all parts side by side on output_path, one layer per part, plus parts/ .dxf per part (reported in part_files; options.layout 'sheet' writes the combined sheet only); a 3D part that is not a flat plate or panel fails with export.dxf.non-planar), 3mf (slicer-friendly mesh: one named object per part, colours as core-spec basematerials named by the part's engineering material; options.arrange 'plate' packs parts on the bed at Z=0 without overlap (options.orient puts each part's largest flat face down), 'assembled' keeps them together as one multi-part object for multi-colour prints; options.slicer 'bambu' | 'orca' | 'prusa' adds that slicer's per-object name + filament-slot s…

ParamètreTypeRequisDescription
targetenum: "model" | "part"nonWhich exporter to run: 'model' (whole-script geometry to one file) or 'part' (per-part STLs from a solved assembly).
filestringnonPath to a .kcad.ts script file. Hosted: `code`, `project: ` (head), or a Studio `/p/ ?version=N` link (pinned); no local files.
codestringnonInline kernelCAD script source.
output_pathstringnonDestination path (a directory for format 'bend-table'). target:'model' — the export file (required). target:'part' — single-part .stl path. Hosted server: only the file name is used; the file is written to a server-owned directory and returned as a download link.
formatenum: "stl" | "step" | "dxf" | "3mf" | "glb" | "asset-pack" | "obj" | "ply" …nontarget:'model' — output file format (required for that target).
feature_idstringnontarget:'model' — optional FeatureId to export; defaults to last.
optionsobjectnontarget:'model' — optional per-format options bag. The top-level format selects these options. If supplied, options.format must match it. step: { unit?: "mm"|"cm"|"in", verify?: boolean } (verify defaults to true and checks B-rep validity plus mesh watertightness; false skips both). stl: { verify?:…
partstringnontarget:'part' — part name for single-part export, or 'all'.
output_dirstringnontarget:'part' — destination directory (all-parts mode); files are / .stl. Hosted server: only the file name is used; the file is written to a server-owned directory and returned as a download link.
no_verifybooleannonSkip the default STL/STEP validity and watertightness gates.
quality_gateenum: "warn" | "block" | "off"nonGeometry-quality gate for stl/step/3mf/obj/ply/gcode (both targets): 'warn' exports and reports geometryQuality + warn diagnostics, 'block' fails the export (nothing written) when tiny faces or short edges are found, 'off' skips it.
tiny_face_area_mm2numbernonQuality gate threshold: faces with BREP area below this (mm²) are tiny. Default 0.01; 0 disables.
short_edge_length_mmnumbernonQuality gate threshold: edges shorter than this (mm) are short. Default 0.1; 0 disables.
job_idstringnonPoll an existing hosted export job using the job_id returned by export.deferred. Pass only job_id to retrieve its status or completed downloads.
intentstringnonThe user's request in one sentence, in the user's own words and language (e.g. 'M4 bracket for a 25 mm tube, print on Bambu A1'). Helps kernelCAD improve; leave out personal data.

lookup_cookbook

Look Up Cookbook

Use this when you need a canonical pattern snippet for a CAD task. Search the kernelCAD cookbook for canonical pattern snippets. Returns top-k snippets matching the natural-language query, ranked by BM25 over title/tags/keywords/trigger. Use when you need a canonical pattern for fillet-after-subtract, non-overlapping booleans, sketch-to-extrude flows, etc. Returns empty if no snippet scores above the relevance floor — proceed without cookbook help in that case. Lookup responses include `kernelSource`: the exact kernel package version/revision, composed runtime source hash, and version-pinned public authoring/API references.

ParamètreTypeRequisDescription
querystringnonNatural-language description of what you want to do (e.g. "round the rim of a hole", "build an L-bracket"). One of query / id is required.
idstringnonExact snippet id as the skills cite it (e.g. "clearance-hole-through-plate"); returns that snippet. An unknown id is ranked as a query.
knumbernonMax snippets to return. Default 3, max 5.
intentstringnonThe user's request in one sentence, in the user's own words and language (e.g. 'M4 bracket for a 25 mm tube, print on Bambu A1'). Helps kernelCAD improve; leave out personal data.

review_cad

Review CAD Model

Run a deterministic mechanism-fitness review on supplied kernelCAD code or a file. It performs a full evaluation, replaces the active MCP session model on success, and clears that session if evaluation fails. The script may load referenced assets. The review validates the assembly/mate graph and connector placement, samples declared mate limits, optionally checks interference at sampled poses, and reports connector workspace bounds, fitness findings, and a repair mode (none, local-fix, parameter-tune, or topology-redesign). Runs within time_budget_ms (default 90 s); stages that do not fit are listed in skippedStages and were not checked. Hosted: lib.fromSTEP / fromSTL / meshFromSTL / meshFromGLB / fromDXF / fromSVG and referenceImage take a direct string literal or a const bound to one (computed expressions are unsupported). They accept "asset: " (from request_upload), an https:// URL or a data: URI as the path.

ParamètreTypeRequisDescription
filestringnonPath to a .kcad.ts script file. Hosted: `code`, `project: ` (head), or a Studio `/p/ ?version=N` link (pinned); no local files.
codestringnonInline kernelCAD script source.
assemblystringnonAssembly name; defaults to the first captured assembly.
design_goalstringnonOriginal user design prompt or goal. Included in suggestedRepairPrompt so topology-redesign repairs restart from the intended physical design instead of local coordinate nudges.
preserve_interfacesarray<string>nonExternal mates, connector refs, part names, or behavioral interfaces the repair agent must preserve during redesign.
include_pose_envelopebooleannonWhether to sample declared mate limits. Default true.
include_interferencebooleannonWhether sampled poses run BREP interference checks. Default true.
mechanism_sweep_budgetintegernonMaximum estimated BREP work for the mechanism limit sweep and DOF probes. Default 40000. Existing sampling, tolerances and job time/memory guards apply. design_loop forwards this budget to every attempt.
require_physical_use_casebooleannonWhen true, articulated assemblies must declare arm.physicalUseCase(...) evidence: loads, contacts, stable parts, and actuator limits.
physical_use_case_levelenum: "reachability" | "statics" | "reactions"nonEscalating physical-use-case depth; each level includes the previous. 'reachability': targeted sampling over scalar-limited mates named in actuatorLimits, rejecting contacts that cannot get within criteria.maxSlipMm and multi-contact use cases that cannot satisfy every contact in the same sampled a…
physical_use_case_samples_per_mateintegernonSamples per scalar-limited actuator mate for physical-use-case contact reachability. Samples revolute/cylindrical/pin-slot limitsDeg and prismatic limitsMm. Default 3; total targeted combinations are capped.
samples_per_mateintegernonPose-envelope samples per declared-limit mate. 1 (default) = corners only; >=3 adds uniform interior points between min and max. Total samples per non-locked mate = samples_per_mate.
combinatorialbooleannonSample all 2^N limit-corner combinations across mates with declared limits. Capped at 8 mates with limits; combine with samples_per_mate for both interior coverage and worst-pose detection. Default false.
epsilon_mm3numbernonInterference volume threshold in mm^3. Default 0.01.
time_budget_msnumbernonWall-clock budget for the review in ms (default 90000). Once spent, the remaining heavy stages (pose envelope, physical use case, mechanism sweep) are skipped and listed in skippedStages — a partial result instead of a timeout. stageTimingsMs reports where the time went.
track_connectorsarray<string>nonOptional connector refs such as ["gripper-plate.tool-tip"] to limit connector workspace reporting.
mechanismSweepBudgetintegernonMaximum estimated BREP work for mechanism limit sweeps and DOF probes. If omitted, the hosted default is 80000 on a ready sandbox with the attested bounded-16g-v1 capacity profile; otherwise it is 40000. Explicit values are preserved. Existing sampling, tolerances and job time/memory limits apply.…

design_loop

Run Design Loop

Use this when the goal is complex / production / enclosure / gearbox / robot-arm / multi-body, or when you need evaluate→review/verify→revise until green. PREFERRED over one-shot evaluate_script+open_in_studio for Adam-level parts. Runs a CAD design loop over attempt scripts: review_cad each attempt, continue past functional attempts with unresolved warnings, return repair prompts (nextActionPrompt) plus structured revisionAssist (suggestedPatches / autoApplied.suggestedCode for repairable feature failures; cookbook steers for stacked-primitive toys). Stop on ok or convergence.escalate. To pick among N alternative candidates for one goal without a judge, pass them all as attempts with consensus:true (geometric medoid selection). Optionally write a Studio build record JSON.

ParamètreTypeRequisDescription
goalstringouiOriginal user design goal. Fed into every review_cad repair prompt.
attemptsarray<object>ouiOrdered design attempts. Each item is { id?, title?, file? OR code?, visualReview? } — provide file or code (at least one). File attempts can be replayed by Studio build records.
assemblystringnon
preserve_interfacesarray<string>nonExternal mates, connector refs, part names, or behavioral interfaces the agent must preserve between attempts.
include_pose_envelopebooleannonForwarded to review_cad. Default true.
include_interferencebooleannonForwarded to review_cad. Default true.
mechanism_sweep_budgetintegernonMaximum estimated BREP work for the mechanism limit sweep and DOF probes. Default 40000. Existing sampling, tolerances and job time/memory guards apply. design_loop forwards this budget to every attempt.
samples_per_mateintegernonPose-envelope samples per declared-limit mate. 1 (default) = corners only; >=3 adds uniform interior points between min and max. Total samples per non-locked mate = samples_per_mate.
combinatorialbooleannonSample all 2^N limit-corner combinations across mates with declared limits. Capped at 8 mates with limits; combine with samples_per_mate for both interior coverage and worst-pose detection. Default false.
epsilon_mm3numbernonForwarded to review_cad.
track_connectorsarray<string>nonConnector refs to track across sampled poses.
stop_on_passbooleannonStop after the first attempt that is functional and passes the quality gate. Default true.
consensusbooleannonBest-of-N by geometric consensus. When true, attempts are N independent candidates for the SAME goal (not a repair sequence): all are reviewed (stop_on_pass ignored), all scripts are executed, candidates without a valid solid are dropped, and the candidate whose geometry agrees most with the others…
auto_revisebooleannonWhen true (default), failing attempts with repairable feature diagnostics (boolean miss, oversized fillet, …) run bounded repair_script and attach revisionAssist.suggestedPatches / autoApplied.suggestedCode. Set false to skip the extra repair pass (hints-only). Does not autonomously rewrite full CA…
require_visual_reviewbooleannonRequire screenshot-backed visual_review with structured checks before accepting an attempt. Default true; set false only for explicit non-visual batch checks.
require_physical_acceptancebooleannonRequire declared physicalUseCase common-pose reachability and pose-bound quasi-static certification before accepting an attempt. Design-loop also enables this automatically when an attempt script calls physicalUseCase(...).
allow_review_warningsarray<string>nonWarning diagnostic codes the original prompt explicitly allows. Other review warnings keep the loop iterating even if review_cad is functionally ok.
requirementsarray<object>nonCall-time external requirements ([{ name, predicate }]) every attempt is graded against, in the same ledger as script require(). Predicate shape: { metric, a?, b?, op, limit, tolerance?, density? }; operands: { kind: body | faces | edges | part, ref, query? }. A failing or not-evaluated requirement…
output_record_pathstringnonOptional JSON path to write a Studio-compatible build record.
record_titlestringnonOptional title for the build record.
mechanismSweepBudgetintegernonMaximum estimated BREP work for mechanism limit sweeps and DOF probes. If omitted, the hosted default is 80000 on a ready sandbox with the attested bounded-16g-v1 capacity profile; otherwise it is 40000. Explicit values are preserved. Existing sampling, tolerances and job time/memory limits apply.…

render_preview

Render Preview

Use this when you need to LOOK at a kernelCAD model — render its script to deterministic PNG views for visual self-check (the visual half of the evaluate → render → inspect → fix loop), with NO studio or dev server required. Pass { code } (inline source) or { file } (a .kcad.ts path), exactly one. Renders the canonical engineering views (front, right, top, iso — pass { views } for a subset, e.g. ["iso"] for fastest iteration) plus an optional { pose: " , " } arbitrary camera angle (degrees; az=0,el=0 is front, +az rotates CCW around +Z, +el lifts the camera). NO STUDIO / DEV-SERVER REQUIRED: a prebuilt static player (dist/headless-player) is served from an ephemeral local port automatically; a running studio dev server is used as fallback, and { base_url } forces one. The only environment dependency is playwright chromium (npx playwright install chromium). Pass { focus } or { hide } (arrays of feature ids or assembly part names, mutually exclusive) to isolate parts — same semantics as `kernelcad render --focus/--hide`. Pass { section: { axis, position, flip? } } to cut a cross-section and inspect INTERIOR geometry (wall thickness, internal pockets, whether a bore runs through) rather than only the outer shell. Pass { explode: { factor, mode? } } to pull a multi-part assembly apart (mode: "mate-axis" default, or "radial") using the same mesher as `kernelcad render --explode` — requires assembly.model()/solvedModel(). PNGs are written to { out_dir } (default: a fresh temp sess…

ParamètreTypeRequisDescription
codestringnonInline kernelCAD script source. Mutually exclusive with file. Relative imports resolve against a temp dir — use file for scripts with relative lib.fromSTEP(...) imports.
filestringnonPath to a .kcad.ts script on disk. Mutually exclusive with code. Hosted: `code`, `project: ` (head), or a Studio `/p/ ?version=N` link (pinned); no local files.
viewsarray<enum: "front" | "right" | "top" | "iso">nonCanonical views to render as an array, e.g. ["iso"] or ["front","top"] (default: all four). Fewer views = faster.
sheetbooleannonAlso write one labelled image 'sheet' tiling every rendered view. With no views it renders all seven (adds back, left, bottom) — use it before calling a model done, so a missing cutout on the back or underside is not missed.
posestringnonExtra arbitrary camera pose ' , ' in degrees, e.g. '30,20'.
focusarray<string>nonShow only matching feature ids / assembly part names. Mutually exclusive with hide.
hidearray<string>nonHide matching feature ids / assembly part names. Mutually exclusive with focus.
out_dirstringnonDirectory for the PNGs (created if missing). Default: a fresh temp session dir.
widthintegernonPer-view tile width in px (default 768; 1600 under preset: 'publish').
heightintegernonPer-view tile height in px (default 768; 1200 under preset: 'publish').
environmentstringnonHDRI environment override: preset ('studio', 'softbox', 'neutral', 'outdoor', 'warehouse'), a URL, or 'none' for the default three-light rig.
shadingenum: "smooth" | "flat"nonMesh shading: 'smooth' uses the kernel's vertex normals (default); 'flat' uses face normals to expose tessellation / surface wobble.
screenshot_timeout_msintegernonPlaywright screenshot deadline in milliseconds. Default leaves Playwright's 30 s in place; raise it for heavy lofts or a slow machine.
no_watermarkbooleannonSuppress the kernelCAD version watermark.
no_mechanism_checkbooleannonSkip the mechanism-truth probe for fast iteration on large assemblies; the preview reports mechanism: 'unverified'. Ignored under KERNELCAD_RENDER_STRICT=1.
base_urlstringnonAdvanced: force a specific render server (e.g. a running studio dev server) instead of the bundled static player.
sectionobjectnonCut the model with one axis-aligned section plane to inspect INTERIOR structure (wall thickness, internal pockets, whether a bore runs through) instead of only the outer shell. position is in mm along the axis (kernelCAD Z-up frame); flip keeps the +axis side (default keeps the -axis side).
explodeobjectnonPull a multi-part assembly apart for the preview. factor ≥ 0 scales spacing by part size; mode is 'mate-axis' (default, along parent mate/joint axes) or 'radial' (away from the assembly centroid). Requires the script to return assembly.model() / solvedModel().
overlayenum: "zebra" | "curvature" | "continuity"nonSurface-quality overlay: 'zebra' (reflection stripes), 'curvature' (Gaussian vertex colours), 'continuity' (edges coloured G2 green / G1 yellow / G0 orange / broken red). Built as coloured STL bands through this same pipeline.
presetenum: "default" | "publish" | "studio"nonRender look: 'default' (engineering review), 'publish' (share-ready studio product shot; one 'hero' image unless views/pose are given), or 'studio' (standard KernelCAD studio graphical render mode: studio lighting, AgX tone mapping, soft studio-gradient backdrop, 4:3 hero).
backgroundstringnonpreset 'publish' / 'studio' only: 'white' (publish default), 'light', 'dark', 'black', 'neutral', 'studio' (soft gradient, studio default), 'transparent' (PNG alpha), or '#rrggbb'.
shadowbooleannonpreset 'publish' / 'studio' only: soft contact shadow under the model (default true).
displaysarray<object>nonDisplay surfaces: real screen images seated on named part faces. Each entry names a part (or feature) and a PNG/JPEG/WebP image (path relative to the script, an absolute path, or a data:image/... URI), plus an optional face (+x/-x/+y/-y/+z/-z, default +z), region [u0, v0, u1, v1] in [0, 1], rotatio…
indicatorsarray<object>nonLive / simulated LED and indicator emissive states. Each entry tints the LED sub-meshes of a named part (or one sub-mesh) with an emissive colour, a level (0 = off, 1 = full) and an intensity multiplier, and adds a subtle local point light so lit LEDs spill colour onto nearby PCB/enclosure surfaces…
patcharray<object>nonEdit-and-test in place: use with file "project: " instead of resending the script. Each { old, new } replaces text that must occur exactly once in the saved source (no match or several matches is an error and nothing runs); edits apply in order. The tool runs on the patched source; nothing is saved…
intentstringnonThe user's request in one sentence, in the user's own words and language (e.g. 'M4 bracket for a 25 mm tube, print on Bambu A1'). Helps kernelCAD improve; leave out personal data.

import_step

Import STEP

Use this when the user wants to start from their own STEP, IGES, native OCCT BREP, STL, OBJ, PLY, 3MF, glTF or GLB file (a part they designed elsewhere, a vendor model). Give exactly one source: url (a public https direct-download link), upload (a file the user attached in ChatGPT), or content_base64 (raw bytes, small files only). Max 50 MB. The format is detected from the bytes or file name (or pass format: 'step' | 'iges' | 'brep' | 'stl' | 'obj' | 'ply' | '3mf' | 'gltf' | 'glb'). STEP, IGES and BREP produce exact B-rep solids; IGES uses OCCT's reader and the shared topology repair pass, while BREP is OCCT's native serialization. A CAD file that does not produce a valid solid fails; it is never replaced by a mesh. STL is imported as faceted geometry. OBJ, PLY, 3MF, glTF and GLB stay source meshes. Writes the file and a starter .kcad.ts into output_dir (default: a fresh temp dir), evaluates it, and returns { ok, format, model_path, script_path, code, bbox, import_report }. The report gives representation, exact_solid, mesh_fallback, repair_required, solid_count, face_count, and triangle_count. Native CAD importers fail if they do not produce an exact solid; they never substitute a mesh. Every mesh format is reported as source-mesh, not as a CAD fallback. Pass script_path as { file } to evaluate_script, add_feature, dfm_review, export and the other tools, or edit code to build on the body. Source meshes are display-only triangle geometry. Use STEP, IGES or BREP when exact CA…

ParamètreTypeRequisDescription
urlstringnonPublic https URL that downloads a .step/.stp/.igs/.iges/.brep/.brp/.stl/.obj/.ply/.3mf/.gltf/.glb file directly.
uploadobjectnonChatGPT file reference for a file the user attached.
content_base64stringnonThe file bytes, base64-encoded (small files).
file_namestringnonOriginal file name, used for format detection.
formatenum: "step" | "iges" | "brep" | "stl" | "obj" | "ply" | "3mf" | "gltf" …nonOverride format detection.
output_dirstringnonWhere to write the file and starter script. Default: a new temp directory.
namestringnonBase name for the written files. Default 'imported'.
allow_openbooleannonSTL only: accept a non-watertight mesh as an open shell.

dfm_review

Review Manufacturability

Use this when you need a manufacturability (DFM) report before printing, machining, bending (sheet metal) or injection molding a part: returns a three-state checklist, no dfmSpec(...) needed. Pass { file | code } and optional processes: 'fdm' | 'cnc' | 'sheet-metal' | 'injection-molding' (default ['fdm', 'cnc']). FDM 3D printing checks: fdm.overhangs (unsupported overhang steeper than max_overhang_deg, default 45° from vertical), fdm.bridging (bridges over max_bridge_mm, default 10), fdm.min-wall (walls under 2 × nozzle_mm, default 0.4 mm nozzle), fdm.min-hole (holes under 5 × nozzle), fdm.min-pin (warn), fdm.bed-fit (printer profile bed, default generic-fdm), fdm.bed-contact (warn). CNC 3-axis milling checks: cnc.undercuts (surface unreachable from approach_axes, default ['+z']; list several axes for several setups) and cnc.internal-corner-radius (sharp internal corners and fillets smaller than the end-mill radius, tool_diameter_mm default 6). Sheet-metal checks (sheetMetal(...).bend(...) parts; thickness read from the model; a non-sheet part returns sheet.not-sheet-metal as not-checked) on the flat pattern: sheet.min-bend-radius (inner radius ≥ min_bend_radius_ratio × t, default 1), sheet.hole-to-bend (hole edge to bend line ≥ hole_to_bend_thicknesses × t + R, default 2.5), sheet.hole-to-edge (≥ hole_to_edge_thicknesses × t, default 2), sheet.min-flange (outside of bend to edge ≥ min_flange_thicknesses × t, default 4). Injection-molding checks (the dfmSpec({ process: 'moul…

ParamètreTypeRequisDescription
filestringnonPath to a .kcad.ts script file. Hosted: `code`, `project: ` (head), or a Studio `/p/ ?version=N` link (pinned); no local files.
codestringnonInline kernelCAD script source.
processesarray<enum: "fdm" | "cnc" | "sheet-metal" | "injection-molding">nonProcesses to review. Default ['fdm', 'cnc'].
nozzle_mmnumbernonFDM nozzle diameter, mm. Default 0.4.
max_overhang_degnumbernonFDM steepest printable overhang, degrees from vertical (0 = wall, 90 = flat ceiling). Default 45.
max_bridge_mmnumbernonFDM longest unsupported bridge, mm. Default 10.
printerenum: "generic-fdm" | "bambu-a1-mini" | "bambu-a1" | "bambu-p1s" | "bambu-p1p" | "bambu-x1c" | "bambu-x1e" | "bambu-h2d" …nonFDM printer profile id for the bed-fit check. Default 'generic-fdm'.
build_directionenum: "+x" | "-x" | "+y" | "-y" | "+z" | "-z"nonFDM part-local axis pointing up from the bed. Default '+z'.
tool_diameter_mmnumbernonCNC end-mill diameter, mm. Default 6.
approach_axesarray<enum: "+x" | "-x" | "+y" | "-y" | "+z" | "-z">nonCNC tool approach directions, one per setup (the tool comes from that side). Default ['+z'].
max_undercut_area_mm2numbernonCNC unreachable area tolerated before cnc.undercuts fails, mm². Default 1.
min_bend_radius_rationumbernonSheet metal: inner bend radius must be ≥ this × thickness. Default 1.
hole_to_bend_thicknessesnumbernonSheet metal: hole edge to bend line must be ≥ this × thickness + bend radius. Default 2.5.
hole_to_edge_thicknessesnumbernonSheet metal: hole edge to blank edge must be ≥ this × thickness. Default 2.
min_flange_thicknessesnumbernonSheet metal: flange length from the outside of the bend must be ≥ this × thickness. Default 4.
pull_directionenum: "+x" | "-x" | "+y" | "-y" | "+z" | "-z"nonInjection molding: part-local mold-opening axis (the two halves separate along ±this). Default '+z'.
min_draft_degnumbernonInjection molding: minimum draft angle to the pull direction, degrees. Default 1.
min_wall_mmnumbernonInjection molding: thinnest allowed wall, mm. Default 1.
max_wall_mmnumbernonInjection molding: thickest allowed section, mm. Default 4.
max_wall_rationumbernonInjection molding: thickest / thinnest wall above this warns (non-uniform walls warp and sink). Default 2.5.
min_radius_mmnumbernonInjection molding: smallest internal corner radius before mold.sharp-internal-corners warns, mm. Default 0.5.

price_part

Price Part

Start or read the real price for making the part. Cheap. Returns status "ready" with estimate_cents and summary, or "pricing" while the makers are asked (call again in a few seconds). Creates nothing and charges nothing.

ParamètreTypeRequisDescription
slugstringnonSaved project slug (from open_in_studio or a /p/ link). Send slug or source, not both.
sourcestringnonThe kernelCAD script, when the part is not saved. Send slug or source, not both.
methodobjectnonHow the part should be made. Propose it from the user's words and the part (flat sheet: laser_cut or sheetmetal; metal block: cnc; plastic: fdm_print or resin_print).
wait_for_pricebooleannonFor polling clients: false returns pricing immediately rather than waiting for the quote.

order_part

Order Part

Order the part made: creates the production request and returns a pay_url for the user. Propose the manufacturing method from the user's words and the part, pass it as method with a one-line reason. The price is the real maker price; never invent or send one. Tell the user the card is only held, and a person confirms the final price before charging. If the result is status "pricing", the price is still being worked out: call again in a few seconds.

ParamètreTypeRequisDescription
slugstringnonSaved project slug (from open_in_studio or a /p/ link). Send slug or source, not both.
sourcestringnonThe kernelCAD script, when the part is not saved. Send slug or source, not both.
methodobjectnonHow the part should be made. Propose it from the user's words and the part (flat sheet: laser_cut or sheetmetal; metal block: cnc; plastic: fdm_print or resin_print).
wait_for_pricebooleannonFor polling clients: false returns pricing immediately rather than waiting for the quote.

hardware_pack

Build with LabWired and KernelCAD

Plan one device across KernelCAD and LabWired. Read-only: returns companion tool names, project/revision links, the electronics-to-mechanics handoff, and a device review link for API clients. The viewer uses Order as its only purchase action. Use for robots, enclosures, PCB mounts or any hardware with electronics and mechanical parts. Optional slug resolves an accessible saved KernelCAD project; pass version to pin an immutable CAD revision, otherwise its current revision is used. Optional labwired_project/labwired_revision preserves its electronics reference. No purchase, payment, account linking, source upload or companion authorization is performed.

ParamètreTypeRequisDescription
slugstringnonSaved KernelCAD project slug; current revision is read with existing project permissions.
versionintegernonImmutable KernelCAD revision to preserve. Requires slug; omitted means current revision.
labwired_projectstringnonLabWired project id returned by LabWired; a reference, not authorization.
labwired_sharestringnonLabWired share/lab id for an unsaved lab; use this or labwired_project.
labwired_revisionstringnonLabWired content hash/revision returned by LabWired.
labwired_pcbstringnonLabWired PCB board id, including PCB-only handoffs.
labwired_pcb_revisionintegernonPCB revision paired with labwired_pcb.

search_tools

Search Tools

Find kernelCAD tools that are not in the advertised list. Returns matching tool definitions (name, title, description, inputSchema); run one with call_tool({ name, arguments }). Example queries: "assembly mate", "nurbs surface", "stress analysis", "find a bearing part". Tools available this way: review_paint_peek_latest, get_latest_render, mesh_summary, report_need, netlist_export, netlist_query, erc_run, search_assets, get_asset, get_asset_pack, diff_scripts, why_did_this_fail, set_param, add_feature, add_surface, add_curve, add_path_segment, trace_from_image, add_variable_sweep, add_text, project_curve, add_pattern_feature, remove_feature, query, lookup_diagnostics, find_part, fetch_part, solve_sketch, add_constraint, add_part, add_connector, add_mate, add_workspace_target, set_scene_return, solve_mates, flatten_pattern, evaluate_sdf, capture_animation, resolve_assumptions, run_fea, fea_summary, repair_script, sweep_tolerance, diff_geometry, drawing_to_cad, mesh_to_features, execute_cookbook, fab_pack, ray_pick, inspect_nurbs, fit_plane, mesh_boolean, explode_view, apply_surface_blend, write_bom, blockout_assembly, estimate_assembly_manufacturing, request_assembly_quote.

ParamètreTypeRequisDescription
querystringouiKeywords describing the capability you need (e.g. "assembly mate", "nurbs surface", "export stl").
limitintegernonMaximum number of tools to return (default 8).

call_tool

Run Tool

Run any kernelCAD tool by name. Use it when a tool description or a tool result tells you to call a tool that is not in your tool list (for example repair_script, execute_cookbook, trace_from_image or run_fea), and for tools found with search_tools. Pass the tool name and its arguments object as that tool's inputSchema describes; search_tools returns the schema. The result is the tool's own result.

ParamètreTypeRequisDescription
namestringouiTool name, as returned by search_tools.
argumentsobjectnonArguments for that tool (its inputSchema).

Compatibilité clients

Selon les transports que chaque client déclare accepter dans sa documentation officielle ; ce n’est pas un essai réel dans le client.

ClientTransports documentésCe serveurSource
Claude Codestdio Streamable HTTP SSEtransport acceptédoc
Claude (claude.ai, Claude Desktop, Cowork)stdio Streamable HTTP SSEtransport acceptédoc
ChatGPT (serveurs MCP personnalisés / plugins)Streamable HTTP SSEtransport acceptédoc
Cursorstdio Streamable HTTP SSEtransport acceptédoc
VS Code (GitHub Copilot)stdio Streamable HTTP SSEtransport acceptédoc
Windsurf (documentation redirigée vers Devin Local / Devin CLI)stdio Streamable HTTP SSEtransport acceptédoc
Gemini CLIstdio Streamable HTTP SSEtransport acceptédoc
OpenAI Codex (CLI, extension IDE, app)stdio Streamable HTTPtransport acceptédoc

Configs prêtes à copier

Adresse distante utilisée : https://mcp.kernelcad.com/mcp. Formats repris de la documentation de chaque client.

Claude Code
claude mcp add --transport http kernelcad https://mcp.kernelcad.com/mcp
Claude (claude.ai, Claude Desktop, Cowork)
Customize > Connectors > + Add > Add custom connector ; Name : kernelcad ; URL : https://mcp.kernelcad.com/mcp
ChatGPT (serveurs MCP personnalisés / plugins)
chatgpt.com/plugins > + > Add custom MCP server ; Name : kernelcad ; Server URL : https://mcp.kernelcad.com/mcp ; Create as a plugin
Cursor.cursor/mcp.json (projet) ou ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "kernelcad": {
      "url": "https://mcp.kernelcad.com/mcp"
    }
  }
}
VS Code (GitHub Copilot).mcp.json à la racine du workspace, ou ~/.copilot/mcp-config.json ($COPILOT_HOME/mcp-config.json)
{
  "mcpServers": {
    "kernelcad": {
      "type": "http",
      "url": "https://mcp.kernelcad.com/mcp",
      "tools": ["*"]
    }
  }
}
Windsurf (documentation redirigée vers Devin Local / Devin CLI).devin/mcp_config.json (projet), .devin/mcp_config.local.json (local), ~/.config/devin/mcp_config.json (utilisateur)
{
  "mcpServers": {
    "kernelcad": {
      "url": "https://mcp.kernelcad.com/mcp"
    }
  }
}
Gemini CLI~/.gemini/settings.json (utilisateur) ou .gemini/settings.json (projet)
{
  "mcpServers": {
    "kernelcad": {
      "httpUrl": "https://mcp.kernelcad.com/mcp"
    }
  }
}
OpenAI Codex (CLI, extension IDE, app)~/.codex/config.toml (ou .codex/config.toml pour un projet de confiance)
[mcp_servers.kernelcad]
url = "https://mcp.kernelcad.com/mcp"

Source : Registre officiel MCP · relevé le 29 nov. 2026. L’Atlas n’ajoute aucune donnée qui ne vienne de cette source ou de ses propres tests.