Skip to content

FIRST RESULT

TouchDesigner MCP

twozero's built-in TouchDesigner MCP server lets your agent (Claude Code, Cursor, Codex) work in your live TD session: it reads the network, creates and wires operators, reads errors, runs Python and takes screenshots, while you watch the editor.

In the plugin MCP

Write in your agent's chat (the Claude Code terminal, Cursor, Codex), not in TouchDesigner.

Not connected yet? Start with Connect your agent.

First prompt

Open every new chat with a prompt that makes the agent look at TouchDesigner first:

prompt
Show me what you can see in my TD project.

Once it describes your project, just talk normally.

Point at the right place: *here and *this

*here / *тут The network you are looking at in TD right now.
*this / *этот / *эту The operator you have selected, or all of them if several are selected.
*these / *эти All operators you have selected.

The asterisk never appears in normal code or text, so the agent reads it as an exact pointer. Plain "here" or "this op" works too; the asterisk is for when precision matters.

prompt
*here in TD: add a feedback loop after the blur
prompt
Check *this op in TD: why is it red?

Hand over exact operators: Ctrl/Cmd+C

Select operators in the network editor and press Ctrl/Cmd+C. twozero puts their full paths on the clipboard, comma-separated, after a [td <project>.toe] tag that tells the agent which open TouchDesigner they came from. Paste them into the chat and write the task around them:

prompt
[td myProject.toe] /project1/base1/noise1, /project1/base1/blur1 make these two audio-reactive

It works with the twozero window closed; a network editor only needs to be in focus. Turn it off in Settings → EDITOR → Copy paths to clipboard.

Prompts worth stealing

prompt
Audit *this op and the surrounding chain. Don't change anything yet.
prompt
Why is this slow? List the top slow ops with cook times.
prompt
Check errors inside *this comp.
prompt
Refactor *this network: same result, fewer ops, no broken refs.
prompt
Rebuild this .html / .pen UI as native TD panels, exactly, responsive to par.w and par.h.
prompt
Find <name> in my twozero Cloud and place it into *this network.

The agent can also browse the Rudiments library and place a rudiment into your network; a PRO rudiment still needs PRO. Whole sessions with full prompts are on Playbook.

Built-in phrases

study this project / изучи проект A tour of an unfamiliar or large patch, rather than a poke at one op.
twozero bug report / twozero баг репорт Starts the built-in bug report. The word twozero is required, so a generic "report a bug" does not trigger it.

Work safely

prompt
Plan first, then change: diagnose, propose, wait for my approval.
prompt
After fixes: re-run error and performance checks to verify.
  • Ctrl/Cmd+Z undoes one agent action. Every editing call is one step in TD's undo list, named MCP #<n>, and when you undo a step the agent hears about it in its next reply. Text the agent wrote into a DAT from Python and files on disk are not undone.
  • A failed script can clean up after itself. By default the edits a failed td_execute_python already made stay, and the reply says so. Ask for on_error='rollback' and they are undone.
  • The agent sees what it did. A reply to an editing call lists what it created, what it deleted and which new errors appeared.
  • Watch it work: Settings → AI & MCP → Navigate to AI changes moves the network editor to the operators the agent creates or edits.
An agent builds a network: new operators land in it one by one, wired as they go.

Questions about a big project

Ask the agent to study the project once, and it can then answer questions about how it is wired without touching TD: who references this operator, who calls this function, how two operators are connected, whether a DAT still matches its file. The tool is td_graph_query. It reads a saved dump of the project, so it works while TD is busy and tells the agent when the dump is out of date.

Heavy walks over a big project (td_parse_project, td_search, td_get_errors, flat td_get_network) run in pieces over frames, so TD keeps running. To check a picture without a screenshot, the agent can read a TOP's pixel statistics with td_get_operators_info(stats=true): it says whether the result is black, transparent or flat.

Cloud and your agent

Reading your Cloud and the Rudiments library goes through td_hub. Every action that changes something (upload, delete, share, public link) goes through a separate tool, td_hub_write, so you can have your agent's client ask you before those calls. A write sent to td_hub is refused with a pointer to the right tool. An upload answers with a job id right away, and the agent follows the job rather than uploading again; the packing runs across frames, so TD keeps running. With no repository named, the upload goes to your own personal repository.

Russian and TD slang

Mix English and Russian freely; the agent understands TD terms in both:

TouchDesigner TD, тач
project, patch проект, патч, .toe
operator op, оператор, оп
parameter par, параметр, пар
*here in TD в таче *тут
*this op in TD в таче *этот оп
*these ops in TD в таче *эти опы
Show me what you can see in my TD project. Посмотри, что у меня в таче.

How it works

Agent → MCP request → twozero server inside TD → runs in your live project → result back to the agent. Your patch is read and changed on your machine. What leaves it: whatever your agent's LLM provider sees in the conversation, anonymous plugin usage statistics (no account, no email, no IP address), and anonymous crash reports of the plugin itself: the masked error and versions, never your patch. Crash reports are on by default; turn them off in Settings → PLUGIN → Crash reporting.

You can also ask your agent to send telemetry to the developers: it shows you a preview of the session's trace first, and nothing leaves until you say yes.

Several TouchDesigners open at once all register with the one server on your port (40404 by default). The agent lists them and asks which one to act on.

The MCP server accepts connections from this machine only.

Source, issues and the Cursor extension: github.com/twozero-team/twozero-td-mcp.

The agent doesn't see TouchDesigner? See Agent can't see TD.