Repository navigation
Connect an AI Agent
While Robot Studio runs, it serves MCP (Model Context Protocol, a standard way for an AI agent to call a program's tools) over Streamable HTTP on your own computer. An agent connected to it works on the project that is open in the window. Every change appears there as it happens and can be undone.
Robot Studio does not include an AI model. You bring your own MCP client, such as Claude Code.
The server offers the same operations through two endpoints, called profiles:
| Profile | Default address | Use it for |
|---|---|---|
| Full | http://127.0.0.1:7801/mcp |
Existing scripts, native tool names, and clients that apply permission rules to individual tools |
| Compact | http://127.0.0.1:7801/mcp/compact |
Claude Code and other local Streamable HTTP clients that benefit from a small tool list |
- Full lists every operation as its own tool, about 370 of them. Their names and descriptions are large: when measured on 2026-11-22, the full instructions and tool list took 571,114 bytes.
- Compact starts with four tools and finds the rest on demand. The same measurement took 3,248 bytes, a 99.4% reduction. Use it for agents with smaller context windows (the amount of text a model can hold at once).
Both profiles run the same handlers with the same validation, approvals, design feedback and undo, and both work on the open project. Configure one profile per agent session.
Keep Full when your client's own permission rules name individual tools: through Compact, the client only sees
the four entry tools. Clients that turn MCP schemas into model function definitions must accept the free-form
arguments object of execute_tool to use Compact.
Start Robot Studio first (npm run dev). Then, in a second terminal, from any folder:
claude mcp add --transport http --scope user robot-studio http://127.0.0.1:7801/mcp/compact--scope user registers the server for every folder you start claude in. Then start claude.
Or start claude inside the robot-studio folder. The repository's .mcp.json names the Compact endpoint,
and Claude Code offers it when it starts there:
{
"mcpServers": {
"robot-studio": {
"type": "http",
"url": "http://127.0.0.1:7801/mcp/compact"
}
}
}For the Full profile, the window's dialog gives the command with the /mcp address:
claude mcp add --transport http robot-studio http://127.0.0.1:7801/mcpCheck the connection with claude mcp list in a terminal or /mcp inside Claude Code. A robot-studio server
registered earlier in another scope may still point at /mcp: check which one is in effect, remove the one you do
not want, and start a fresh Claude Code session so it loads the connection.
Any MCP client that supports Streamable HTTP and runs on the same computer can connect. This is the JSON the dialog shows for the Compact profile:
{
"mcpServers": {
"robot-studio": {
"type": "http",
"url": "http://127.0.0.1:7801/mcp/compact"
}
}
}Use http://127.0.0.1:7801/mcp for the Full profile. Where this JSON goes depends on your client; see its
documentation. Robot Studio is developed and tested with Claude Code.
The dialog shows the real address, which matters when port 7801 was taken and the server moved to another port (see Installation). Open it from:
- the Connect an agent pill in the top bar, before any agent has called a tool;
- How to connect on the Home page;
- How an agent connects in the Agent activity panel;
- Settings (the gear in the top bar) → Agents.
It opens on the Full tab. Select Compact to switch the endpoint address, the Claude Code command and the JSON configuration to the lighter profile. Below the tabs, the Tool catalog lists every operation with a one-line description.
- The server listens on
127.0.0.1only. It is not reachable from other computers. - Every request is checked for its
HostandOriginheaders. A request whose host is not127.0.0.1,localhostor[::1], or that comes from a web page of another origin, is refused. This guards against DNS rebinding and against web pages you visit trying to reach the server. - There is no password or token. Any program on your computer that can reach
127.0.0.1can use the server. - Actions that touch the real world wait for you to click Allow in the window: uploading firmware to a board, downloading a program or board package, sending a file to a printer, running a program or an extension, deploying files to a device, adding an add-on or a library, pushing a project with Git, and more. See MCP Tools.
- The endpoint is stateless: each request stands alone, so restarting the app never leaves an agent holding a dead session.
Compact gives the agent four tools:
| Tool | What it does |
|---|---|
search_tools |
Finds operations by exact name or a few English keywords. An empty query browses all of them. Returns up to 12 short results per page, marks the ones that change the project, and gives a nextOffset for the next page. |
describe_tool |
Returns one operation's full description, input schema and effect hints. |
execute_tool |
Runs one operation by its exact name with an arguments object, validated against that operation's schema. |
read_guide |
Lists the studio's workflow guides (36 topics, such as workflow, schematic, printing and annotations) and reads one in pages of at most 1,800 characters. |
A typical first sequence:
| Step | Call |
|---|---|
| Read project counts and issues |
execute_tool with {"name":"get_project_summary"}
|
| Find relevant tools |
search_tools with {"query":"assembly","limit":6}
|
| Read one tool's schema |
describe_tool with {"name":"list_assemblies"}
|
| Call it |
execute_tool with {"name":"list_assemblies","arguments":{}}
|
| Find studio guidance |
read_guide with {}, then with {"topic":"<id from the result>"}
|
An agent that already knows a tool's name can call it directly through execute_tool. The server's instructions
tell the agent the conventions (millimetres and degrees, Z up, Euler XYZ rotations, pins as PART.PIN, mechanical
ports as PART.PORT), to check design_feedback, to run run_checks before presenting a design as finished, and
to acknowledge notes you leave with AI Annotate.
The details, budgets and tests are in the repository's agent context plan.
AGPL-3.0 · github.com/Niomatic/robot-studio · niomatic.com
Get started
Using the studio
Reference