{"data":{"name":"com.kernelcad/kernelcad","title":"kernelCAD","description":"CAD in ChatGPT and Claude: editable parts, STEP/STL/drawings, in-chat 3D, automatic checks.","version":"0.17.1","websiteUrl":"https://kernelcad.com/","repositoryUrl":"https://github.com/w1ne/kernelCAD-web","remotes":[{"type":"streamable-http","url":"https://mcp.kernelcad.com/mcp"}],"packages":[],"status":"active","isLatest":true,"publishedAt":"2026-10-27T07:43:16.033Z","updatedAt":"2026-10-27T07:43:16.033Z","source":"official-registry","verification":"official","confidence":100,"stars":null,"sources":[{"source":"official-registry","sourceId":"com.kernelcad/kernelcad","verification":"official","confidence":100,"stars":null,"updatedAt":"2026-10-27T07:43:16.033Z","title":"kernelCAD","description":"CAD in ChatGPT and Claude: editable parts, STEP/STL/drawings, in-chat 3D, automatic checks.","websiteUrl":"https://kernelcad.com/","repositoryUrl":"https://github.com/w1ne/kernelCAD-web"}],"toolIndex":{"tools":[{"serverName":"com.kernelcad/kernelcad","endpointFingerprint":"08479da53eeb876bfe1b5e67eaffbda58e9871b6a4d2b2bfe5774ae377a19246","name":"add_connector","title":"Add Connector","description":"Use this when you need to add a mate connector to a part. Durably insert `<partBinding>.connector(name, { type, origin, axis?, normal? })` before the final top-level return. Use the part binding returned by add_part. Returns modified source plus diagnostics from re-evaluation. Side-effect-free.","inputSchema":{"type":"object","properties":{"code":{"type":"string","description":"The .kcad.ts source code."},"part_binding":{"type":"string","description":"JS identifier bound to an AssemblyPartRef, e.g. \"basePart\"."},"name":{"type":"string","description":"Connector name unique within the part."},"type":{"type":"string","enum":["frame","axis","planar","ball"]},"origin":{"description":"Origin as [x, y, z] shorthand, or a structured ConnectorOrigin.","oneOf":[{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"[x, y, z] shorthand."},{"type":"object","description":"Explicit numeric origin.","properties":{"kind":{"type":"string","enum":["vec3"]},"value":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3}},"required":["kind","value"]},{"type":"object","description":"Topology-derived origin.","properties":{"kind":{"type":"string","enum":["topology"]},"query":{"type":"object","properties":{"kind":{"type":"string","enum":["face-center","face-normal","vertex","edge-axis","hole-axis"]},"name":{"type":"string"}},"required":["kind","name"]}},"required":["kind","query"]}]},"axis":{"type":"array","items":{"type":"number"},"description":"Optional [x, y, z] axis."},"normal":{"type":"array","items":{"type":"number"},"description":"Optional [x, y, z] normal."}},"required":["code","part_binding","name","type","origin"]},"annotations":{"title":"Add Connector","readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"definitionHash":"4562dbc6385ff28398ac2924f6ec5eb4c57424e2ef8f12c0054e6cf35a4da584","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-15T23:46:48.616Z","metadataTrust":"untrusted"},{"serverName":"com.kernelcad/kernelcad","endpointFingerprint":"08479da53eeb876bfe1b5e67eaffbda58e9871b6a4d2b2bfe5774ae377a19246","name":"add_constraint","title":"Add Constraint","description":"Use this when you need to add a sketch constraint to a list. Append one validated sketch constraint to a constraint list. Side-effect-free: pass { constraints, constraint } and receive the updated list.","inputSchema":{"type":"object","properties":{"constraints":{"type":"array","description":"Existing constraint list to append to (omit for an empty list).","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["COINCIDENT","DISTANCE","HORIZONTAL","VERTICAL","PARALLEL","PERPENDICULAR","EQUAL_LENGTH","TANGENT","RADIUS","ANGLE","CONCENTRIC","SYMMETRIC"]},"entities":{"type":"array","items":{"type":"string"}},"value":{"type":"number"}},"required":["id","type","entities"]}},"constraint":{"type":"object","description":"The constraint to append.","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["COINCIDENT","DISTANCE","HORIZONTAL","VERTICAL","PARALLEL","PERPENDICULAR","EQUAL_LENGTH","TANGENT","RADIUS","ANGLE","CONCENTRIC","SYMMETRIC"]},"entities":{"type":"array","items":{"type":"string"},"description":"Ids of the entities the constraint relates."},"value":{"type":"number","description":"Required for DISTANCE, RADIUS, and ANGLE."}},"required":["id","type","entities"]}},"required":["constraint"]},"annotations":{"title":"Add Constraint","readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"definitionHash":"72471a74aae8532e8a25e6133a426f07bb622d2ce28d5e0c9e834d563b9b85c6","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-15T23:46:48.616Z","metadataTrust":"untrusted"},{"serverName":"com.kernelcad/kernelcad","endpointFingerprint":"08479da53eeb876bfe1b5e67eaffbda58e9871b6a4d2b2bfe5774ae377a19246","name":"add_curve","title":"Add Curve","description":"Use this when you need a freeform/organic 3D curve — a body feature line, brow, spine rail, or curve bridge between panel boundaries — authored as a Curve3D into the user's .kcad.ts immediately before the last top-level return. One authoring path, selected by `kind`:\n- 'nurbs' — insert a `nurbsCurve(controlPoints, opts?)` declaration. Pass `controlPoints` as a Vec3[] (mm, at least 2 points). Optional NURBS knobs: `degree` (default 3), rational `weights`, explicit `knots`, `closed`.\n- 'hermite' — insert a `hermiteG2(a, b)` declaration: a quintic Hermite curve interpolating two endpoints with matching positions, tangents, and (optional) curvatures — bridges two curves with G2 continuity. Each endpoint is `{ point: Vec3, tangent: Vec3, curvature?: Vec3 }` in mm; tangent magnitude ~ chord length; curvature defaults to [0,0,0] (G1-only).\nThe returned binding has type Curve3D (peer to Shape / Surface) — consume it via `add_variable_sweep` (spine input), `add_surface({ kind: 'boundary' })` (boundary curve), or downstream Curve3D-accepting features. Returns the modified code + diagnostics from re-evaluating. Side-effect-free. Each kind fails closed on its own missing required params.","inputSchema":{"type":"object","properties":{"kind":{"type":"string","enum":["nurbs","hermite"],"description":"Which curve-construction path to use."},"code":{"type":"string","description":"The .kcad.ts source code."},"controlPoints":{"type":"array","description":"kind:'nurbs' — control points as Vec3 triples in mm; at least 2 entries.","items":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3}},"degree":{"type":"integer","minimum":1,"description":"kind:'nurbs' — curve degree; default 3 (cubic)."},"weights":{"type":"array","description":"kind:'nurbs' — optional rational weights, one per control point (same length as controlPoints).","items":{"type":"number"}},"knots":{"type":"array","description":"kind:'nurbs' — optional explicit knot vector; missing => clamped-uniform inferred.","items":{"type":"number"}},"closed":{"type":"boolean","description":"kind:'nurbs' — optional periodic/closed-curve flag."},"a":{"type":"object","description":"kind:'hermite' — start endpoint.","properties":{"point":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Endpoint position in mm."},"tangent":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"First derivative of the curve at this endpoint."},"curvature":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Optional second derivative; defaults to [0, 0, 0] (G1-only)."}},"required":["point","tangent"]},"b":{"type":"object","description":"kind:'hermite' — end endpoint.","properties":{"point":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Endpoint position in mm."},"tangent":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"First derivative of the curve at this endpoint."},"curvature":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Optional second derivative; defaults to [0, 0, 0] (G1-only)."}},"required":["point","tangent"]},"binding_name":{"type":"string","description":"JS const name for the new Curve3D binding (default: _curve_<N>)."}},"required":["kind","code"],"allOf":[{"if":{"properties":{"kind":{"const":"nurbs"}}},"then":{"required":["controlPoints"]}},{"if":{"properties":{"kind":{"const":"hermite"}}},"then":{"required":["a","b"]}}]},"annotations":{"title":"Add Curve","readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"definitionHash":"0fe8a73c2fec156627ddc60f797eeca91d68d1f35fc5f3692ea22dfb70e2d67a","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-15T23:46:48.616Z","metadataTrust":"untrusted"},{"serverName":"com.kernelcad/kernelcad","endpointFingerprint":"08479da53eeb876bfe1b5e67eaffbda58e9871b6a4d2b2bfe5774ae377a19246","name":"add_feature","title":"Add Feature","description":"Use this when you need to insert a new feature line into a script. Insert a new feature line into a kernelCAD script before the last top-level return statement. Returns the modified code as text plus diagnostics from re-evaluating the result. Direct editing is authored here too: use `body.deleteFace(faces)` to heal a removed-face opening, or `body.replaceFace(faces, { origin, normal })` for a parallel planar replacement; the runtime refuses any result that does not pass its single-solid BRepCheck gate. Primitives that accept faceLabels (box, cylinder, extrudeRect, extrudeCircle, extrudePolygon, extrudeRoundedRect) can receive `opts.faceLabels` in the inserted code — use `lookup_api` to see `featureKindFaceLabels` for the full value schema.","inputSchema":{"type":"object","properties":{"code":{"type":"string","description":"The .kcad.ts source code."},"feature_code":{"type":"string","description":"Single-statement source line to insert (e.g. `const hole = cylinder(5, 2).translate(10, 10, -1);`)."}},"required":["code","feature_code"]},"annotations":{"title":"Add Feature","readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"definitionHash":"d714f189ec23df8ac6d8a707b5df91cdd35d1a4734717a923165f1910b36bfa2","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-15T23:46:48.616Z","metadataTrust":"untrusted"},{"serverName":"com.kernelcad/kernelcad","endpointFingerprint":"08479da53eeb876bfe1b5e67eaffbda58e9871b6a4d2b2bfe5774ae377a19246","name":"add_mate","title":"Add Mate","description":"Use this when you need to author a mate-graph relationship into the source, selected by `relation` (default 'mate'):\n- 'mate' — a typed mate between two connectors ({ name, a, b, type, pose?, limitsDeg?, limitsMm? }).\n- 'coupling' — couple a driven mate to a source mate by ratio ({ driven, source, ratio, offset? }).\n- 'transmission' — a physical drive path across mates ({ name, kind, sourceMate, drivenMates, path, ... }).\nAll durably edit source and need { code, assembly_binding }. Params other than `relation` are forwarded verbatim; each relation fails closed on its own missing required params.","inputSchema":{"type":"object","properties":{"relation":{"type":"string","enum":["mate","coupling","transmission"],"description":"Which relationship to author (default 'mate')."},"code":{"type":"string","description":"The .kcad.ts source code."},"assembly_binding":{"type":"string","description":"JS identifier bound to assembly(...)."},"name":{"type":"string","description":"relation:'mate'|'transmission' — name unique within the assembly."},"a":{"type":"string","description":"relation:'mate' — connector ref \"<partName>.<connectorName>\"."},"b":{"type":"string","description":"relation:'mate' — connector ref \"<partName>.<connectorName>\"."},"type":{"type":"string","enum":["fastened","revolute","prismatic","cylindrical","planar","ball","pin_slot"],"description":"relation:'mate' — mate type."},"pose":{"type":"object","description":"relation:'mate' — optional mate pose."},"limitsDeg":{"type":"array","items":{"type":"number"},"description":"relation:'mate' — optional [minDeg, maxDeg]."},"limitsMm":{"type":"array","items":{"type":"number"},"description":"relation:'mate' — optional [minMm, maxMm]."},"driven":{"type":"string","description":"relation:'coupling' — driven mate name."},"source":{"type":"string","description":"relation:'coupling' — source mate name."},"ratio":{"type":"number","description":"relation:'coupling' — driven pose = source pose * ratio + offset."},"offset":{"type":"number","description":"relation:'coupling' — optional pose offset."},"kind":{"type":"string","enum":["direct","link-rod","four-bar","gear-pair","belt","tendon"],"description":"relation:'transmission' — transmission kind."},"sourceMate":{"type":"string","description":"relation:'transmission' — source mate name."},"drivenMates":{"type":"array","items":{"type":"string"},"description":"relation:'transmission' — driven mate names."},"actuator":{"type":"string","description":"relation:'transmission' — optional actuator."},"input":{"type":"string","description":"relation:'transmission' — optional input."},"output":{"type":"string","description":"relation:'transmission' — optional output."},"path":{"type":"array","items":{"type":"string"},"description":"relation:'transmission' — drive path."},"notes":{"type":"string","description":"relation:'transmission' — optional notes."}},"required":["code","assembly_binding"],"allOf":[{"if":{"anyOf":[{"not":{"required":["relation"]}},{"properties":{"relation":{"const":"mate"}},"required":["relation"]}]},"then":{"required":["name","a","b","type"]}},{"if":{"properties":{"relation":{"const":"coupling"}},"required":["relation"]},"then":{"required":["driven","source","ratio"]}},{"if":{"properties":{"relation":{"const":"transmission"}},"required":["relation"]},"then":{"required":["name","kind","sourceMate","drivenMates","path"]}}]},"annotations":{"title":"Add Mate","readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"definitionHash":"92360274745684f61d7ef0e6689134ed3f877eab2bf99aebc2e21b8ec6f57828","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-15T23:46:48.616Z","metadataTrust":"untrusted"},{"serverName":"com.kernelcad/kernelcad","endpointFingerprint":"08479da53eeb876bfe1b5e67eaffbda58e9871b6a4d2b2bfe5774ae377a19246","name":"add_part","title":"Add Part","description":"Use this when you need to add a part to an assembly. Durably insert `const <binding> = <assembly>.part(partName, shapeExpression, opts?)` before the final top-level return in a kernelCAD source string. Returns modified source plus diagnostics from re-evaluating it. Side-effect-free: caller persists the returned source.","inputSchema":{"type":"object","properties":{"code":{"type":"string","description":"The .kcad.ts source code."},"assembly_binding":{"type":"string","description":"JS identifier bound to assembly(...), e.g. \"arm\"."},"part_name":{"type":"string","description":"Assembly-unique part name."},"shape_expression":{"type":"string","description":"JS expression for the Shape to pass to assembly.part, inserted verbatim."},"binding_name":{"type":"string","description":"Optional JS const name for the returned AssemblyPartRef. Defaults to a part-name-derived identifier."},"at":{"type":"array","items":{"type":"number"},"description":"Optional [x, y, z] assembly placement."}},"required":["code","assembly_binding","part_name","shape_expression"]},"annotations":{"title":"Add Part","readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"definitionHash":"477a2dc91a6c95fc6e0b671ab14a2841563817feafce57ed181d93a03e9d21b3","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-15T23:46:48.616Z","metadataTrust":"untrusted"},{"serverName":"com.kernelcad/kernelcad","endpointFingerprint":"08479da53eeb876bfe1b5e67eaffbda58e9871b6a4d2b2bfe5774ae377a19246","name":"add_path_segment","title":"Add Path Segment","description":"Use this when you need a freeform/organic 2D outline — an eyewear brow, ergonomic grip, sneaker midsole, or body silhouette — by appending a curved segment to an existing PathBuilder chain on the named `chain_anchor` variable. The call is injected at the END of the chain, immediately before any `.close()`. One segment kind, selected by `kind`:\n- 'spline' — `.spline(points, opts?)`: interpolates through every `points` waypoint (Vec2[] mm, >= 2 entries; points[0] must match current pen position). Optional `tension`, and `startTangent`/`endTangent` 2D direction vectors that constrain the first-derivative direction at the endpoints (magnitude normalised internally). Use for organic 2D outlines (eyewear brow, ergonomic handle, sneaker midsole).\n- 'nurbs' — `.nurbsSegment(controlPoints, opts?)`: explicit B-spline net (Vec2[] mm, >= degree+1 entries; controlPoints[0] must match pen; pen ends at controlPoints[N-1]). Optional `degree` (default 3), rational `weights` (strictly positive), explicit `knots` (length = controlPoints.length + degree + 1).\n- 'hermite' — `.hermiteG2(a, b)`: each endpoint `{ point: Vec2, tangent: Vec2, curvature?: Vec2 }` in mm (a.point must match pen; pen ends at b.point). `curvature` defaults to [0,0] (G1); pass matching curvatures for G2 blends. Tangent magnitude is the first derivative (~ chord length), NOT unit length.\nReturns the modified code + diagnostics from re-evaluating. Side-effect-free. Each kind fails closed on its own missing required params.","inputSchema":{"type":"object","properties":{"kind":{"type":"string","enum":["spline","nurbs","hermite"],"description":"Which path-segment kind to append."},"code":{"type":"string","description":"The .kcad.ts source code."},"chain_anchor":{"type":"string","description":"JS identifier of an existing PathBuilder binding (e.g. `const brow = path().moveTo(0,0)`)."},"points":{"type":"array","description":"kind:'spline' — waypoints as Vec2 pairs in mm; at least 2 entries; first must match current pen position.","items":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2},"minItems":2},"tension":{"type":"number","description":"kind:'spline' — optional Catmull-Rom-style stiffness; forwarded to the underlying B-spline approximation."},"startTangent":{"type":"array","description":"kind:'spline' — optional [x, y] direction vector at points[0]. Magnitude is normalised internally; direction matters.","items":{"type":"number"},"minItems":2,"maxItems":2},"endTangent":{"type":"array","description":"kind:'spline' — optional [x, y] direction vector at points[N-1]. Magnitude is normalised internally; direction matters.","items":{"type":"number"},"minItems":2,"maxItems":2},"controlPoints":{"type":"array","description":"kind:'nurbs' — control-net vertices as Vec2 pairs in mm; at least degree+1 entries.","items":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2}},"degree":{"type":"integer","minimum":1,"description":"kind:'nurbs' — B-spline degree (default 3)."},"weights":{"type":"array","description":"kind:'nurbs' — optional rational weights (one per control point; strictly positive).","items":{"type":"number"}},"knots":{"type":"array","description":"kind:'nurbs' — optional explicit knot vector; length must equal controlPoints.length + degree + 1.","items":{"type":"number"}},"a":{"type":"object","description":"kind:'hermite' — start endpoint; point must match current pen position within 1e-6 mm.","properties":{"point":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2,"description":"Endpoint position in mm."},"tangent":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2,"description":"First derivative (~ chord length), NOT unit length."},"curvature":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2,"description":"Optional second derivative; defaults to [0, 0] (G1-only)."}},"required":["point","tangent"]},"b":{"type":"object","description":"kind:'hermite' — end endpoint; pen ends at b.point.","properties":{"point":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2,"description":"Endpoint position in mm."},"tangent":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2,"description":"First derivative (~ chord length), NOT unit length."},"curvature":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2,"description":"Optional second derivative; defaults to [0, 0] (G1-only)."}},"required":["point","tangent"]},"binding_name":{"type":"string","description":"Reserved for future use; the segment injection mutates the chain anchor in place."}},"required":["kind","code","chain_anchor"],"allOf":[{"if":{"properties":{"kind":{"const":"spline"}}},"then":{"required":["points"]}},{"if":{"properties":{"kind":{"const":"nurbs"}}},"then":{"required":["controlPoints"]}},{"if":{"properties":{"kind":{"const":"hermite"}}},"then":{"required":["a","b"]}}]},"annotations":{"title":"Add Path Segment","readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"definitionHash":"b68963ae2cb87c39d616504fb2f73e170c630a7227193130304a4725be0f1daa","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-15T23:46:48.616Z","metadataTrust":"untrusted"},{"serverName":"com.kernelcad/kernelcad","endpointFingerprint":"08479da53eeb876bfe1b5e67eaffbda58e9871b6a4d2b2bfe5774ae377a19246","name":"add_pattern_feature","title":"Add Pattern Feature","description":"Use this when you need to repeat a feature in a pattern. Insert a Shape.patternLinear / .patternCircular / .patternGrid / .patternCurve call into a kernelCAD script before the last top-level return. Pass structured args (kind + the matching spec object). Curve patterns use equal arc-length intervals along a 3D polyline; instances keep the seed orientation. Returns the modified code plus diagnostics from re-evaluating. Side-effect-free. The pattern feature is a single editable unit; pattern-instance face refs resolve via `<sourceId>_pattern_<i>` on the pattern feature's lineage. Geometric note: pattern is implemented as cumulative boolean union of transformed source copies — additive features (boxes, ribs, fins, spokes) pattern cleanly; patterning a subtractive feature (hole, cutout) only preserves the per-instance void when adjacent bodies are disjoint.","inputSchema":{"type":"object","properties":{"code":{"type":"string","description":"The .kcad.ts source code."},"target":{"type":"string","description":"Variable name of the Shape to pattern (inserted verbatim as the LHS receiver)."},"kind":{"type":"string","enum":["linear","circular","grid","curve"]},"linear":{"type":"object","description":"Required when kind=linear.","properties":{"count":{"type":"integer","minimum":2},"direction":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3},"spacing":{"type":"number"}},"required":["count","direction","spacing"]},"circular":{"type":"object","description":"Required when kind=circular.","properties":{"count":{"type":"integer","minimum":2},"axis":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3},"angleDeg":{"type":"number","description":"Optional; defaults to 360."}},"required":["count","axis"]},"grid":{"type":"object","description":"Required when kind=grid.","properties":{"x":{"type":"object","description":"First grid axis.","properties":{"count":{"type":"integer","minimum":2},"direction":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3},"spacing":{"type":"number"}},"required":["count","direction","spacing"]},"y":{"type":"object","description":"Second grid axis.","properties":{"count":{"type":"integer","minimum":2},"direction":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3},"spacing":{"type":"number"}},"required":["count","direction","spacing"]}},"required":["x","y"]},"curve":{"type":"object","description":"Required when kind=curve. A fixed-orientation pattern at equal arc-length intervals along a polyline. Points are offsets in mm from the seed; the first point must be [0, 0, 0].","properties":{"count":{"type":"integer","minimum":2},"points":{"type":"array","minItems":2,"items":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3}}},"required":["count","points"]},"assign_to":{"type":"string","description":"Optional const-binding name; emits `const <assign_to> = <target>.patternX(...);`. Omit for statement form."}},"required":["code","target","kind"],"allOf":[{"if":{"properties":{"kind":{"const":"linear"}}},"then":{"required":["linear"]}},{"if":{"properties":{"kind":{"const":"circular"}}},"then":{"required":["circular"]}},{"if":{"properties":{"kind":{"const":"grid"}}},"then":{"required":["grid"]}},{"if":{"properties":{"kind":{"const":"curve"}}},"then":{"required":["curve"]}}]},"annotations":{"title":"Add Pattern Feature","readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"definitionHash":"2086397893d0d7acc65912c02831d11b716338aeb01df3ffc07a06e189bea75e","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-15T23:46:48.616Z","metadataTrust":"untrusted"},{"serverName":"com.kernelcad/kernelcad","endpointFingerprint":"08479da53eeb876bfe1b5e67eaffbda58e9871b6a4d2b2bfe5774ae377a19246","name":"add_surface","title":"Add Surface","description":"Use this when you need an organic, freeform, or swept shape — a body shell, panel, fairing, ergonomic curve, lens, or sculpted form — authored as a NURBS Surface into the user's .kcad.ts, OR when you need to finish surfaces into a watertight solid or taper faces for moldability. One authoring/finishing path, selected by `kind`:\n- 'nurbs' — insert a nurbsSurface(...) / surfaceFromCurves(...) call. Pass either { controls, degree, weights?, knots?, periodic? } for direct construction, OR { section_sketch_ids } for skinning. Weights are honored: supply rational weights to build exact circles/cylinders/spheres/conics (the surface becomes rational); omit weights for a non-rational surface.\n- 'patchFamily' — insert a nurbsPatchFamily(...) solid built from degree-5+ shared-knot NURBS caps. Pass { controls, degree, split_direction, extrusion, split_knot? }. This requests G4 only at the two internal NURBS cap seams; evaluation reports the measured class per seam, and does not label a seam G4 unless the D0–D4 instrument passes.\n- 'planeBlend' — insert planeBlendSurface(railA, railB, { normalA, normalB, handleLengthMm? }) for two corresponding, equally oriented, straight parallel rails on planar supports. This is a separate G2 blend construction, not an OCCT fillet. Pass rail_a_binding / rail_b_binding (declared Curve3D variables) and unit support normals. Sew the returned patch with both support surfaces; the measured achieved class belongs to those joined seams.\n- 'boundary' — insert a surfaceFromBoundary([c1,c2,c3,c4], opts?) call: one NURBS face through 4 boundary Curve3D refs (bottom, right, top, left in loop order; adjacent endpoints must coincide within 1e-6 mm).\n- 'trim' — insert a `<surface>.trimTo(<by>)` or `<surface>.split(<by>)` call. Pass `surface_binding` (the Surface variable name), `by_binding` (the cutter Surface variable name; Shape/Curve3D cutters are deferred to a later slice), and `op: 'trim'` (keep the largest imprinted piece) or `op: 'split'` (return both halves as a `[Surface, Surface]` tuple).\n- 'sew' — insert a `sew([s0, s1, ...], opts?)` call to stitch N surfaces. Pass `surface_bindings` (array of Surface variable names). Optional `continuity: 'G0'|'G1'|'G2'|'G3'|'G4'` asks the lowerer to measure every shared seam and report the achieved class; G3/G4 use common-UV NURBS jets, and a missed request produces a warning. `tolerance` defaults to 1e-6 mm; `require_closed` errors if the result is not watertight.\n- 'draft' — insert a `<shape>.draft(angleDeg, { face, neutralPlane?, pullDir? })` call to taper the selected face(s) for mold release. Pass `shape_binding`, `angle_deg` (0–90), and `face` (canonical name, label, or FaceQuery descriptor). Lowering emits feature.draft.failed on invalid geometry.\nThe returned Surface produces no Shape until you chain .thicken(t) or .toShape() (do that via add_feature on the binding name). Returns the modified code + diagnostics. Each kind fails closed on its own missing required params.","inputSchema":{"type":"object","properties":{"kind":{"type":"string","enum":["nurbs","patchFamily","planeBlend","boundary","trim","sew","draft"],"description":"Which surface-construction or surface-finishing path to use: 'nurbs' | 'patchFamily' | 'planeBlend' | 'boundary' | 'trim' | 'sew' | 'draft'."},"code":{"type":"string","description":"Current .kcad.ts source."},"controls":{"type":"array","description":"kind:'nurbs' or 'patchFamily' — control-point grid (controls[u][v] = [x, y, z], mm). patchFamily uses degree-5+ caps and a simple internal knot.","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}},"weights":{"type":"array","description":"kind:'nurbs' or 'patchFamily' — optional positive rational weights, same grid shape as controls.","items":{"type":"array","items":{"type":"number"}}},"degree":{"type":"object","description":"kind:'nurbs' or 'patchFamily' — degrees in U and V; patchFamily requires degree >= 5 in split_direction and enough controls for a simple internal knot.","properties":{"u":{"type":"integer","minimum":1},"v":{"type":"integer","minimum":1}},"required":["u","v"]},"knots":{"type":"object","description":"kind:'nurbs' or 'patchFamily' — optional explicit knot vectors; missing => clamped uniform inferred. patchFamily split_knot must select a simple interior knot.","properties":{"u":{"type":"array","items":{"type":"number"}},"v":{"type":"array","items":{"type":"number"}}}},"periodic":{"type":"object","description":"kind:'nurbs' — optional periodic flags per parametric direction.","properties":{"u":{"type":"boolean"},"v":{"type":"boolean"}}},"split_direction":{"type":"string","enum":["u","v"],"description":"kind:'patchFamily' — parameter direction for the shared simple interior knot and measured target seam."},"split_knot":{"type":"number","description":"kind:'patchFamily' — optional knot value to split at; defaults to the first simple interior knot."},"extrusion":{"type":"array","minItems":3,"maxItems":3,"description":"kind:'patchFamily' — finite non-zero translation [x, y, z] in mm from the first NURBS cap to the opposite cap.","items":{"type":"number"}},"face_tolerance":{"type":"number","exclusiveMinimum":0,"description":"kind:'patchFamily' — positive OCCT face-construction tolerance in mm (default 1e-6)."},"rail_a_binding":{"type":"string","description":"kind:'planeBlend' — existing Curve3D variable name for the first straight support rail."},"rail_b_binding":{"type":"string","description":"kind:'planeBlend' — existing Curve3D variable name for the second corresponding, parallel support rail."},"normal_a":{"type":"array","minItems":3,"maxItems":3,"items":{"type":"number"},"description":"kind:'planeBlend' — unit normal of the first planar support face."},"normal_b":{"type":"array","minItems":3,"maxItems":3,"items":{"type":"number"},"description":"kind:'planeBlend' — unit normal of the second planar support face."},"handle_length_mm":{"type":"number","exclusiveMinimum":0,"description":"kind:'planeBlend' — positive quintic control-handle length in mm; default is one tenth of the rail gap."},"section_sketch_ids":{"type":"array","description":"kind:'nurbs' — existing sketch FeatureIds (2 or more) to skin a surface through, in order.","items":{"type":"string"}},"curve_bindings":{"type":"array","description":"kind:'boundary' — tuple of 4 existing Curve3D variable names (bottom, right, top, left) declared earlier in the source.","items":{"type":"string"},"minItems":4,"maxItems":4},"continuity":{"description":"kind:'boundary' — C0 only; C1/C2 fail because no neighboring support surfaces are supplied. kind:'sew' — minimum measured continuity for every shared seam ('G0' | 'G1' | 'G2' | 'G3' | 'G4'); G3/G4 require common-UV NURBS faces and the lowerer reports the achieved class.","oneOf":[{"type":"string","enum":["C0","C1","C2","G0","G1","G2","G3","G4"]},{"type":"array","items":{"type":"string","enum":["C0","C1","C2"]},"minItems":4,"maxItems":4}]},"sampling":{"type":"integer","minimum":1,"description":"kind:'boundary' — points sampled along each boundary (default 15)."},"binding_name":{"type":"string","description":"JS const name for the new binding (kind:'nurbs' default surface_<N>; kind:'patchFamily' default patch_family_<N>; kind:'planeBlend' default plane_blend_<N>; kind:'boundary' default _surface_<N>; kind:'trim' default _trimmed_<N>; kind:'sew' default _sewn_<N>; kind:'draft' default _drafted_<N>)."},"surface_binding":{"type":"string","description":"kind:'trim' — JS variable name of the Surface to trim/split (must be declared in source)."},"by_binding":{"type":"string","description":"kind:'trim' — JS variable name of the cutter Surface (must be declared in source). Shape/Curve3D cutters are deferred."},"op":{"type":"string","enum":["trim","split"],"description":"kind:'trim' — 'trim' discards the smaller half (calls .trimTo()); 'split' retains both halves (calls .split())."},"surface_bindings":{"type":"array","description":"kind:'sew' — JS variable names of the surfaces to stitch into a solid (each must be declared in source).","items":{"type":"string"},"minItems":1},"tolerance":{"type":"number","description":"kind:'sew' — edge-merging tolerance in mm (default 1e-6). Edges within this distance are merged."},"require_closed":{"type":"boolean","description":"kind:'sew' — when true the lowerer emits feature.surface-sew.open-shell if the stitched result is not a watertight solid."},"shape_binding":{"type":"string","description":"kind:'draft' — JS variable name of the Shape to taper (must be declared in source)."},"angle_deg":{"type":"number","minimum":0,"maximum":90,"description":"kind:'draft' — draft angle in degrees [0, 90]. The face is tapered outward by this angle relative to the pull direction."},"face":{"type":"string","description":"kind:'draft' — face selector for the face(s) to taper. Accepts a canonical name (top/bottom/front/back/left/right), a user label declared via faceLabels, or a FaceQuery descriptor string."},"neutral_plane":{"type":"string","description":"kind:'draft' — parting-line face (the plane where drafted faces remain fixed). Defaults to `face` if omitted."},"pull_dir":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"kind:'draft' — demoulding direction as [x, y, z]. Defaults to the face normal at lower time."}},"required":["kind","code"]},"annotations":{"title":"Add Surface","readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"definitionHash":"a6bde16fc2ff5115c684ee4c8a9b4a9d74699e242be502e4f903f3b64569d76b","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-15T23:46:48.616Z","metadataTrust":"untrusted"},{"serverName":"com.kernelcad/kernelcad","endpointFingerprint":"08479da53eeb876bfe1b5e67eaffbda58e9871b6a4d2b2bfe5774ae377a19246","name":"add_text","title":"Add Text","description":"Use this when you need to author text into a kernelCAD script before the last top-level return. One authoring path, selected by `mode`:\n- 'sketch' — insert a sketch.text(...) call. The emitted sketch is chainable: pair with subsequent .extrude(...) / cut(...) edits to land an engraved or raised text feature.\n- 'emboss' — insert a `<shape>.embossText({...})` chained call onto an existing Shape `target`. Use for engraved brand text on faces (Ray-Ban temple, CE mark, model number). `depth > 0` raises text out of the face; `depth < 0` engraves text into the face. Lowers via replicad drawText → sketchOnFace → extrude → fuse|cut.\nDefault font is the runtime-bundled Liberation Sans. Side-effect-free; returns the modified code plus diagnostics from re-evaluating. Each mode fails closed on its own missing required params.","inputSchema":{"type":"object","properties":{"mode":{"type":"string","enum":["sketch","emboss"],"description":"Which text-authoring path to use."},"code":{"type":"string","description":"The .kcad.ts source code."},"content":{"type":"string","description":"mode:'sketch' — text content (UTF-8, non-empty, non-whitespace)."},"size":{"type":"number","description":"mode:'sketch'|'emboss' — glyph cap height in mm (positive finite)."},"font":{"type":"string","description":"mode:'sketch' — optional logical font name or .ttf file path; defaults to bundled Liberation Sans."},"align":{"type":"string","enum":["left","center","right"],"description":"mode:'sketch' — horizontal alignment relative to position (default left); mode:'emboss' — relative to the UV anchor (default center)."},"position":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2,"description":"mode:'sketch' — [x, y] anchor in mm. Default [0, 0]."},"rotation":{"type":"number","description":"mode:'sketch' — CCW rotation in degrees around position (default 0); mode:'emboss' — CCW rotation in the face tangent plane (default 0)."},"bindAs":{"type":"string","description":"mode:'sketch' — emits `const <bindAs> = sketch.text(...)`; mode:'emboss' — emits `const <bindAs> = <target>.embossText(...);`."},"target":{"type":"string","description":"mode:'emboss' — variable name of the Shape to chain onto (inserted verbatim)."},"textContent":{"type":"string","description":"mode:'emboss' — text content (UTF-8, non-empty, non-whitespace)."},"depth":{"type":"number","description":"mode:'emboss' — signed extrusion depth in mm: positive emboss out, negative engrave in. Must be non-zero."},"face":{"type":"string","description":"mode:'emboss' — target face — canonical name ('top'/'bottom'/'left'/'right'/'front'/'back') or label."},"fontFamily":{"type":"string","description":"mode:'emboss' — optional logical font name or .ttf file path; defaults to bundled Liberation Sans."},"anchorU":{"type":"number","description":"mode:'emboss' — U anchor in [0, 1] face-local (0=umin, 0.5=centre, 1=umax). Default 0.5."},"anchorV":{"type":"number","description":"mode:'emboss' — V anchor in [0, 1] face-local. Default 0.5."},"scaleMode":{"type":"string","enum":["original","native","bounds"],"description":"mode:'emboss' — Drawing.sketchOnFace scaling mode. Default original."}},"required":["mode","code"]},"annotations":{"title":"Add Text","readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"definitionHash":"d57af0f413342971d73f5e905479f97ebb0b21bfe98c89f1d7f98d760b7ed728","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-15T23:46:48.616Z","metadataTrust":"untrusted"},{"serverName":"com.kernelcad/kernelcad","endpointFingerprint":"08479da53eeb876bfe1b5e67eaffbda58e9871b6a4d2b2bfe5774ae377a19246","name":"add_variable_sweep","title":"Add Variable Sweep","description":"Use this when you need an organic swept solid whose cross-section changes along its length — a tapering body, horn, bottle, handle, ring band, fairing, or duct — authored as a variable-section sweep along a spine. Inserts `variableSweep(spine, sections, opts?)` into the .kcad.ts `code` immediately before the last top-level return (an empty `code` starts a new script that returns the sweep). Spine: EITHER `spine_points` ([[x,y,z], ...] in mm, interpolated with spline3d; `spine_closed: true` closes the loop for a ring) OR `spine_binding` (an existing Curve3D / Sketch / Vec3[] variable). Each section: `t` in [0, 1] plus a profile — inline `radius` (circle) or `width` + `height` (rectangle), or `profile_binding` (an existing Sketch); profiles are centred on the spine and turned to face along it. Sections are strictly increasing in t, first t=0, last t=1 (omit t on every section to space them evenly). On a closed spine t=1 is the seam and reuses the t=0 profile. Example: { code, spine_points: [[0,0,0],[0,10,30],[0,0,60]], sections: [{ t: 0, radius: 8 }, { t: 0.5, radius: 10 }, { t: 1, radius: 4 }] }. Returns the modified code, diagnostics from re-evaluating it, and `sweep` { volumeMm3, bbox } measured from the built solid (ok:false when the sweep built nothing). The lowerer measures NURBS station seams for C1/C2 requests; C2 targets at least G2 and emits a warning with the achieved class if missed. The result is a Shape binding: return it, or chain `.union(...)` etc. via add_feature. Orientation is not exposed by this MCP tool until runtime orientation support is wired. Side-effect-free.","inputSchema":{"type":"object","properties":{"code":{"type":"string","description":"The .kcad.ts source code (\"\" for a new script)."},"spine_points":{"type":"array","description":"Inline spine: at least 2 [x, y, z] points in mm, interpolated with spline3d. Use this OR spine_binding.","items":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3}},"spine_closed":{"type":"boolean","description":"With spine_points: close the spline into a loop (ring band, loop handle)."},"spine_binding":{"type":"string","description":"Existing variable name for a Curve3D / Sketch / Vec3[] declared earlier in the source. Use this OR spine_points."},"sections":{"type":"array","description":"Varying cross-sections along the spine; at least 2 entries, strictly increasing in `t`, first t=0, last t=1.","items":{"type":"object","properties":{"t":{"type":"number","description":"Spine parameter in [0, 1]."},"radius":{"type":"number","description":"Inline circular profile radius, mm."},"width":{"type":"number","description":"Inline rectangular profile width, mm (with height)."},"height":{"type":"number","description":"Inline rectangular profile height, mm (with width)."},"profile_binding":{"type":"string","description":"Existing Sketch variable name for this section (instead of radius / width+height)."}}}},"closed":{"type":"boolean","description":"Optional closed-sweep flag."},"continuity":{"type":"string","enum":["C0","C1","C2"],"description":"Inter-section continuity request; default 'C1'. C2 targets measured G2 at NURBS station seams; output diagnostics report the achieved class."},"binding_name":{"type":"string","description":"JS const name for the new Shape binding (default: _sweep_<N>)."}},"required":["code","sections"]},"annotations":{"title":"Add Variable Sweep","readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"definitionHash":"73a182b0c681a582bdd68016770966521d914b9bb760775b4891859d289a5f34","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-15T23:46:48.616Z","metadataTrust":"untrusted"},{"serverName":"com.kernelcad/kernelcad","endpointFingerprint":"08479da53eeb876bfe1b5e67eaffbda58e9871b6a4d2b2bfe5774ae377a19246","name":"add_workspace_target","title":"Add Workspace Target","description":"Use this when you need to declare a reachability target for a connector. Durably insert `<assembly>.workspace(connectorRef, { reachable, toleranceMm? })` before the final top-level return. Workspace targets are checked by solvedModel validation/review pose-envelope gates. Returns modified source plus diagnostics from re-evaluation.","inputSchema":{"type":"object","properties":{"code":{"type":"string","description":"The .kcad.ts source code."},"assembly_binding":{"type":"string","description":"JS identifier bound to assembly(...)."},"connector_ref":{"type":"string","description":"Connector ref \"<partName>.<connectorName>\"."},"reachable":{"type":"array","description":"World-frame Vec3 targets the connector must be able to reach.","items":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3}},"toleranceMm":{"type":"number","description":"Optional non-negative tolerance in mm."}},"required":["code","assembly_binding","connector_ref","reachable"]},"annotations":{"title":"Add Workspace Target","readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"definitionHash":"27103e0ec0f6752dd9d50ee790707da709bbd6d4f42b383064ae5694aa53ea54","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-15T23:46:48.616Z","metadataTrust":"untrusted"},{"serverName":"com.kernelcad/kernelcad","endpointFingerprint":"08479da53eeb876bfe1b5e67eaffbda58e9871b6a4d2b2bfe5774ae377a19246","name":"design_loop","title":"Run Design Loop","description":"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.","inputSchema":{"type":"object","properties":{"goal":{"type":"string","description":"Original user design goal. Fed into every review_cad repair prompt."},"attempts":{"type":"array","description":"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.","items":{"type":"object","anyOf":[{"required":["file"]},{"required":["code"]}],"properties":{"id":{"type":"string"},"title":{"type":"string"},"file":{"type":"string","description":"Path to a .kcad.ts script on disk. Provide file or code."},"code":{"type":"string","description":"Inline kernelCAD script source. Provide file or code."},"visualReview":{"type":"object","description":"Optional. Evidence from the reviewing agent after rendering/opening screenshots. Accepted reviews must include screenshotPath, concrete findings, and all required checks passing.","properties":{"accepted":{"type":"boolean"},"screenshotPath":{"type":"string"},"findings":{"type":"array","items":{"type":"string"}},"checks":{"type":"array","description":"Required checklist entries: main-object-count, proportions-match-reference, required-visible-features, no-stray-or-floating-geometry, attachment-plausibility, semantic-orientation-alignment, device-depth-and-construction, canonical-views-physically-coherent.","items":{"type":"object","properties":{"code":{"type":"string"},"passed":{"type":"boolean"},"finding":{"type":"string"},"screenshotPath":{"type":"string"}},"required":["code","passed","finding"]}}},"required":["accepted","findings"]}}}},"assembly":{"type":"string"},"preserveInterfaces":{"type":"array","items":{"type":"string"},"description":"External mates, connector refs, part names, or behavioral interfaces the agent must preserve between attempts."},"includePoseEnvelope":{"type":"boolean","description":"Forwarded to review_cad. Default true."},"includeInterference":{"type":"boolean","description":"Forwarded to review_cad. Default true."},"mechanismSweepBudget":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"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."},"samplesPerMate":{"type":"integer","minimum":1,"description":"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 = samplesPerMate."},"combinatorial":{"type":"boolean","description":"Sample all 2^N limit-corner combinations across mates with declared limits. Capped at 8 mates with limits; combine with samplesPerMate for both interior coverage and worst-pose detection. Default false."},"epsilonMm3":{"type":"number","description":"Forwarded to review_cad."},"trackConnectors":{"type":"array","items":{"type":"string"},"description":"Connector refs to track across sampled poses."},"stopOnPass":{"type":"boolean","description":"Stop after the first attempt that is functional and passes the quality gate. Default true."},"consensus":{"type":"boolean","description":"Best-of-N by geometric consensus. When true, attempts are N independent candidates for the SAME goal (not a repair sequence): all are reviewed (stopOnPass ignored), all scripts are executed, candidates without a valid solid are dropped, and the candidate whose geometry agrees most with the others (medoid by symmetric Chamfer distance, same model frame) is selected. Ties go to more gates passed, then the shorter script. Returns consensus { chosenIndex, chosenAttemptId, scores, distances, reason }; ok / finalAttemptId / nextActionPrompt describe the selected candidate. Default false."},"autoRevise":{"type":"boolean","description":"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 CAD models."},"requireVisualReview":{"type":"boolean","description":"Require screenshot-backed visualReview with structured checks before accepting an attempt. Default true; set false only for explicit non-visual batch checks."},"requirePhysicalAcceptance":{"type":"boolean","description":"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(...)."},"allowReviewWarnings":{"type":"array","items":{"type":"string"},"description":"Warning diagnostic codes the original prompt explicitly allows. Other review warnings keep the loop iterating even if review_cad is functionally ok."},"requirements":{"type":"array","items":{"type":"object","additionalProperties":true},"description":"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 blocks the attempt even with no expert geometry."},"outputRecordPath":{"type":"string","description":"Optional JSON path to write a Studio-compatible build record."},"recordTitle":{"type":"string","description":"Optional title for the build record."}},"required":["goal","attempts"]},"annotations":{"title":"Run Design Loop","readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"definitionHash":"383e5b61a1f23f638ab7a6b394662c854ce325148e9256e70477d684143214bf","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-15T23:46:48.616Z","metadataTrust":"untrusted"},{"serverName":"com.kernelcad/kernelcad","endpointFingerprint":"08479da53eeb876bfe1b5e67eaffbda58e9871b6a4d2b2bfe5774ae377a19246","name":"diff_scripts","title":"Diff CAD Scripts","description":"Use this when you need to see exactly what changed between two script versions. Structured geometric delta between two versions of a kernelCAD script — a baseline ({ baseFile } or { baseCode }) and a revision ({ file } or { code }). Returns agent-readable JSON: per-part added/removed/renamed/changed (volume mm³ + exact bbox deltas, numbers matching inspect({ of: 'part-stats' })), total interference-volume delta with per-pair detail, mate-graph changes (added/removed/changed mates incl. type, connectors, pose, limits), and param changes (value/min/max). Single-shape scripts diff as one \"(root)\" pseudo-part; a `return [a, b]` multi-body script diffs per body as \"body[0]\", \"body[1]\". An error that still leaves geometry (e.g. a skipped fillet) is listed under base/revised.errors beside the diff. Use after editing a script to verify exactly what changed physically before re-rendering. On a hosted server pass both versions inline: { baseCode: 'return box(10, 10, 10);', code: 'return box(10, 10, 12);' } (base_code/old_code/before and revised_code/new_code/after are accepted as aliases). Read-only — never touches the active session.","inputSchema":{"type":"object","properties":{"baseFile":{"type":"string","description":"Baseline (before) script — path to a .kcad.ts file. Local servers only. Hosted server: cannot read files from your machine — pass `code`, or `project:<slug>` for a saved project."},"baseCode":{"type":"string","description":"Baseline (before) script — inline source. One of baseFile / baseCode is required."},"file":{"type":"string","description":"Revised (after) script — path to a .kcad.ts file. Local servers only. Hosted server: cannot read files from your machine — pass `code`, or `project:<slug>` for a saved project."},"code":{"type":"string","description":"Revised (after) script — inline source. One of file / code is required."}}},"annotations":{"title":"Diff CAD Scripts","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"definitionHash":"afe1f99693f3bbda760ecb3982d97fff61b7c9ba1ad76d2ee405e3022006f115","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-15T23:46:48.616Z","metadataTrust":"untrusted"},{"serverName":"com.kernelcad/kernelcad","endpointFingerprint":"08479da53eeb876bfe1b5e67eaffbda58e9871b6a4d2b2bfe5774ae377a19246","name":"erc_run","title":"Run Electrical Rule Check","description":"Run an electrical rule check (ERC) on a schematic and return structured diagnostics — the KiCad ERC step, over MCP.\n\nCHECKS: duplicate reference designators; net endpoints naming an unknown component or pin; unconnected pins (ignoring hidden power pins and explicit no-connects); single-pin nets; driver conflicts (two outputs on one net); power_in pins with no power_out source; input pins with no driver; no-connect markers on connected or non-existent pins; incomplete differential pairs; empty nets.\n\nINPUT: `schematic` (same shape as netlist_export), `ignore` (optional array of rule codes to suppress, e.g. [\"erc.net-single-pin\"]), `treatUnspecifiedAsPassive` (optional; when true an \"unspecified\" pin counts as passive for the input-not-driven check).\n\nOUTPUT: { ok, counts: { error, warn, info }, diagnostics: [{ code, severity, message, hint?, locus: { component?, pin?, net? }, nextAction? }], checked: { components, nets, pins } }. `ok` is true when there are zero errors. Diagnostics use the same shape as kernelCAD geometry diagnostics, sorted error → warn → info, deterministically.","inputSchema":{"type":"object","properties":{"schematic":{"type":"object","required":["components","nets"],"properties":{"title":{"type":"string","description":"Optional schematic title, used in diagnostics context."},"components":{"type":"array","description":"Placed component instances.","items":{"type":"object","required":["reference","pins"],"properties":{"reference":{"type":"string","minLength":1,"description":"Reference designator, e.g. \"R1\", \"U3\", \"J2\". Must be unique."},"value":{"type":"string","description":"Value, e.g. \"10k\", \"STM32G0\", \"100nF\"."},"footprint":{"type":"string","description":"Footprint id from the footprint library, e.g. \"Package_SO:SOIC-8_3.9x4.9mm_P1.27mm\"."},"libpart":{"type":"string","description":"Library part id, e.g. \"Device:R\"."},"unit":{"type":"integer","minimum":1,"description":"Unit index (1-based) for multi-unit parts."},"dnp":{"type":"boolean","description":"Do-not-populate marker."},"pins":{"type":"array","description":"Pins declared by the library part. A component with no pins cannot appear in a netlist.","items":{"type":"object","required":["pin"],"properties":{"pin":{"type":"string","minLength":1,"description":"Pin number/name, e.g. \"1\", \"A3\", \"GND\"."},"pinFunction":{"type":"string","description":"Pin function label, e.g. \"VCC\", \"RESET\"."},"pinType":{"type":"string","enum":["input","output","bidirectional","tri_state","passive","free","unspecified","power_in","power_out","open_collector","open_emitter","no_connect"],"description":"Electrical type (KiCad pin electrical types). Defaults to \"unspecified\"."},"hiddenPower":{"type":"boolean","description":"True for a hidden power pin implicitly connected by the symbol. ERC does not report it unconnected."}}}}}}},"nets":{"type":"array","description":"Nets (electrically common pin sets).","items":{"type":"object","required":["name","endpoints"],"properties":{"name":{"type":"string","minLength":1,"description":"Net name. Repeating a name merges the nets (net labels on several sheets)."},"netClass":{"type":"string","description":"Net class, e.g. \"Default\", \"Power\", \"HighSpeedDiff\"."},"diffPairPartner":{"type":"string","description":"The other member of this differential pair, when declared."},"endpoints":{"type":"array","description":"Pins electrically common on this net.","items":{"type":"object","required":["component","pin"],"properties":{"component":{"type":"string","description":"Reference designator of the component."},"pin":{"type":"string","description":"Pin number on that component."}}}}}}},"noConnects":{"type":"array","description":"Explicit no-connect markers — pins deliberately left unused.","items":{"type":"object","required":["component","pin"],"properties":{"component":{"type":"string"},"pin":{"type":"string"},"reason":{"type":"string","description":"Optional free-text reason carried from the schematic."}}}}}},"ignore":{"type":"array","description":"Rule codes to suppress, e.g. [\"erc.net-single-pin\"].","items":{"type":"string"}},"treatUnspecifiedAsPassive":{"type":"boolean","description":"When true, an \"unspecified\" pin counts as passive for the input-not-driven check."}},"required":["schematic"],"additionalProperties":false},"annotations":{"title":"Run Electrical Rule Check","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"definitionHash":"22776532e0d53ff35958a7f7039c3e9dbcf80dba66e7a1195765e4d633861420","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-15T23:46:48.616Z","metadataTrust":"untrusted"},{"serverName":"com.kernelcad/kernelcad","endpointFingerprint":"08479da53eeb876bfe1b5e67eaffbda58e9871b6a4d2b2bfe5774ae377a19246","name":"evaluate_script","title":"Evaluate CAD Script","description":"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 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, as does a mate connector more than 6 mm outside its part bounding box (assembly.mechanical.connector-not-in-solid, the same error review_cad reports) — a mechanism (any mate or joint) needs every part linked by connectors + mates/joints (axis+revolute for shafts/hinges/gears; frame+fastened for rigid; or arm.revolute/.prismatic/.ball/.fixed). A plain multi-part assembly with no mates (base + lid, print layout) is independent bodies and passes. Pass { skipMechanismCheck: true } to opt out (e.g. a deliberately free part next to a mechanism). An animation or drive on a fastened joint (mechanism.motion-on-fixed-joint) is broken: animate a revolute/prismatic mate pose. For a model with moving joints or motion intent, `mechanismSummary.statement` is one plain line: \"Motion checked: ...\" names what ran; \"Motion not checked: ...\" is NOT a pass — never call that mechanism working. Every union() is checked too (no opt-out): union.disconnected (the union is several separate solids — a floating operand) and union.member-overlap (two operands that each carry their own .finish()/.material(), the same one, share > 1 mm³ — cut members to fit, e.g. a cross tube between rails is span minus two rail widths) make ok:false. Pass either { file: \"<path>\" } or { code: \"<inline source>\" }. Set { dryRun: true } for fast validation while iterating: transpile + capture + capture-light checks without building solids, DFM gates, or meshing — milliseconds instead of seconds (100x+ on boolean/fillet-heavy scripts). A dry run catches script throws, capture-time API misuse, and assembly validity-gate failures, but NOT lowering failures or dfmSpec diagnostics; it leaves the active session untouched, so finish with a full (non-dry) evaluate_script before using session-dependent tools. To show a measurement in the 3D viewer (e.g. hole spacing), declare it in the script with shape.dimension({ kind: \"linear\", from, to, label }); a full evaluate lists them as dimensions: [{ text, kind, source }], and a shared /p link with ?dims=1 forces them on. A full evaluation updates the active MCP session and viewer state and keeps temporary step evidence; { dryRun: true } leaves the active session unchanged. Hosted: lib.fromSTEP / fromSTL / meshFromSTL / fromDXF / fromSVG and referenceImage take a direct string literal or a const bound to one (computed expressions are unsupported). They accept \"asset:<id>\" (from request_upload), an https:// URL or a data: URI as the path.","inputSchema":{"type":"object","properties":{"file":{"type":"string","description":"Path to a .kcad.ts script file. Hosted server: cannot read files from your machine — pass `code`, or `project:<slug>` for a saved project."},"code":{"type":"string","description":"Inline kernelCAD script source."},"dryRun":{"type":"boolean","description":"Fast validation only: skip solid build, DFM gates, and meshing. Does not set or clear the active session."},"kernel":{"type":"string","enum":["occt","smlib"],"description":"Solid-modeling kernel. Default 'occt' (OpenCascade); opt-in 'smlib' uses guarded candidates with explicit OCCT fallback diagnostics."},"skipMechanismCheck":{"type":"boolean","description":"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. Set true to skip the sweep entirely (no `mechanism` field, no cost). Ignored for dryRun and non-assembly scripts."},"baseline":{"type":"array","items":{"type":"object","additionalProperties":true},"description":"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":{"type":"array","items":{"type":"object","additionalProperties":true},"description":"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 | concentric | coplanar, a?, b?, op: gte | lte | eq | between | within, limit, tolerance?, density? }. Operands are { kind: body | faces | edges | part, ref: <feature id/name or part name>, query? }."},"intent":{"type":"string","maxLength":2000,"description":"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."}}},"annotations":{"title":"Evaluate CAD Script","readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"definitionHash":"04af5a902ec8bd71dea3c57d5b89732fe50e8b1700885f1d2d1dd5b9133ff8a8","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-15T23:46:48.616Z","metadataTrust":"untrusted"},{"serverName":"com.kernelcad/kernelcad","endpointFingerprint":"08479da53eeb876bfe1b5e67eaffbda58e9871b6a4d2b2bfe5774ae377a19246","name":"export","title":"Export","description":"Use this when you need to export geometry to a file. One exporter, selected by `target`:\n- 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/<part>.dxf per part (reported in part_files; options.layout 'sheet' writes the combined sheet only); any other part 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 sidecar — slot N is the Nth distinct colour/material), options.infill { fromFea: '<study>' | true, bands?, pattern? } = stress-graded FDM infill (requires the local CalculiX + gmsh toolchain; without it the export fails with fea.solver.unavailable): solves the feaStudy and writes modifier volumes, each with its own infill density (Orca/Bambu format by default; options.slicer 'prusa' writes PrusaSlicer's format instead, since the two are not interchangeable); the result carries infill { bands, saving, images }), gcode (installed OrcaSlicer output; preserves G-code and returns optional gcode_stats with header generator identity and slicer-predicted time/material), glb (web-viewer / AR with PBR materials), obj (Wavefront indexed triangle mesh), usd (ASCII USDA triangle mesh in millimeter, Z-up coordinates; multi-part scenes emit one named mesh per part), svg-drawing (third-angle engineering-drawing sheet: front/top/left + isometric views, hidden edges dashed, tangent edges thin, overall bounding-box dimensions, title block; assemblies are drawn with inter-part occlusion; pass options.annotations to dimension specific features instead of the bounding box; pass options.exploded { factor, mode } to explode the isometric cell, options.balloons to number parts from the BOM, and options.partsList for an item/name/qty/material table above the title block). overall bounding-box dimensions, title block; assemblies are drawn with inter-part occlusion; pass options.annotations to dimension specific features instead of the bounding box, options.autoAnnotate to derive datums A/B/C, grouped hole callouts with position tolerances, hole positions, overall size, radius and chamfer callouts, flatness and an ISO 2768 note from the geometry (the result carries drawing_report with placed / overlapped counts), and options.sections for real section views on any cutting plane). pdf-drawing (the same sheet — views, dashed hidden lines, dimensions, hole callouts, GD&T, sections, parts list — as a printable vector PDF on a standard sheet, one call: ISO a4|a3|a2|a1|a0 or ANSI ansi-a…ansi-e landscape, default a3, or sheet \"auto\" / \"auto-ansi\" for the smallest sheet that holds the views at 1:1; the drawing scale is picked to fit; projection \"third\" (default) or \"first\" arranges the views and draws the matching symbol; a full title block carries title, part name, material, scale, units, sheet size, date and revision, settable through options.title / partName / material / revision / date; autoAnnotate is on unless options.annotations is given). Robot descriptions: urdf (tree-topology robot description), srdf (motion-planning semantics layered over the URDF), sdf-gazebo (SDFormat 1.10 with native ball joints, closed loops, and solved per-link poses), usd-isaac (ASCII USD physics stage: PhysicsArticulationRootAPI root, one rigid body per link at its solved pose with mass / centre of mass / principal inertia, PhysicsFixedJoint/PhysicsRevoluteJoint/PhysicsPrismaticJoint per mate with token axis, two-sided joint frames and limits, UsdPreviewSurface materials from the part appearance, and joint drives only when declared in options.drives { <mate>: { stiffness, damping, maxForce?, targetPosition? } }; options.collisionApproximation is convexHull | convexDecomposition; planar/cylindrical/pin_slot/ball mates fail closed with export.usd.joint-unsupported). bom-csv / bom-json (bill of materials over assembly.model()/solvedModel(): one row per distinct part — grouped by geometry/catalog identity, not name — with real instance quantity, kind, material, density, mass, bbox, fabrication process (`process` + `processSource`), and catalog provenance for purchased parts; same numbers as inspect({ of: 'bom' })). order-pack (a zip: one single-body file per fabricated part — STEP always, plus STL for 3d-print and DXF for sheet-cut rows, per-part drawing PDFs where available — with bom.csv/bom.json, vendor paste handoff texts for purchased rows and a machine-readable manifest; options processes / items narrow which rows are packed; nothing is uploaded). bend-table (tube bender tables over tube() records: one <tube name>.csv per tube with the LRA bend table, XYZ points, cut length and last straight; output_path is a DIRECTORY and the written files are reported in table_files; a script with no tube() fails with export.bend-table.no-tubes, and a script whose tube gates report errors writes nothing). urdf and sdf-gazebo also write one meshes/<part>.stl per link, and usd-isaac one meshes/<part>.usda mesh layer per link, next to output_path (reported in mesh_files) — ship the whole directory to the consumer. STL exports run a watertight verify by default; failures return ok: false with export.mesh.not-watertight (open-edge count + up to 5 crack-cluster locations) but the file is still written so the broken mesh can be inspected. STEP exports check B-rep validity and mesh watertightness by default; failures return ok: false with export.brep.invalid or export.mesh.not-watertight, while keeping the STEP file for inspection. Set options.verify: false or pass { no_verify: true } to skip STEP checks. Optional { feature_id } selects which feature to export (default: last). Optional { options } carries per-format options bag (see the kernelcad-mcp skill for the per-format keys: step unit/verify, dxf layers/tolerance/unit/section/layout, 3mf printUnit/embedSource/arrange/orient/slicer/printer/infill, glb axis/draco/units).\n- target:'part' — export solved-assembly parts as individual binary STL files in their modeled (world-frame) positions. Pass { file | code }, plus { part, output_path } for one part or { output_dir } for all parts (files land at <output_dir>/<part>.stl). A watertight verify runs on every exported mesh by default and fails the call with export.mesh.not-watertight; unknown part names fail with export.part.not-found listing the valid names.\nPass { no_verify: true } to skip the watertight gate. All params except `target` are forwarded verbatim; each target fails closed on its own missing required params.\nHosted server: the file is written on the kernelCAD server, NOT on the caller's machine. The result carries `downloads[]` — an HTTPS `url` per file (expires after 24 h; give it to the user) — Small text files an agent can read (SVG, DXF, URDF, JSON, CSV; up to 32 KB) also come inline as an embedded resource; STEP, STL, 3MF and GLB are link-only — do not fetch them into your context, give the user the link. `output_path` only names the file; the returned `outp","inputSchema":{"type":"object","properties":{"target":{"type":"string","enum":["model","part"],"description":"Which exporter to run: 'model' (whole-script geometry to one file) or 'part' (per-part STLs from a solved assembly)."},"file":{"type":"string","description":"Path to a .kcad.ts script file. Hosted server: cannot read files from your machine — pass `code`, or `project:<slug>` for a saved project."},"code":{"type":"string","description":"Inline kernelCAD script source."},"output_path":{"type":"string","description":"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":{"type":"string","enum":["stl","step","dxf","3mf","glb","obj","usd","svg-drawing","pdf-drawing","urdf","srdf","sdf-gazebo","usd-isaac","bom-csv","bom-json","order-pack","bend-table","gcode"],"description":"target:'model' — output file format (required for that target)."},"feature_id":{"type":"string","description":"target:'model' — optional FeatureId to export; defaults to last."},"options":{"type":"object","description":"target:'model' — optional per-format options bag. Discriminator options.format must equal top-level format. step: { unit?: \"mm\"|\"cm\"|\"in\", verify?: boolean } (verify defaults to true and checks B-rep validity plus mesh watertightness; false skips both). stl: { verify?: boolean } (defaults to true). dxf: { layers?, unit?: \"mm\"|\"cm\"|\"in\", tolerance?, section?: { axis: \"x\"|\"y\"|\"z\", at: mm }, layout?: \"per-part\"|\"sheet\" }. 3mf: { printUnit?: \"mm\"|\"cm\"|\"in\", embedSource?, arrange?: \"none\"|\"plate\"|\"assembled\", orient?: boolean, slicer?: \"generic\"|\"bambu\"|\"orca\"|\"prusa\", printer?: printer profile id, one of \"generic-fdm\"|\"bambu-a1-mini\"|\"bambu-a1\"|\"bambu-p1s\"|\"bambu-p1p\"|\"bambu-x1c\"|\"bambu-x1e\"|\"bambu-h2d\"|\"bambu-h2s\"|\"prusa-mini-plus\"|\"prusa-mk4s\"|\"prusa-core-one\"|\"prusa-xl\"|\"creality-ender-3-v3\"|\"creality-k1\"|\"creality-k1-max\"|\"creality-k2-plus\"|\"elegoo-neptune-4-pro\"|\"anycubic-kobra-3\"|\"voron-2.4-250\"|\"voron-2.4-300\"|\"voron-2.4-350\"|\"ultimaker-s5\" (default \"generic-fdm\"; sets the bed for arrange and the slicer default; an unknown id is refused with the valid list; CLI: kernelcad print printers) }; parts that do not fit the bed are still written and reported as warn diagnostics export.3mf.plate-overflow / export.3mf.exceeds-bed, whose hint names the smallest profiles the layout fits on. gcode: { printer?: printer profile id, layerHeight?: mm, infill?: percent, supports?: boolean, material?: string }; requires a locally installed OrcaSlicer. Returns slicer predictions as gcode_stats; does not start a printer. glb: { axis?: \"y-up\"|\"z-up\", draco?: false, units?: \"m\"|\"mm\" (default \"m\", the glTF length unit) }. Default GLB scales millimetre geometry and part placement by 0.001 at the scene root. Explicit units:\"mm\" preserves raw millimetre coordinates only for clients that read asset.extras.kernelcad.units; standard glTF viewers still treat those values as metres. obj and usd are mesh exports with no extra options; usd writes ASCII USDA (millimeter, Z-up). svg-drawing: { views?: [\"front\"], sheet?: \"a4\"|\"a3\" (or any pdf-drawing sheet), projection?, titleBlock?: { title?, partName?, material?, revision? }, modelName?, date?, annotations?, exploded?: { factor, mode? }, balloons?, partsList?, sections?, autoAnnotate? }. views:[\"front\"] produces a centred front-only elevation for SVG or PDF; omit views for four views. Front-only sheets require front annotations and reject isometric balloons/exploded overlays. svg-drawing annotations is an array of authored dimensions/notes, each { kind: \"linear\"|\"radius\"|\"diameter\"|\"angular\"|\"note\", view?: \"front\"|\"top\"|\"left\"|\"iso\", text?, offset? } plus kind-specific geometry: linear { from, to }, radius/diameter { edge: EdgeQuery }, angular { from: EdgeQuery, to: EdgeQuery }, note { at, text }. from/to/at anchors are an [x,y,z] model point, { edge: EdgeQuery } or { face: FaceQuery }. Supplying any annotation REPLACES the automatic bounding-box dimensions; an annotation whose query resolves to zero or multiple matches fails the export rather than being dropped. svg-drawing sections is an array of { plane: \"xy\"|\"xz\"|\"yz\"|{ origin, normal }, label } (any non-zero normal). svg-drawing autoAnnotate is true or { tolerance?: \"ISO2768-f\"|\"ISO2768-m\"|\"ISO2768-c\", datums?: \"auto\"|[{ label, face: FaceQuery }], include?: [\"datums\"|\"flatness\"|\"holes\"|\"hole-positions\"|\"overall\"|\"fillets\"|\"chamfers\"|\"general-tolerance\"], dimensioningStyle?: \"baseline\"|\"chain\"|\"symmetry\" }; datums and tolerances declared in the script with shape.datum() / shape.tolerance() override the automatic ones. pdf-drawing: { sheet?: \"a4\"|\"a3\"|\"a2\"|\"a1\"|\"a0\"|\"ansi-a\"|\"ansi-b\"|\"ansi-c\"|\"ansi-d\"|\"ansi-e\"|\"auto\"|\"auto-ansi\" (default \"a3\"), projection?: \"third\"|\"first\", title?, partName?, material?, revision?, date? (default today), modelName?, views?: [\"front\"], annotations?, sections?, exploded?, balloons?, partsList?, autoAnnotate? (default true unless annotations are given) } — the svg-drawing keys mean the same. Mechanical SVG/PDF accept visualQa?: { autoRepair?: boolean, maxAttempts?: 1|2|3 }; drawing_report.visualQa includes the actual sheet checks, repair attempts and PDF readback. Legacy layoutRepair?: boolean is retained but cannot be combined with visualQa. No new tool is required. A clean drawing is not manufacturing certification. Mechanical SVG/PDF also accept draftingProfile?: \"general\"|\"machining\"|\"sheet-metal\" or { id, name, sheet, projection, dimensioningStyle, tolerance?, notes? }, with explicit options overriding profile defaults. Functional drawing review: shape.drawingReview(plan) source declarations merge with reviewPlans?: additional plans; decisionResolutions?: { [encodeURIComponent(planId)+\":\"+encodeURIComponent(decisionId)]: { note, provenance } }. drawing_report.review reports declared geometric-callout coverage and unresolved engineering decisions. requireCompleteReview?: true rejects incomplete/not-declared mechanical reviews before export; architectural style rejects review contracts. Coverage is not engineering certification. annotationOverrides?: { [drawing_report.annotations[i].id]: { suppress?, text?, view?, offset? } }; offset is extra nonnegative sheet mm. Text edits primary labels while preserving attached FCFs; datum/standalone FCF text is changed in its declaration instead. Suppressed rows remain in the report but not visible counts. Missing IDs warn after geometry edits. Authored annotations can set id for stable review identity. svg-drawing and pdf-drawing also take style?: \"mechanical\" (default, the part sheet) | \"architectural\" (a floor plan for a building or room model: section about 1 m above the floor with filled cut walls, wall / opening chain dimensions and overall sizes, room labels with net area, scale bar, north arrow; millimetres, or feet-inches when the model is in whole feet / inches) and plan?: { units?: \"metric\"|\"imperial\", cutHeight?: mm above the floor, rooms?: [{ name, at: [x, y] }], northDeg?: degrees clockwise from sheet up }. A building-sized model drawn in the default style gets a drawing.style.architectural-suggested warning."},"part":{"type":"string","description":"target:'part' — part name for single-part export, or 'all'."},"output_dir":{"type":"string","description":"target:'part' — destination directory (all-parts mode); files are <dir>/<part>.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":{"type":"boolean","description":"Skip the default STL/STEP validity and watertightness gates.","default":false},"job_id":{"type":"string","pattern":"\\S","description":"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":{"type":"string","maxLength":2000,"description":"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."}},"required":[],"allOf":[{"anyOf":[{"required":["job_id"]},{"required":["target"]}]}]},"annotations":{"title":"Export","readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"definitionHash":"3b0018fc154746ec747cac50927160db7be2179fcbb4adec2224f98952c9aadd","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-15T23:46:48.616Z","metadataTrust":"untrusted"},{"serverName":"com.kernelcad/kernelcad","endpointFingerprint":"08479da53eeb876bfe1b5e67eaffbda58e9871b6a4d2b2bfe5774ae377a19246","name":"fetch_part","title":"Fetch Part","description":"Fetch one bundled catalog part. Prefer `await lib.standard.nema17()` and `await lib.standard.bearing608()` — they are offline and do not download remote STEP. A lookup that cannot finish fails within 45s with errorCode parts.lookup.timeout. Do not retry in parallel.","inputSchema":{"type":"object","properties":{"id":{"type":"string"},"query":{"type":"string"},"category":{"type":"string"},"family":{"type":"string"},"standard":{"type":"string"},"partsBaseUrl":{"type":"string","description":"Opt-in remote endpoint; no default value ships with kernelCAD."},"includeModel":{"type":"boolean","description":"Resolve a hash-verified STEP/GLB model file instead of the plain catalog STEP record."},"model":{"type":"object","description":"Verified model options; supplying model implies includeModel.","properties":{"url":{"type":"string","description":"Direct public HTTPS .step/.stp/.glb download URL. Requires sha256, source and license."},"sha256":{"type":"string","description":"Required SHA-256 digest for an explicit URL; for catalog parts it overrides the catalog GLB digest."},"source":{"type":"string","description":"Catalog or manufacturer name, such as KiCad Packages3D."},"license":{"type":"string","description":"License string supplied by the source."},"attribution":{"type":"string"},"expectedBboxMm":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Expected [x,y,z] dimensions to compare with the measured model."},"toleranceRatio":{"type":"number","description":"Relative expected-versus-measured bbox tolerance, default 0.25."}}}}},"annotations":{"title":"Fetch Part","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"definitionHash":"0232d592925deb1cb6c19c1931936cab065ebfa493abc4de63783ad2b36b60f6","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-15T23:46:48.616Z","metadataTrust":"untrusted"},{"serverName":"com.kernelcad/kernelcad","endpointFingerprint":"08479da53eeb876bfe1b5e67eaffbda58e9871b6a4d2b2bfe5774ae377a19246","name":"find_part","title":"Find Part","description":"Search the bundled parts catalog (offline). For a NEMA-17 motor write `await lib.standard.nema17()`; for a 608 bearing write `await lib.standard.bearing608()`. Do not fan out parallel lookups and do not pass partsBaseUrl unless you set source:\"remote\". Remote lookups fail within 45s with errorCode parts.lookup.timeout instead of hanging.","inputSchema":{"type":"object","properties":{"query":{"type":"string"},"category":{"type":"string"},"family":{"type":"string"},"standard":{"type":"string"},"tag":{"type":"string"},"limit":{"type":"number"},"source":{"type":"string","enum":["local","remote","auto"]},"partsBaseUrl":{"type":"string","description":"Opt-in remote endpoint; no default value ships with kernelCAD."},"intent":{"type":"string","maxLength":2000,"description":"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."}}},"annotations":{"title":"Find Part","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"definitionHash":"5143253d9116ee91882a194a302d4697ceaf603bd296af30a9e3b0cf03a2799c","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-15T23:46:48.616Z","metadataTrust":"untrusted"},{"serverName":"com.kernelcad/kernelcad","endpointFingerprint":"08479da53eeb876bfe1b5e67eaffbda58e9871b6a4d2b2bfe5774ae377a19246","name":"flatten_pattern","title":"Flatten Sheet-Metal Pattern","description":"Use this when you need the unfolded flat pattern of a bent sheet-metal part. Return the unfolded 2D flat-pattern of a bent sheet-metal Shape as a Region (outer polyline + holes + bend lines + sketch plane). Any number of parallel bends; crossing bends need corner relief. Pass { file } or { code }; optional { featureId } to pick a specific Shape.","inputSchema":{"type":"object","properties":{"file":{"type":"string","description":"Hosted server: cannot read files from your machine — pass `code`, or `project:<slug>` for a saved project."},"code":{"type":"string"},"featureId":{"type":"string"}}},"annotations":{"title":"Flatten Sheet-Metal Pattern","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"definitionHash":"66ed32b764bb4453f11f77499183399b19bcb714df81248e04dfe31ce518efd0","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-15T23:46:48.616Z","metadataTrust":"untrusted"},{"serverName":"com.kernelcad/kernelcad","endpointFingerprint":"08479da53eeb876bfe1b5e67eaffbda58e9871b6a4d2b2bfe5774ae377a19246","name":"get_asset","title":"Get Catalogue Asset","description":"Fetch one public catalogue asset by slug. Read-only. No sign-in and no API key.\nA built-in kit/id returns the free editable downloads.source (.kcad.ts), studio_url, thumbnail_url, license, and published params and presets. params lists each declared control with its name, type, default, label, units, numeric range or choices. Dependent choicesBy maps constrain valid combinations. Download the source with plain GET and use its declared parameter names when editing.\nVisual scene kits include usage.evaluate_script and usage.render_preview options to build or preview geometry without mechanism checks. This does not verify mechanical behavior. Manufacturing assets retain the default checks.\nFor community slugs, returns the search fields plus params (the knob schema), presets, rig, and public download paths.\nParameter values use each control's declared unit. Geometry stats.size_m and stats.origin_y are metres, Y up.\nRIG: each rig entry is a named pivot. type \"rotate\" has range in degrees; type \"slide\" has range in metres; axis is the pivot's local x, y or z.\nlicense is the SPDX id to keep with the asset. The download paths are public catalogue routes. Call get_asset_pack for a short-lived signed zip URL. Do not send an API key.","inputSchema":{"type":"object","properties":{"slug":{"type":"string","minLength":1,"maxLength":200,"description":"Catalogue slug from search_assets."}},"required":["slug"],"additionalProperties":false},"annotations":{"title":"Get Catalogue Asset","readOnlyHint":true,"destructiveHint":false,"openWorldHint":true},"definitionHash":"9660179cb20036fe4ae8db9cf42dd1c2d558b81e010763c6117b42877c11ada7","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-15T23:46:48.616Z","metadataTrust":"untrusted"},{"serverName":"com.kernelcad/kernelcad","endpointFingerprint":"08479da53eeb876bfe1b5e67eaffbda58e9871b6a4d2b2bfe5774ae377a19246","name":"get_asset_pack","title":"Get Catalogue Asset Pack","description":"Return a short-lived signed URL for a catalogue asset zip (mesh, params, licence). Read-only. No sign-in.\nThe URL is already signed. Fetch it with GET. Do not send an API key or an Authorization header. It expires quickly; read expires_at. Share download_url with the user.\nUnits in the pack follow the catalogue: metres, Y is up. A rig, when present, names pivots of type rotate (degrees) or slide (metres).\nIf the publisher stored no pack, the result is { ok: false, error: \"not_stored\" }.","inputSchema":{"type":"object","properties":{"slug":{"type":"string","minLength":1,"maxLength":200,"description":"Catalogue slug from search_assets or get_asset."}},"required":["slug"],"additionalProperties":false},"annotations":{"title":"Get Catalogue Asset Pack","readOnlyHint":true,"destructiveHint":false,"openWorldHint":true},"definitionHash":"1678079925aef1cce9e1022a80dda216da13a0cde18142ccf68a0aeeef162c3c","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-15T23:46:48.616Z","metadataTrust":"untrusted"},{"serverName":"com.kernelcad/kernelcad","endpointFingerprint":"08479da53eeb876bfe1b5e67eaffbda58e9871b6a4d2b2bfe5774ae377a19246","name":"get_latest_render","title":"Get Latest Render","description":"Render a project's current model server-side and return it as an inline image so you can SEE what you built. Prefer open_in_studio for the happy path — it already includes an iso PNG preview in the same publish result when previewDelivered is true. Use this tool for a different `view`, a contact sheet (`view:\"all\"`), or when you only have a slug and are not publishing. Call with that `slug` to inspect whether the build looks right. CRITICAL — the image is rendered from the MODEL on the server; it does NOT reflect the user's Studio camera, zoom, or screen. NEVER ask the user to rotate, zoom, pan, move the camera, close a slider, or change their view to help you see — you cannot affect their screen and it cannot affect this render. To see a different angle, call this tool again with a different `view`. By DEFAULT (omit `view`, or `view:\"all\"`) it returns a CONTACT SHEET of all six canonical views in one labeled image — a 3×2 grid, top row [iso, front, right], bottom row [back, left, top] — so you can judge the model from every side regardless of its orientation (e.g. to find which side has the doors). Pass a single `view` (iso/front/back/left/right/top) for one large render of that angle. DETERMINISTIC: the same model + view always returns the same bytes — identical bytes are NOT a stale/lagging snapshot. If you changed the model, push it with open_in_studio FIRST, then re-render to see the change. The image is always current and never a blank capture. Colors and shading match Studio (same palette / base-material color). The slug is the capability: no OAuth for public/unlisted; private projects require the owner signed in. The PNG is base64-inlined as a real image block by default; pass `paths_only: true` for metadata only. No renderable geometry or a mesh failure → { ok: false, error, hint }, never a blank image. error \"mesh_timeout\" means the model took too long to build for a preview; the source is not wrong (it still exports) — do not rewrite it to fix the render.","inputSchema":{"type":"object","properties":{"slug":{"type":"string","description":"Project slug from open_in_studio/get_project/a /p/<slug> link. The slug is the capability — public/unlisted projects need no OAuth; private projects require the owner to be signed in.","minLength":1},"view":{"type":"string","enum":["all","iso","front","back","left","right","top"],"description":"View to render. Default \"all\" = a labeled contact sheet of every canonical angle (iso/front/back/left/right/top) — best for judging the whole model. Pass a single view name for one large render of that angle."},"paths_only":{"type":"boolean","description":"Controls PNG delivery. Default false: base64-inline the rendered PNG so clients that cannot fetch a URL over HTTP (e.g. a sandboxed agent) can still see it. Set true to return only metadata (smaller response)."}},"required":["slug"],"additionalProperties":false},"annotations":{"title":"Get Latest Render","readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"definitionHash":"6820a4c6af2d33d1b151692c380d606ea02df5bb8d3e1c4b4d8a813376668d76","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-15T23:46:48.616Z","metadataTrust":"untrusted"},{"serverName":"com.kernelcad/kernelcad","endpointFingerprint":"08479da53eeb876bfe1b5e67eaffbda58e9871b6a4d2b2bfe5774ae377a19246","name":"get_model_mesh","title":"Get Model Mesh","description":"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.","inputSchema":{"type":"object","properties":{"slug":{"type":"string","minLength":1,"description":"Project slug from open_in_studio/get_project."},"version":{"type":"integer","minimum":1,"description":"Exact immutable revision from open_in_studio/get_project_revision. Omit only to read the current model."}},"required":["slug"],"additionalProperties":false},"annotations":{"title":"Get Model Mesh","readOnlyHint":true,"destructiveHint":false,"openWorldHint":true},"definitionHash":"35459cc7904742c98022cd31ead417aaf8301738e1d1f7ba01b8af95d6b053f6","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-15T23:46:48.616Z","metadataTrust":"untrusted"},{"serverName":"com.kernelcad/kernelcad","endpointFingerprint":"08479da53eeb876bfe1b5e67eaffbda58e9871b6a4d2b2bfe5774ae377a19246","name":"get_project","title":"Get Project","description":"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/<slug> 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.","inputSchema":{"type":"object","properties":{"slug":{"type":"string","description":"The project slug from a listing or a /p/<slug> Studio link. Omit to list the signed-in user's saved projects.","minLength":1}},"additionalProperties":false},"annotations":{"title":"Get Project","readOnlyHint":true,"destructiveHint":false,"openWorldHint":true},"definitionHash":"a85ee068ae33014293f92fab6983237be10383d15df79671e65e187d321ffea0","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-15T23:46:48.616Z","metadataTrust":"untrusted"}],"endpoints":[{"endpointFingerprint":"08479da53eeb876bfe1b5e67eaffbda58e9871b6a4d2b2bfe5774ae377a19246","protocol":"streamable-http","status":"indexed","toolCount":50,"observedAt":"2026-11-15T23:46:48.616Z"}],"authentication":"unknown"},"connectionConfigurations":{"status":"ready","authentication":"not embedded","clients":{"Claude Desktop":{"mcpServers":{"com.kernelcad/kernelcad":{"url":"https://mcp.kernelcad.com/mcp"}}},"Cursor":{"mcpServers":{"com.kernelcad/kernelcad":{"url":"https://mcp.kernelcad.com/mcp"}}},"VS Code":{"servers":{"com.kernelcad/kernelcad":{"type":"http","url":"https://mcp.kernelcad.com/mcp"}}}}},"resourceType":"mcp-server","callable":true,"runtime":{"callable":true,"protocols":["mcp"]},"interfaces":[{"protocol":"mcp","transport":"streamable-http","url":"https://mcp.kernelcad.com/mcp"}],"profile":{"apiVersion":"1","schemaVersion":"1","id":"mcp-server:com.kernelcad%2Fkernelcad","resourceType":"mcp-server","canonicalUrl":"https://www.agentsjunction.com/api/v1/servers/com.kernelcad%2Fkernelcad","name":"com.kernelcad/kernelcad","description":"CAD in ChatGPT and Claude: editable parts, STEP/STL/drawings, in-chat 3D, automatic checks.","interfaces":[{"protocol":"mcp","transport":"streamable-http","url":"https://mcp.kernelcad.com/mcp"}],"capabilities":[],"identity":{"source":"official-registry","websiteUrl":"https://kernelcad.com/","repositoryUrl":"https://github.com/w1ne/kernelCAD-web","version":"0.17.1"},"verification":{"state":"official","confidence":100},"operations":{"resourceType":"mcp-server","name":"com.kernelcad/kernelcad","status":"online","lastCheckedAt":"2026-11-20T07:16:38.765Z","lastSuccessfulCheck":"2026-11-20T07:16:38.765Z","latencyMs":302,"consecutiveFailures":0,"isStale":false,"checks":{"endpointReachable":true,"protocolValid":true,"agentCardValid":null,"mcpHandshakeValid":true},"lastSeen":null,"lastSuccessfulInteraction":null,"lastHealthCheck":"2026-11-20T07:16:38.765Z","source":{"type":"health-check","url":null},"observedAt":"2026-11-20T07:16:38.765Z"},"security":null,"timestamps":{"createdAt":"2026-10-27T07:43:16.033Z","updatedAt":"2026-10-27T07:43:16.033Z","observedAt":"2026-11-20T07:16:38.765Z"},"compatibility":{"serverVersion":"0.17.1","protocolVersions":[{"protocol":"mcp","version":null}]}}}}