Share
AI agents
Ciwb can let an AI agent work in the open editor alongside you. The agent can look at the scene, build and paint voxels, set up bones and clips, take screenshots, render, and (if you allow it) export files. You watch every change happen in the viewport, and each thing the agent does is one step you can undo with Ctrl+Z.
It works with any agent that speaks the open Model Context Protocol (MCP): Claude, Cursor, Cline, Continue, LM Studio and others, including local models. Agents without MCP can use the same tools through a standard OpenAPI description.
The connection is off by default, only listens on your own computer (127.0.0.1), and needs a secret token. It is in the desktop app only.
Turn it on
- Open Settings (Ctrl+,) and find AI connection.
- Switch Allow AI agents on. The badge next to it shows the address, for example
127.0.0.1:47332. - Pick an Access level (see below).
- Click Connect next to your AI app. Ciwb lists the ones it finds on this PC: Claude Desktop, Claude Code, Cursor, VS Code, LM Studio and Codex CLI. Restart the app if Ciwb says so.
- Using something else? Pick it under Other app and click Copy setup, then paste it where that app keeps its MCP servers (see Set up your agent).
While an agent is connected, its name appears at the bottom right of the window with a robot icon. The icon pulses while it is working. Click it to open Settings.
Ciwb remembers the switch, the level and the token. If the usual port is taken, it picks the next free one and keeps it.
Access levels
You choose how much the agent may do. Ciwb enforces this itself: tools above the level are hidden from the agent and refused if it calls them anyway.
| Level | The agent can |
|---|---|
| Read only | Read the scene and voxels, take screenshots and renders, check the scene, move the camera, change the workspace and layout. It cannot change your project. |
| Edit project | Everything above, plus build, paint, transform, add objects, bones, clips and keys, change the palette and render looks, and undo or redo. Nothing is written to disk. |
| Edit and save files | Everything above, plus anything that writes files: saving, exporting GLB and other formats, saving screenshots. |
Change the level at any time; it applies to the next thing the agent does.
The token
The token is what stops other programs on your computer from driving Ciwb. It is written into the Other (web address) setup; every other setup reads it by itself.
Click Regenerate if a config with the token was shared by mistake, or to cut off every connected agent. Apps set up with Other (web address) need the new setup pasted in; the rest pick it up by themselves.
What the agent can do
The agent gets two kinds of tools.
Every command in Ciwb. Each entry in the command palette (Ctrl+K) is a tool, with the same settings its form shows: shapes, transforms, selection, colour, objects, Booleans, animation, views and so on. Their names start with cmd_, for example cmd_shape_sphere. New commands appear by themselves.
Direct tools for things an agent does often:
| Tool | What it does |
|---|---|
get_scene | Objects (ids, names, positions, sizes), palette, bones, clips, undo and redo |
get_voxels / set_voxels | Read or write voxels as [x, y, z, slot], up to 100,000 per call |
fill_box / fill_sphere | Fill, erase or paint a box or ball |
set_palette | Set palette colours (and materials) by slot |
add_object / select_object | Add an object, or make one active |
screenshot | A picture of the viewport, returned to the agent |
render | A path-traced render of the current camera, returned to the agent |
set_view | Point the camera: iso, front, top, side or an axis |
list_looks / apply_look | Render looks, see Rendering |
add_bone / add_clip / set_key | Basic rigging and animation |
check_scene | Floating clumps, leaks and other problems |
export_glb | Export a .glb to a path (needs Edit and save files) |
undo / redo | Step back or forward |
Coordinates are voxel cells in the active object's own space, with Y up. Colours are palette slots 1 to 255; 0 is empty.
Commands that normally open a save dialog still open it, so a file is only written where you choose. export_glb writes straight to the path the agent gives.
Set up your agent
One-click Connect
Connect adds a ciwb entry to the app's own MCP settings, and Disconnect takes it out again. Ciwb changes nothing else in the file.
| App | File Ciwb changes |
|---|---|
| Claude Desktop | %APPDATA%\Claude\claude_desktop_config.json |
| Claude Code | none: Ciwb runs claude mcp add --scope user ciwb for you |
| Cursor | %USERPROFILE%\.cursor\mcp.json |
| VS Code | %APPDATA%\Code\User\mcp.json |
| LM Studio | %USERPROFILE%\.lmstudio\mcp.json |
| Codex CLI | %USERPROFILE%\.codex\config.toml (the [mcp_servers.ciwb] table) |
- Backup: the first time Ciwb writes to a file, it saves the original next to it as
<file>.ciwb-backup. - Comments: if the file has comments or trailing commas (VS Code allows them), Ciwb leaves it alone and says so. Use Copy setup and paste the entry yourself.
- Moving Ciwb: if you reinstall or move Ciwb, it updates its own entries next time it starts, so connections keep working.
- The
ciwbcommand: the installer also puts Ciwb on your PATH, sociwb --mcp-stdioworks anywhere.
Copy setup
For any other app, or to see exactly what goes in, use Copy setup. Ciwb offers two ways in. Use whichever your agent supports.
- Program (every app in the list except Other): the agent starts a small helper (
Ciwb.exe --mcp-stdio) that passes messages to the open editor. It finds the port and token by itself. This works with almost every MCP client. - Web address (Other): the agent connects straight to
http://127.0.0.1:47332/mcp(MCP Streamable HTTP) with the token in anAuthorization: Bearerheader.
Copy setup fills in the real path, port and token. The examples below use placeholders.
Program:
{
"mcpServers": {
"ciwb": {
"command": "C:\\path\\to\\Ciwb.exe",
"args": ["--mcp-stdio"]
}
}
}
Web address:
{
"mcpServers": {
"ciwb": {
"type": "http",
"url": "http://127.0.0.1:47332/mcp",
"headers": { "Authorization": "Bearer YOUR_TOKEN" }
}
}
}
Ciwb must be open with AI connection on while the agent works. After pasting a config, restart the agent app or reload its tools.
Claude Desktop
Pick Claude Desktop and click Copy setup. In Claude Desktop, open Settings > Developer > Edit Config, which opens claude_desktop_config.json. Merge the ciwb entry into mcpServers and restart Claude Desktop.
Claude Desktop's Connectors for remote servers connect from the internet and can't reach 127.0.0.1, so use the config file.
Claude Code
Pick Claude Code, click Copy setup, and run the copied line in a terminal. It looks like this, with your own path:
claude mcp add ciwb -- "C:\path o\Ciwb.exe" --mcp-stdio
Run /mcp inside Claude Code to check it is connected.
Cursor
Open Cursor Settings > MCP (or edit .cursor/mcp.json in your project, or ~/.cursor/mcp.json for all projects) and paste the Cursor setup.
Cline
Open the MCP Servers panel in Cline, choose to configure installed servers, and paste the Claude Desktop setup's ciwb entry into mcpServers in cline_mcp_settings.json. Cline works with any model, including local ones through Ollama or LM Studio.
Cline also supports remote servers; the field names it uses for a URL server have changed between versions (needs checking), so the stdio config is the safe choice.
Continue
Continue reads MCP servers from its config.yaml. Add a block like this (needs checking against your Continue version):
mcpServers:
- name: Ciwb
command: C:\path\to\Ciwb.exe
args:
- --mcp-stdio
MCP tools are used in Continue's Agent mode. Pick a model that supports tool calling.
LM Studio
LM Studio (0.3.17 and later) reads mcp.json, in the same mcpServers format as above. Open it from the Program tab in the right sidebar (Install > Edit mcp.json) and paste either config (menu names need checking). Use a model that supports tool use.
Ollama with Open WebUI or other front ends
Ollama runs models but does not connect to MCP servers itself. Use a front end that does: Cline, Continue or LM Studio (above), or Open WebUI.
Open WebUI can add the tools as an OpenAPI tool server: add http://127.0.0.1:47332 with the description at /openapi.json and a Bearer token. Recent versions can also connect to MCP Streamable HTTP servers directly (needs checking for your version). If Open WebUI runs in Docker, 127.0.0.1 inside the container is not your computer; run it outside Docker or use a direct connection from your browser (needs checking).
ChatGPT
ChatGPT's MCP connectors (developer mode) and custom GPT actions connect from OpenAI's servers, which can't reach 127.0.0.1. Making Ciwb reachable from the internet would mean exposing the editor to anyone who gets the address, so it is not recommended.
To use OpenAI models with Ciwb, use a local client that supports MCP and OpenAI models, such as Cursor, Cline or Continue. OpenAI's Codex CLI also supports stdio MCP servers in its config.toml (needs checking).
Grok
Grok's built-in MCP support connects from xAI's servers, so like ChatGPT it can't reach your computer (needs checking). Use Grok models through a local MCP client that supports the xAI API, such as Cline, Continue or Cursor.
Other agents and plain function calling
Anything that can send HTTP can use the tools without MCP:
GET /openapi.json: an OpenAPI 3.1 description of every tool you've allowed.POST /tools/<name>with the arguments as a JSON body. The reply is{ "ok", "text", "images" }, where images are base64 PNGs.
Every request needs the Authorization: Bearer YOUR_TOKEN header.
Tips
- Ask the agent to call
get_scenefirst and to take ascreenshotafter building, so it can check its own work. - Undo works as usual. Each agent step is named AI: … in the undo history, for example AI: Fill box.
- Keep Edit project for everyday use, and only switch to Edit and save files when you want the agent to export.
- Turn AI connection off when you're done. Nothing listens while it's off.
Security
- Ciwb only accepts connections from this computer (
127.0.0.1), never from the network. - Every request needs the token. Requests from web pages in a browser are refused, so a website can't drive Ciwb even if it guesses the port.
- Requests over 8 MB are refused.
- Anything the agent can do, you can undo, except writing files at the top level.
Troubleshooting
The agent says it can't reach Ciwb. Check Ciwb is open and AI connection is on. If the badge shows a different port than your config, copy the config again.
401 or "wrong token". The token was regenerated. Copy the config again.
"Permission denied". The tool needs a higher Access level. Raise it in Settings, or keep it and ask the agent to do something else.
The agent doesn't see Ciwb's tools. Restart the agent app after changing its config. Some clients only load MCP servers at start-up.
A tool times out. Long renders and exports can take a while. Lower the render size or samples.