# ReDo > ReDo is a browser CAD playground for real parts: boards, breadboards, motors, LEGO, printed brackets. AI agents use it through a remote MCP server to find parts, design new ones in OpenSCAD or CadQuery, build projects, and hand the person a link that opens them in 3D. ## Connect - MCP server (Streamable HTTP, POST only, no account needed): https://redo.pro/api/mcp - How to add it to Claude.ai, ChatGPT or Claude Code: https://redo.pro/agents - Claude.ai step by step: https://redo.pro/wiki/connect-claude ## Build locally - ReDo's OpenSCAD compiler and kernel run on the agent's own machine, the same build as the server's: `pip install redocore` or `npm install -g redocore`, then `redocore build part.scad --step part.step --png part.png --json` (size, box, volume, declared holes and pins, through-holes, echoes; a mistake as file:line:column); `redocore faces part.scad --select ">Z"` lists faces and edges with the selectors fillet, chamfer, shell and on_face take. ReDo's libraries are built in. - As an MCP server on stdio, with build, faces and export tools: `claude mcp add redocore -- npx -y redocore mcp`; for Claude Desktop, https://redo.pro/downloads/redocore.mcpb. - More: https://redo.pro/wiki/redocore-local ## Tools - search_parts, describe_part: find real parts and read their sizes, options, holes and pins. - build_project: save a scene, or build one step by step (add, mate, seat on a breadboard, wire, group), and get its link and a picture. A change to a project answers only what it changed (`brief: false` for every item and the parts to buy), and `picture: false` draws no picture, for quicker steps on a big project. - make_part: design a part in OpenSCAD, or in CadQuery with `language: "cadquery"` (the script ends with show_object), placed in a project; `parts` builds up to 10 parts in one call; `replace` changes one in place; `copies` places more of the same design. ReDo's OpenSCAD adds fillet, shell, draft, loft, sweep and on_face, with selectors that name faces and edges (">Z", "|Z", "on >Z", "r=5"); `faces: true` lists a part's faces with the selectors naming each, and describe_part does the same for a parametric library part. - show_project: pictures from any side or cut open, and STEP, STL and 3MF files. - status: who is calling and how many builds are left today; with `job`, the answer of a call that was still running. ## Rules for every agent 1. ReDo's library first. Before designing a part, search_parts for it: bearings, rods and shafts, gears, couplers, motors, screws, nuts, extrusions and boards are there, many of them parametric. Design a part with make_part only when the library has nothing usable, and tell the person which parts you designed. 2. One design, many copies. Never design or upload the same part twice. Give make_part `copies` (a position and rotation for each other place it stands), or copy a part already in a project with build_project's `add_part {like: ""}` as `"x"`, then `move {item: "$x", position, rotation}`. 3. Colour a part with build_project's `finish` step (`{items, color: "#rrggbb"}`), or in CadQuery with show_object's `color` option. 4. With a terminal, shape an OpenSCAD part locally first (`npx -y redocore build part.scad --png part.png --json`, `npx -y redocore faces part.scad`): the same build in milliseconds, so make_part sends only the finished script. 5. In OpenSCAD, never set `$fn` to make a circle round. Circles are exact here, and `$fn` turns each one into a polygon that builds many times slower: a plate of a hundred `$fn = 48` holes runs out of time, and the same plate without `$fn` builds in seconds. Set it only for a polygon, as `$fn = 6` for a hexagon. 6. A call still working after 45 seconds answers `running` and a `job`, and carries on by itself. Never send that call again: call status with the `job` for its answer. ## Designing an assembly One script is one part. For a machine of many parts (a printer, a robot, a gearbox), send the parts as make_part's `parts`, up to 10 a call, all into the same project: the first call makes the project, each next one passes its `project` and `edit_key`. Give every part `position: [0, 0, 0]`, so it stands where its own script placed it, and the call one `group` name, so the parts stay together. Parts already standing in a project are grouped with build_project's `group` step (`{items, name}`); group last, since a group's parts move as one and two of them can no longer be mated to each other (https://redo.pro/wiki/groups). Never send a whole machine as one script: a part's packed STEP is at most 1 MB, and separate parts can be moved, hidden and changed one at a time. Every answer names each part's item id and uuid, and build_project lists a project's items by id, so nothing has to be found by provoking a collision. What each build_project step takes is the resource redo://steps/. ## Links to hand the person - `link` opens the project in the Playground, read-only, for anyone holding it; `page` is its project page. - `owner_link` (made signed out) is for the person you work for alone: signed in, it keeps the project in their ReDo Workshop, where you can still change it with the edit key; signed out, it lets them delete it. - A project made signed out is unlisted and deleted after 30 days unless kept. ## Read more - Parts: https://redo.pro/inventory - Wiki: https://redo.pro/wiki - Privacy: https://redo.pro/privacy