jumpstart-3d
Build and edit 3D parts in JumpStart 3D through its MCP tools: Beginner shapes, Advanced sketches and features (extrude, fillet, shell, holes), groups, parameters, screenshots, STL/STEP/OBJ/3MF export. Use when the user asks for a part, bracket, box, enclosure or any 3D model, or for an edit to the design they have open in JumpStart 3D.
- License 许可
- AGPL-3.0
- 最近更新
- 2026-11-15
- Stars
- ★ 159
- Forks
- 50
01 前言 Front Matter
- name
- jumpstart-3d
- description
- Build and edit 3D parts in JumpStart 3D through its MCP tools: Beginner shapes, Advanced sketches and features (extrude, fillet, shell, holes), groups, parameters, screenshots, STL/STEP/OBJ/3MF export. Use when the user asks for a part, bracket, box, enclosure or any 3D model, or for an edit to the design they have open in JumpStart 3D.
03 SKILL.md 正文
Driving JumpStart 3D
JumpStart 3D is a CAD app that runs in a browser. These tools edit a design in it. The tool names start with a prefix your client adds; this text uses the short names (status, add_shape...).
Before risky steps, use checkpoint; review with diff_checkpoint and use rollback on failure (one undo step).
Facts to keep straight
inspect_bodiesgives size, volume, area and weight (default PLA);measuregives distances (two flat faces picked witha_near/b_neargive a wall's thickness);check_printsays whether the design prints as it sits (on the plate, fits the printer, overhangs);check_collisionsfinds parts that overlap or touch;section_viewcuts the design and gives the outline areas.- Lengths are millimetres, angles degrees, positions
[x, y, z]with z up. add_shapeputs the middle of the shape's footprint atat[x, y]and its base atatz. Default[0, 0, 0].- Sizes are
{w, d, h}(width x, depth y, height z) or[w, d, h].list_kindsshows the 20 kinds and their size keys. - Never guess an id. Every tool that takes ids needs ones returned by
add_shape,group_bodiesorlist_bodies. - Shapes are built in the background.
volumeandbboxinlist_bodiesare null until you callwait_ready.screenshotandexport_filewait by themselves. - A hole is a cutter, not a part. It is see-through, is left out of exports, and does nothing until
group_bodiescombines it with a solid. - A group's own position stays
[0, 0, 0]; readbboxto see where it is. add_fastenermakes a whole bolt, nut, threaded rod or tap cutter with a real thread (metric M2.5 to M12, inch #6 to 1/2). A bolt'slengthis under the head. A tap cutter is a hole: put it inside a solid andgroup_bodiesboth, and it cuts a threaded hole. Threads take a few seconds to build, so callwait_ready. More than 150 thread turns is refused.add_hole_patterndrills a grid, a staggered grid or a circle of round holes into one flat face of a body, as one Hole feature.faceis the direction the face looks (+zis the top). Columns run along the face's longest straight edge (on a box top, the longer side), rows across it;angleandstartare measured from that edge. Leavepitchout to spread the holes over the face; holes that would not fit inside the face and itsmarginare left out and counted indropped. Plain, counterbore (cbore), countersink (csink) ortapped, with asizesuch asM3.shapesquare,hexorslotcuts that outline instead (width: the side, the width across flats or the slot's width;length: the slot's overall length) as one sketch and one Extrude cut, with the same layouts; stagger with a row pitch of 0.866 x the column pitch for a honeycomb. More than 200 plain holes or shapes (130 counterbores or countersinks, 8 tapped) is refused. Callwait_readyafter.add_gearmakes a spur gear, a helical gear (angle5 to 30,hand; it meshes with one of the opposite hand on a parallel axis), a straight bevel gear or a rack frommodule(mm) andteeth. Two spur gears of one module mesh at centresmodule × (teeth1 + teeth2) / 2apart; whenteeth2is even, turn the second by180 / teeth2degrees about its own centre with rotate_bodies. Call wait_ready after.add_gear_setplaces gears that already mesh: a pair, rack and pinion, ring, planetary set (with motion-study joints), a 90 degree bevel pair or a helical pair.add_box_makermakes a Box Maker set: open bins with compartments, or cases with drawers, tilt bins or doors, stacked and side by side.add_hardwareadds any Fasteners-library part (screws, nuts, washers, heat-set inserts, dowels);add_springa compression spring.add_texture(keys fromlist_textures) textures a body or some faces; mesh only, so STEP has no texture.export_drawingwrites a DXF of Top, Front and Right.add_name_platemakes a tag or name plate sized to one line of text: raised letters are a second body in their own colour (do not group_bodies them with the plate, that fuses them into one colour); cut letters are part of the plate. Call wait_ready after.add_knurlmakes a knurled knob or grip: a cylinder with straight V grooves and an optional round, hex or D bore. For a diamond pattern use the app's Texture. Call wait_ready after.
The loop
statusfirst. It never starts a browser.pagesays where you are:tab: the user's open browser tab. You are editing their real design. Add to it; callnew_designonly if they ask (it replaces what is on screen).headless: your own invisible browser with a blank design.none: nothing yet. Any other tool starts headless. If the user wants their open tab, tell them: Customize (the sliders button in the top bar), turn on "Connect to AI agent". Chrome may ask to allow "local network access" for the website; they must allow it.
- Build with
add_shape, thenset_hole,move_bodies,resize_shape,group_bodies. wait_ready, theninspect_bodies(orlist_bodies) to check sizes and volumes, andcheck_printbefore you call a part printable. A body with anerrordid not build; read the message, fix it, orundo.screenshotafter every few edits and look at it. Do not trust the numbers alone. If your model cannot see images, passpath(a file name): the PNG is saved there and you get{path, bytes, width}as text, so the user can look at the file.- At the end
export_fileand tell the user the full path. Use an absolute path; a relative one is relative to the folder the server was started in. Kinds:stl,obj,3mf,glb,step,json(the project file).
If a tool fails with "could not start the headless browser", tell the user to run npx playwright@1.62.1 install chromium once and then try again. Headless opens the public site (https://maxsikorski.github.io/jumpstart-3d/) unless the server runs from a checkout that has a built docs/ folder, or JS3D_APP says otherwise, so it needs internet when the server runs from the installed plugin.
Worked example: a 40 x 30 x 20 mm block with an 8 mm hole straight through
add_shape{"kind": "box", "size": {"w": 40, "d": 30, "h": 20}, "name": "Block"}returns the block's id, say"b1".add_shape{"kind": "cylinder", "size": {"w": 8, "d": 8, "h": 30}, "at": [0, 0, -5], "hole": true, "name": "Hole"}returns"b2". It is taller than the block and starts 5 mm below it, so it cuts all the way through.group_bodies{"ids": ["b1", "b2"], "name": "Block with hole"}returns the group's id, say"b3".wait_ready, thenlist_bodies: one body, volume about 22994.7 mm3 (24000 minus the hole).screenshotto look.export_file{"kind": "stl", "path": "/Users/me/block.stl"}returns the path and byte count.
To cut one existing solid out of another instead: group_bodies with "op": "cut" subtracts every later id from the first.
Advanced parts: sketches, features, selectors
For a part that is more than basic shapes (an enclosure, a bracket with fillets and holes), work in Advanced mode and build it like a person does:
new_designwithmode: "advanced"(only when the user wants a fresh design, never on their open tab unasked).add_sketchwith shapes (rect,roundrect,circle,slot,polygon,polyline,line; sizes may be expressions such as"W/2"), thenextrude(orrevolve). Cut or join withop;through: truecuts right through.list_facesandlist_edgesto look: positions, normals, sizes, in world mm. Indices are valid only until the next edit.shell_body,fillet_edges,chamfer_edges,add_holes,pattern_features, thenwait_ready,list_bodies(error? volume?) andscreenshot.
Faces and edges are picked with a selector, not an index: top, bottom, front (-y), >z (the highest), |z (parallel to z), #z, hole, circle, edges of top, joined with and, or, not and brackets. The outer rim of an open box: edges of top and (>x or <x or >y or <y). A selector is resolved when you call; after a parameter change, look again with list_faces or list_edges. A fillet too large for the walls shows as the body's error in list_bodies: undo and use a smaller radius.
What the tools cannot do
Sweeps, lofts, mirrors, split, emboss, threads and construction planes have no tool. Use run_script for those and anything else: it runs JavaScript in the page with JS3D in scope and returns the value as JSON. Top-level await works; end with return to give a value back. It has the full power of the page, so use it for the design only. Full reference: BRIDGE.md in the JumpStart 3D repository (https://github.com/MaxSikorski/jumpstart-3d/blob/main/BRIDGE.md). The calls you will use most:
JS3D.add("box", { size: [40, 30, 20], at: [0, 0, 0], hole: false }) // returns an id
JS3D.group([a, b], { name: "Part", op: "cut" }) // join, or cut/intersect
JS3D.scale(id, [1, 1, 2]); JS3D.rotate(id, "z", 45) // about the box middle: after `await JS3D.ready()`, or pass `{ about }`
JS3D.setParam("w", "40"); JS3D.bind(id, "w", "w/2") // a size that follows a parameter
await JS3D.ready(); JS3D.list(); JS3D.get(id).volume // wait, then read
await JS3D.screenshot({ fit: true, width: 800 }) // PNG bytes
await JS3D.export("step") // bytes; also stl, obj, 3mf, glb, json
await JS3D.load(jsonText) // open a project file you wrote
To get something no tool makes in, write a project file by hand (format in BRIDGE.md Part 2) and open it with load_project.
Mistakes to avoid
- Calling a part ready to print without
check_print. - Reading
volumebeforewait_ready. - Rotating or scaling before
wait_ready(the tools throw while a body is still being built unless you passabout). - Calling
group_bodieswith a hole alone: a hole needs a solid to cut. - Forgetting that
atz is the base of the shape, not its middle. - Using
new_designon a user's open tab without being asked. - Telling the user a file exists without the path from
export_file.
04 同仓库更多 Skills
home-skill
暂无简介
real-skill
暂无简介
real-skill
暂无简介
jumpstart-3d
Build and edit 3D parts in JumpStart 3D through its MCP tools: Beginner shapes, Advanced sketches and features (extrude, fillet, shell, holes), groups, parameters, screenshots, STL/STEP/OBJ/3MF export. Use when the user asks for a part, bracket, box, enclosure or any 3D model, or for an edit to the design they have open in JumpStart 3D.