luciole-studio/misaka-agent/touchdesigner-mcp
Claude Code and agent skill by luciole-studio/misaka-agent
- community
Checking that the SKILL.md file is still in the repository.
Control TouchDesigner via twozero MCP.
Install
npx vskill@latest install luciole-studio/misaka-agent/touchdesigner-mcpSKILL.md
The same SKILL.md was published earlier as luciole-studio/misaka-agent/touchdesigner-mcp.
TouchDesigner Integration (twozero MCP)
CRITICAL RULES
- NEVER guess parameter names. Call
td_get_par_infofor the op type FIRST. Your training data is wrong for TD 2025.32. - If `tdAttributeError` fires, STOP. Call
td_get_operator_infoon the failing node before continuing. - NEVER hardcode absolute paths in script callbacks. Use
me.parent()/scriptOp.parent(). - Prefer native MCP tools over td_execute_python. Use
td_create_operator,td_set_operator_pars,td_get_errorsetc. Only fall back totd_execute_pythonfor complex multi-step logic. - Call `td_get_hints` before building. It returns patterns specific to the op type you're working with.
Architecture
36 native tools. Free plugin (no payment/license — confirmed April 2026). Context-aware (knows selected OP, current network). Hub health check: GET http://localhost:40404/mcp returns JSON with instance PID, project name, TD version.
Setup (Automated)
Run the setup script to handle everything:
The script will:
- Check if TD is running
- Download twozero.tox if not already cached
- Add
twozero_tdMCP server to Hermes config (if missing) - Test the MCP connection on port 40404
- Report what manual steps remain (drag .tox into TD, enable MCP toggle)
Manual steps (one-time, cannot be automated)
- Drag `~/Downloads/twozero.tox` into the TD network editor → click Install
- Enable MCP: click twozero icon → Settings → mcp → "auto start MCP" → Yes
- Restart Hermes session to pick up the new MCP server
After setup, verify:
Environment Notes
- Non-Commercial TD caps resolution at 1280×1280. Use
outputresolution = 'custom'and set width/height explicitly. - Codecs:
prores(preferred on macOS) ormjpaas fallback. H.264/H.265/AV1 require a Commercial license. - Always call
td_get_par_infobefore setting params — names vary by TD version (see CRITICAL RULES #1).
Workflow
Step 0: Discover (before building anything)
No temp nodes, no cleanup. This replaces the old discovery dance entirely.
Step 1: Clean + Build
IMPORTANT: Split cleanup and creation into SEPARATE MCP calls. Destroying and recreating same-named nodes in one td_execute_python script causes "Invalid OP object" errors. See pitfalls #11b.
Use td_create_operator for each node (handles viewport positioning automatically):
For bulk creation or wiring, use td_execute_python:
Step 2: Set Parameters
Prefer the native tool (validates params, won't crash):
For expressions or modes, use td_execute_python:
Step 3: Wire
Use td_execute_python — no native wire tool exists:
Step 4: Verify
Step 5: Display / Capture
Or open a window via script:
MCP Tool Quick Reference
Core (use these most):
| Tool | What | |
|---|---|---|
td_execute_python | Run arbitrary Python in TD. Full API access. | |
td_create_operator | Create node with params + auto-positioning | |
td_set_operator_pars | Set params safely (validates, won't crash) | |
td_get_operator_info | Inspect one node: connections, params, errors | |
td_get_operators_info | Inspect multiple nodes in one call | |
td_get_network | See network structure at a path | |
td_get_errors | Find errors/warnings recursively | |
td_get_par_info | Get param names for an OP type (replaces discovery) | |
td_get_hints | Get patterns/tips before building | |
td_get_focus | What network is open, what's selected |
Read/Write:
| Tool | What | |
|---|---|---|
td_read_dat | Read DAT text content | |
td_write_dat | Write/patch DAT content | |
td_read_chop | Read CHOP channel values | |
td_read_textport | Read TD console output |
Visual:
| Tool | What | |
|---|---|---|
td_get_screenshot | Capture one OP viewer to file | |
td_get_screenshots | Capture multiple OPs at once | |
td_get_screen_screenshot | Capture actual screen via TD | |
td_navigate_to | Jump network editor to an OP |
Search:
| Tool | What | |
|---|---|---|
td_find_op | Find ops by name/type across project | |
td_search | Search code, expressions, string params |
System:
| Tool | What | |
|---|---|---|
td_get_perf | Performance profiling (FPS, slow ops) | |
td_list_instances | List all running TD instances | |
td_get_docs | In-depth docs on a TD topic | |
td_agents_md | Read/write per-COMP markdown docs | |
td_reinit_extension | Reload extension after code edit | |
td_clear_textport | Clear console before debug session |
Input Automation:
| Tool | What | |
|---|---|---|
td_input_execute | Send mouse/keyboard to TD | |
td_input_status | Poll input queue status | |
td_input_clear | Stop input automation | |
td_op_screen_rect | Get screen coords of a node | |
td_click_screen_point | Click a point in a screenshot | |
td_screen_point_to_global | Convert screenshot pixel to absolute screen coords |
The table above covers the 32 tools used in typical creative workflows. The remaining 4 tools (td_project_quit, td_test_session, td_dev_log, td_clear_dev_log) are admin/dev-mode utilities — see references/mcp-tools.md for the full 36-tool reference with complete parameter schemas.
Key Implementation Rules
GLSL time: No uTDCurrentTime in GLSL TOP. Use the Values page:
Fallback: Constant TOP in rgba32float format (8-bit clamps to 0-1, freezing the shader).
Feedback TOP: Use top parameter reference, not direct input wire. "Not enough sources" resolves after first cook. "Cook dependency loop" warning is expected.
Resolution: Non-Commercial caps at 1280×1280. Use outputresolution = 'custom'.
Large shaders: Write GLSL to /tmp/file.glsl, then use td_write_dat or td_execute_python to load.
Vertex/Point access (TD 2025.32): point.P[0], point.P[1], point.P[2] — NOT .x, .y, .z.
Extensions: ext0object format is "op('./datName').module.ClassName(me)" in CONSTANT mode. After editing extension code with td_write_dat, call td_reinit_extension.
Script callbacks: ALWAYS use relative paths via me.parent() / scriptOp.parent().
Cleaning nodes: Always list(root.children) before iterating + child.valid check.
Recording / Exporting Video
H.264/H.265/AV1 need Commercial license. Use prores on macOS or mjpa as fallback. Extract frames: ffmpeg -i /tmp/output.mov -vframes 120 /tmp/frames/frame_%06d.png
TOP.save() is useless for animation — captures same GPU texture every time. Always use MovieFileOut.
Before Recording: Checklist
- Verify FPS > 0 via
td_get_perf. If FPS=0 the recording will be empty. See pitfalls #38-39. - Verify shader output is not black via
td_get_screenshot. Black output = shader error or missing input. See pitfalls #8, #40. - If recording with audio: cue audio to start first, then delay recording by 3 frames. See pitfalls #19.
- Set output path before starting record — setting both in the same script can race.
Audio-Reactive GLSL (Proven Recipe)
Correct signal chain (tested April 2026)
Critical audio-reactive rules (empirically verified)
- TimeSlice must stay ON for AudioSpectrum. OFF = processes entire audio file → 24000+ samples → CHOP to TOP overflow.
- Set Output Length manually to 256 via
outputmenu='setmanually'andoutlength=256. Default outputs 22050 samples. - DO NOT use Lag CHOP for spectrum smoothing. Lag CHOP operates in timeslice mode and expands 256 samples to 2400+, averaging all values to near-zero (~1e-06). The shader receives no usable data. This was the #1 audio sync failure in testing.
- DO NOT use Filter CHOP either — same timeslice expansion problem with spectrum data.
- Smoothing belongs in the GLSL shader if needed, via temporal lerp with a feedback texture:
mix(prevValue, newValue, 0.3). This gives frame-perfect sync with zero pipeline latency. - CHOP to TOP dataformat = 'r', layout = 'rowscropped'. Spectrum output is 256x2 (stereo). Sample at y=0.25 for first channel.
- Math gain = 10 (not 5). Raw spectrum values are ~0.19 in bass range. Gain of 10 gives usable ~5.0 for the shader.
- No Resample CHOP needed. Control output size via AudioSpectrum's
outlengthparam directly.
GLSL spectrum sampling
See references/network-patterns.md for complete build scripts + shader code.
Operator Quick Reference
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingmisaka/core/skills/assets/optional/creative/touchdesigner-mcp/SKILL.md
Popularity
- Repository stars
- 226
- Repository forks
- 10
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/luciole-studio/misaka-agent/touchdesigner-mcp)