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
Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.
[](https://latlas.dev/mcp/com.kernelcad/kernelcad)<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
| Date | Résultat | Réponse | Outils |
|---|---|---|---|
| 28 nov. 2026, 09:11 | OK | 598 ms | 22 |
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ètre | Type | Requis | Description |
|---|---|---|---|
| code | string | non | The 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. |
| title | string | non | Optional human-readable title for the model (shown in Studio). Defaults to "Model from Claude". |
| parameters | array<object> | non | Optional list of the model's editable parameters, so Studio can render parameter controls. Each item is one control derived from the .kcad params. |
| project | string | non | Slug 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. |
| slug | string | non | Older name for `project`. Use `project`. |
| new_project | boolean | non | Pass 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. |
| privacy | enum: "private" | "public_unlisted" | non | Creation 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_version | integer | non | Update 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_design | boolean | non | Pass 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_electronics | boolean | non | Agent 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_preview | boolean | non | Default 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_profile | enum: "automotive" | non | Hard 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_bbox | object | non | Body AABB { min:[x,y,z], max:[x,y,z] } mm — for likeness_profile gate when no session attest. |
| cabin_bbox | object | non | Optional cabin AABB for likeness gate. |
| wheels | array<object> | non | Wheel centres + radii for likeness gate [{ center:[x,y,z], radius }]. |
| still_verdicts | array<object> | non | Agent still checklist for likeness gate [{ code, passed, finding, view? }]. |
| require_stills | boolean | non | Forwarded to body-likeness gate (default true). |
| attachments | array<object> | non | Complementary project files referenced by relative path from the .kcad source. |
| anon_token | string | non | Anonymous 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. |
| intent | string | non | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| slug | string | non | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| slug | string | oui | Project slug returned by open_in_studio. |
| version | integer | oui | Positive 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ètre | Type | Requis | Description |
|---|---|---|---|
| slug | string | oui | Project slug from open_in_studio/get_project. |
| version | integer | non | Exact 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ètre | Type | Requis | Description |
|---|---|---|---|
| purpose | string | non | Optional 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ètre | Type | Requis | Description |
|---|---|---|---|
| section | string | non | Section id from the index (e.g. 'top-level-functions'), or 'all' for the full skill. |
| topic | string | non | Alias of section; also accepts a loose title such as 'materials' or 'cli commands'. |
| query | string | non | Keywords 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ètre | Type | Requis | Description |
|---|---|---|---|
| file | string | non | Path to a .kcad.ts script file. Hosted: `code`, `project: ` (head), or a Studio `/p/ ?version=N` link (pinned); no local files. |
| code | string | non | Inline kernelCAD script source. |
| dry_run | boolean | non | Fast validation only: skip solid build, DFM gates, and meshing. Does not set or clear the active session. |
| kernel | enum: "occt" | "smlib" | non | Solid-modeling kernel. Default 'occt' (OpenCascade); opt-in 'smlib' uses guarded candidates with explicit OCCT fallback diagnostics. |
| skip_mechanism_check | boolean | non | Opt 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… |
| baseline | array<object> | non | The `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`. |
| requirements | array<object> | non | Call-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 |… |
| patch | array<object> | non | Edit-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… |
| intent | string | non | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| of | enum: "assembly" | "robot" | "step" | "brep" | "shape" | "mass" | "features" | "assemblies" … | oui | Which facts to read. |
| file | string | non | Path 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… |
| code | string | non | Inline kernelCAD script source. |
| assembly | string | non | of:'assembly'|'robot'|'bom' — assembly name; defaults to the first captured assembly. |
| feature_id | string | non | of:'shape'|'mass'|'topology'|'edges'|'faces'|'face-edges'|'face-labels' — FeatureId; defaults to the last returned shape. |
| density | number | non | of:'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_axis | object | non | of:'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_name | enum: "top" | "bottom" | "left" | "right" | "front" | "back" | non | of:'face-edges' — canonical face name (required for that subject). |
| query | object | non | of:'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… |
| category | string | non | of:'part-families' — optional top-level category to filter families by. |
| plane | string | object | non | of:'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`. |
| at | number | non | of:'section' — single slice position along `axis` (mm). |
| axis | enum: "x" | "y" | "z" | non | of:'section' — normal axis for `at` / `stack` (default 'z'). |
| stack | object | non | of:'section' — dense scan: `count` slices evenly spaced from `from` to `to` along `axis`; response reports minAreaIndex/minAreaPosition. |
| edges | object | array | string | non | of:'continuity' — optional EdgeQuery or @kc[...] ref(s) limiting which shared edges are sampled. |
| faces | object | array | string | non | of:'curvature' — optional FaceQuery or @kc[...] ref(s) limiting which faces are sampled. |
| spike_factor | number | non | of:'curvature' — spike sensitivity as a multiple of the face's Gaussian stddev (default 6). |
| patch | array<object> | non | Edit-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ètre | Type | Requis | Description |
|---|---|---|---|
| check | enum: "assembly" | "urdf" | "dfm" | "dfm-preflight" | "swept-collision" | "joint-range" | "reachable" | "mounting-holes" … | oui | Which verification to run. Omit only when passing call-time `requirements`; then the requirements ledger is the verification. |
| requirements | array<object> | non | Call-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… |
| file | string | non | Path 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. |
| code | string | non | Inline kernelCAD script source (same checks as `file`). |
| feature_id | string | non | check:'geometry-quality' — body feature to measure; defaults to script return. check:'edge-radius' — lowered feature; default the returned model. |
| tiny_face_area_mm2 | number | non | check:'geometry-quality' — flag faces strictly below this absolute area; zero disables. |
| tiny_face_relative | number | non | check:'geometry-quality' — fraction of total BREP surface area, ORed with absolute threshold. |
| short_edge_length_mm | number | non | check:'geometry-quality' — flag edges strictly below this length; zero disables. |
| symmetry_tolerance_mm | number | non | check:'geometry-quality' — maximum sampled mirror-to-mesh distance, mm. |
| mesh_deflection_mm | number | non | check:'geometry-quality' — absolute mesh deflection, defaults to tolerance/4; must be <= tolerance/2. |
| asserted_plane | object | non | check:'geometry-quality' — optional required mirror plane in model coordinates; normal is normalized and must be nonzero. |
| assembly | string | non | Assembly name; defaults to the first captured assembly. |
| dynamics | object | non | check:'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_mm | number | non | check:'edge-radius' — minimum fillet radius in mm (does not imply sharp-edge prohibition). |
| max_radius_mm | number | non | check:'edge-radius' — maximum fillet radius in mm; must be >= min_radius_mm. |
| require_edge_break | enum: "external" | "internal" | "all" | non | check:'edge-radius' — prohibit sharp convex/external, concave/internal, or all edges. |
| parts | array<string> | non | check:'edge-radius' — explicit assembly part names (default all). |
| edges | object | array | string | non | check:'edge-radius' — EdgeQuery or @kc[...] edge ref(s); intersected with faces. Query near sorts, it does not filter. |
| faces | object | array | string | non | check:'edge-radius' — FaceQuery or @kc[...] face ref(s); includes incident edges and fillets on selected faces. |
| fasteners | array<object> | non | check:'fastener-installation' — explicit named stations; empty means no coverage. |
| tolerance_mm | number | non | check:'fastener-installation' — linear tolerance, default .05 mm. |
| angle_tolerance_deg | number | non | check:'fastener-installation' — axis tilt tolerance, default 1 degree. |
| urdf_path | string | non | check:'urdf' — path to the .urdf file. |
| dxf | string | non | check:'dfm-preflight' — path to a DXF file. |
| vendor | string | non | check:'dfm-preflight' — vendor SKU (required for that check). |
| material | string | non | check:'dfm-preflight' — material SKU (required for that check). |
| thickness_in | number | non | check:'dfm-preflight' — material thickness in inches. |
| thickness_mm | number | non | check:'dfm-preflight' — material thickness in millimeters. |
| service | enum: "laser" | "cnc-router" | "waterjet" | "bending" | non | check:'dfm-preflight' — service. |
| refresh_catalog | boolean | non | check:'dfm-preflight' — force vendor catalog refresh. |
| directions | array<array<number>> | non | check:'assembly-path' — additional nonzero world-space removal vectors; normalized and deduplicated. |
| disassembly_order | boolean | non | check:'assembly-path' — iteratively remove freed parts and return removalOrder or stuckParts. |
| work_budget | number | non | check:'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. |
| sequence | boolean | non | check:'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_fasteners | array<string> | non | check:'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… |
| stability | boolean | non | check:'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;… |
| fixtures | array<string> | non | check:'assembly-path' with stability:true — declared base/fixture part names, stable from step 1. Default: the lowest part(s) along gravity. |
| contact_tolerance_mm | number | non | check:'assembly-path' with stability:true — surface distance at or below which parts count as touching (default 0.05 mm). |
| joint | string | non | check:'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. |
| range | array<number> | non | check:'swept-collision' — [lower, upper, step] in joint-native units. |
| collision_tolerance_mm3 | number | non | check:'swept-collision' — BREP intersection volume tolerance (mm^3). |
| clearance_mm | number | non | check:'joint-range' — surface clearance the suggested stop protects, mm (default 0.3). |
| search | array<number> | non | check:'joint-range' — [min, max] search window in the joint's units. Overrides authored limits. A joint with no finite window is unknown, not clear. |
| step | number | non | check:'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. |
| resolution | number | non | check:'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_budget | number | non | check:'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_link | string | non | check:'reachable' — end-effector part name (required for that check). |
| target_position | array<number> | non | check:'reachable' — target [x, y, z] mm (world frame). |
| target_orientation | array<number> | non | check:'reachable' — target XYZ Euler angles in radians. |
| position_tolerance_mm | number | non | check:'reachable' — position tolerance in mm. |
| orientation_tolerance_rad | number | non | check:'reachable' — orientation tolerance in radians. |
| prefer_solver | enum: "analytical" | "numeric" | "auto" | non | check:'reachable' — force the IK path ('auto' default). |
| max_iterations | number | non | check:'reachable' — numeric-path iteration cap. |
| seed | object | non | check:'reachable' — numeric IK seed pose (joint name -> deg/mm). |
| loads | object | non | check:'load-capacity' — partName -> { force?: [Fx,Fy,Fz] N, torque?: [Tx,Ty,Tz] N*m }. |
| materials | object | non | check:'load-capacity' — partName -> material declaration. |
| mode | enum: "stub" | "beam" | "fea" | non | check:'load-capacity' — 'beam' (default), 'stub', or 'fea' (solve the script's feaStudy: CalculiX + gmsh when installed, else the in-process voxel estimate). |
| safety_factor_threshold | number | non | check:'load-capacity' — pass/fail safety-factor floor (default 1.5; mode 'fea': the study's minSafetyFactor when declared). |
| study | string | non | check:'load-capacity' mode:'fea' — feaStudy name (default: the last declared one). |
| mesh_size | number | non | check:'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ètre | Type | Requis | Description |
|---|---|---|---|
| query | string | non | API symbol or plain-language terms; matching entries retain full descriptions. |
| section | enum: "globals" | "shapeMethods" | "shapeListMethods" | "sketchMethods" | "pathBuilderMethods" | "paramRefMethods" | "sceneMethods" | "scenePartProperties" … | non | Restrict results to one section from the returned section index. |
| limit | integer | non | Optional entries per page; omit to return every match. |
| offset | integer | non | Continue from next_offset with the same query and section. |
| intent | string | non | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| target | enum: "model" | "part" | non | Which exporter to run: 'model' (whole-script geometry to one file) or 'part' (per-part STLs from a solved assembly). |
| file | string | non | Path to a .kcad.ts script file. Hosted: `code`, `project: ` (head), or a Studio `/p/ ?version=N` link (pinned); no local files. |
| code | string | non | Inline kernelCAD script source. |
| output_path | string | non | Destination 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. |
| format | enum: "stl" | "step" | "dxf" | "3mf" | "glb" | "asset-pack" | "obj" | "ply" … | non | target:'model' — output file format (required for that target). |
| feature_id | string | non | target:'model' — optional FeatureId to export; defaults to last. |
| options | object | non | target:'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?:… |
| part | string | non | target:'part' — part name for single-part export, or 'all'. |
| output_dir | string | non | target:'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_verify | boolean | non | Skip the default STL/STEP validity and watertightness gates. |
| quality_gate | enum: "warn" | "block" | "off" | non | Geometry-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_mm2 | number | non | Quality gate threshold: faces with BREP area below this (mm²) are tiny. Default 0.01; 0 disables. |
| short_edge_length_mm | number | non | Quality gate threshold: edges shorter than this (mm) are short. Default 0.1; 0 disables. |
| job_id | string | non | Poll an existing hosted export job using the job_id returned by export.deferred. Pass only job_id to retrieve its status or completed downloads. |
| intent | string | non | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| query | string | non | Natural-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. |
| id | string | non | Exact snippet id as the skills cite it (e.g. "clearance-hole-through-plate"); returns that snippet. An unknown id is ranked as a query. |
| k | number | non | Max snippets to return. Default 3, max 5. |
| intent | string | non | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| file | string | non | Path to a .kcad.ts script file. Hosted: `code`, `project: ` (head), or a Studio `/p/ ?version=N` link (pinned); no local files. |
| code | string | non | Inline kernelCAD script source. |
| assembly | string | non | Assembly name; defaults to the first captured assembly. |
| design_goal | string | non | Original user design prompt or goal. Included in suggestedRepairPrompt so topology-redesign repairs restart from the intended physical design instead of local coordinate nudges. |
| preserve_interfaces | array<string> | non | External mates, connector refs, part names, or behavioral interfaces the repair agent must preserve during redesign. |
| include_pose_envelope | boolean | non | Whether to sample declared mate limits. Default true. |
| include_interference | boolean | non | Whether sampled poses run BREP interference checks. Default true. |
| mechanism_sweep_budget | integer | non | Maximum 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_case | boolean | non | When true, articulated assemblies must declare arm.physicalUseCase(...) evidence: loads, contacts, stable parts, and actuator limits. |
| physical_use_case_level | enum: "reachability" | "statics" | "reactions" | non | Escalating 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_mate | integer | non | Samples 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_mate | integer | non | Pose-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. |
| combinatorial | boolean | non | Sample 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_mm3 | number | non | Interference volume threshold in mm^3. Default 0.01. |
| time_budget_ms | number | non | Wall-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_connectors | array<string> | non | Optional connector refs such as ["gripper-plate.tool-tip"] to limit connector workspace reporting. |
| mechanismSweepBudget | integer | non | Maximum 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ètre | Type | Requis | Description |
|---|---|---|---|
| goal | string | oui | Original user design goal. Fed into every review_cad repair prompt. |
| attempts | array<object> | oui | Ordered 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. |
| assembly | string | non | |
| preserve_interfaces | array<string> | non | External mates, connector refs, part names, or behavioral interfaces the agent must preserve between attempts. |
| include_pose_envelope | boolean | non | Forwarded to review_cad. Default true. |
| include_interference | boolean | non | Forwarded to review_cad. Default true. |
| mechanism_sweep_budget | integer | non | Maximum 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_mate | integer | non | Pose-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. |
| combinatorial | boolean | non | Sample 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_mm3 | number | non | Forwarded to review_cad. |
| track_connectors | array<string> | non | Connector refs to track across sampled poses. |
| stop_on_pass | boolean | non | Stop after the first attempt that is functional and passes the quality gate. Default true. |
| consensus | boolean | non | Best-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_revise | boolean | non | When 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_review | boolean | non | Require screenshot-backed visual_review with structured checks before accepting an attempt. Default true; set false only for explicit non-visual batch checks. |
| require_physical_acceptance | boolean | non | Require 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_warnings | array<string> | non | Warning diagnostic codes the original prompt explicitly allows. Other review warnings keep the loop iterating even if review_cad is functionally ok. |
| requirements | array<object> | non | Call-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_path | string | non | Optional JSON path to write a Studio-compatible build record. |
| record_title | string | non | Optional title for the build record. |
| mechanismSweepBudget | integer | non | Maximum 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ètre | Type | Requis | Description |
|---|---|---|---|
| code | string | non | Inline kernelCAD script source. Mutually exclusive with file. Relative imports resolve against a temp dir — use file for scripts with relative lib.fromSTEP(...) imports. |
| file | string | non | Path 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. |
| views | array<enum: "front" | "right" | "top" | "iso"> | non | Canonical views to render as an array, e.g. ["iso"] or ["front","top"] (default: all four). Fewer views = faster. |
| sheet | boolean | non | Also 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. |
| pose | string | non | Extra arbitrary camera pose ' , ' in degrees, e.g. '30,20'. |
| focus | array<string> | non | Show only matching feature ids / assembly part names. Mutually exclusive with hide. |
| hide | array<string> | non | Hide matching feature ids / assembly part names. Mutually exclusive with focus. |
| out_dir | string | non | Directory for the PNGs (created if missing). Default: a fresh temp session dir. |
| width | integer | non | Per-view tile width in px (default 768; 1600 under preset: 'publish'). |
| height | integer | non | Per-view tile height in px (default 768; 1200 under preset: 'publish'). |
| environment | string | non | HDRI environment override: preset ('studio', 'softbox', 'neutral', 'outdoor', 'warehouse'), a URL, or 'none' for the default three-light rig. |
| shading | enum: "smooth" | "flat" | non | Mesh shading: 'smooth' uses the kernel's vertex normals (default); 'flat' uses face normals to expose tessellation / surface wobble. |
| screenshot_timeout_ms | integer | non | Playwright screenshot deadline in milliseconds. Default leaves Playwright's 30 s in place; raise it for heavy lofts or a slow machine. |
| no_watermark | boolean | non | Suppress the kernelCAD version watermark. |
| no_mechanism_check | boolean | non | Skip the mechanism-truth probe for fast iteration on large assemblies; the preview reports mechanism: 'unverified'. Ignored under KERNELCAD_RENDER_STRICT=1. |
| base_url | string | non | Advanced: force a specific render server (e.g. a running studio dev server) instead of the bundled static player. |
| section | object | non | Cut 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). |
| explode | object | non | Pull 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(). |
| overlay | enum: "zebra" | "curvature" | "continuity" | non | Surface-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. |
| preset | enum: "default" | "publish" | "studio" | non | Render 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). |
| background | string | non | preset 'publish' / 'studio' only: 'white' (publish default), 'light', 'dark', 'black', 'neutral', 'studio' (soft gradient, studio default), 'transparent' (PNG alpha), or '#rrggbb'. |
| shadow | boolean | non | preset 'publish' / 'studio' only: soft contact shadow under the model (default true). |
| displays | array<object> | non | Display 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… |
| indicators | array<object> | non | Live / 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… |
| patch | array<object> | non | Edit-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… |
| intent | string | non | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| url | string | non | Public https URL that downloads a .step/.stp/.igs/.iges/.brep/.brp/.stl/.obj/.ply/.3mf/.gltf/.glb file directly. |
| upload | object | non | ChatGPT file reference for a file the user attached. |
| content_base64 | string | non | The file bytes, base64-encoded (small files). |
| file_name | string | non | Original file name, used for format detection. |
| format | enum: "step" | "iges" | "brep" | "stl" | "obj" | "ply" | "3mf" | "gltf" … | non | Override format detection. |
| output_dir | string | non | Where to write the file and starter script. Default: a new temp directory. |
| name | string | non | Base name for the written files. Default 'imported'. |
| allow_open | boolean | non | STL 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ètre | Type | Requis | Description |
|---|---|---|---|
| file | string | non | Path to a .kcad.ts script file. Hosted: `code`, `project: ` (head), or a Studio `/p/ ?version=N` link (pinned); no local files. |
| code | string | non | Inline kernelCAD script source. |
| processes | array<enum: "fdm" | "cnc" | "sheet-metal" | "injection-molding"> | non | Processes to review. Default ['fdm', 'cnc']. |
| nozzle_mm | number | non | FDM nozzle diameter, mm. Default 0.4. |
| max_overhang_deg | number | non | FDM steepest printable overhang, degrees from vertical (0 = wall, 90 = flat ceiling). Default 45. |
| max_bridge_mm | number | non | FDM longest unsupported bridge, mm. Default 10. |
| printer | enum: "generic-fdm" | "bambu-a1-mini" | "bambu-a1" | "bambu-p1s" | "bambu-p1p" | "bambu-x1c" | "bambu-x1e" | "bambu-h2d" … | non | FDM printer profile id for the bed-fit check. Default 'generic-fdm'. |
| build_direction | enum: "+x" | "-x" | "+y" | "-y" | "+z" | "-z" | non | FDM part-local axis pointing up from the bed. Default '+z'. |
| tool_diameter_mm | number | non | CNC end-mill diameter, mm. Default 6. |
| approach_axes | array<enum: "+x" | "-x" | "+y" | "-y" | "+z" | "-z"> | non | CNC tool approach directions, one per setup (the tool comes from that side). Default ['+z']. |
| max_undercut_area_mm2 | number | non | CNC unreachable area tolerated before cnc.undercuts fails, mm². Default 1. |
| min_bend_radius_ratio | number | non | Sheet metal: inner bend radius must be ≥ this × thickness. Default 1. |
| hole_to_bend_thicknesses | number | non | Sheet metal: hole edge to bend line must be ≥ this × thickness + bend radius. Default 2.5. |
| hole_to_edge_thicknesses | number | non | Sheet metal: hole edge to blank edge must be ≥ this × thickness. Default 2. |
| min_flange_thicknesses | number | non | Sheet metal: flange length from the outside of the bend must be ≥ this × thickness. Default 4. |
| pull_direction | enum: "+x" | "-x" | "+y" | "-y" | "+z" | "-z" | non | Injection molding: part-local mold-opening axis (the two halves separate along ±this). Default '+z'. |
| min_draft_deg | number | non | Injection molding: minimum draft angle to the pull direction, degrees. Default 1. |
| min_wall_mm | number | non | Injection molding: thinnest allowed wall, mm. Default 1. |
| max_wall_mm | number | non | Injection molding: thickest allowed section, mm. Default 4. |
| max_wall_ratio | number | non | Injection molding: thickest / thinnest wall above this warns (non-uniform walls warp and sink). Default 2.5. |
| min_radius_mm | number | non | Injection 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ètre | Type | Requis | Description |
|---|---|---|---|
| slug | string | non | Saved project slug (from open_in_studio or a /p/ link). Send slug or source, not both. |
| source | string | non | The kernelCAD script, when the part is not saved. Send slug or source, not both. |
| method | object | non | How 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_price | boolean | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| slug | string | non | Saved project slug (from open_in_studio or a /p/ link). Send slug or source, not both. |
| source | string | non | The kernelCAD script, when the part is not saved. Send slug or source, not both. |
| method | object | non | How 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_price | boolean | non | For 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ètre | Type | Requis | Description |
|---|---|---|---|
| slug | string | non | Saved KernelCAD project slug; current revision is read with existing project permissions. |
| version | integer | non | Immutable KernelCAD revision to preserve. Requires slug; omitted means current revision. |
| labwired_project | string | non | LabWired project id returned by LabWired; a reference, not authorization. |
| labwired_share | string | non | LabWired share/lab id for an unsaved lab; use this or labwired_project. |
| labwired_revision | string | non | LabWired content hash/revision returned by LabWired. |
| labwired_pcb | string | non | LabWired PCB board id, including PCB-only handoffs. |
| labwired_pcb_revision | integer | non | PCB 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ètre | Type | Requis | Description |
|---|---|---|---|
| query | string | oui | Keywords describing the capability you need (e.g. "assembly mate", "nurbs surface", "export stl"). |
| limit | integer | non | Maximum 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ètre | Type | Requis | Description |
|---|---|---|---|
| name | string | oui | Tool name, as returned by search_tools. |
| arguments | object | non | Arguments 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.
| Client | Transports documentés | Ce serveur | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepté | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepté | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepté | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepté | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepté | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepté | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepté | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepté | doc |
Configs prêtes à copier
Adresse distante utilisée : https://mcp.kernelcad.com/mcp. Formats repris de la documentation de chaque client.
claude mcp add --transport http kernelcad https://mcp.kernelcad.com/mcpCustomize > Connectors > + Add > Add custom connector ; Name : kernelcad ; URL : https://mcp.kernelcad.com/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : kernelcad ; Server URL : https://mcp.kernelcad.com/mcp ; Create as a plugin{
"mcpServers": {
"kernelcad": {
"url": "https://mcp.kernelcad.com/mcp"
}
}
}{
"mcpServers": {
"kernelcad": {
"type": "http",
"url": "https://mcp.kernelcad.com/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"kernelcad": {
"url": "https://mcp.kernelcad.com/mcp"
}
}
}{
"mcpServers": {
"kernelcad": {
"httpUrl": "https://mcp.kernelcad.com/mcp"
}
}
}[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.