Embody

Embody

MCP server embedded in TouchDesigner with 45 tools for creating operators, setting parameters, wiring connections, managing externalizations, and building real-time visual projects through natural conversation.

Category
访问服务器

README

💬 Embody

Have a conversation with TouchDesigner.

Version TouchDesigner MCP Tools License GitHub Stars

Full Documentation  |  Changelog


TouchDesigner projects are binary .toe files — impossible to diff, merge, or review. Embody makes your TD projects readable: by AI, by version control, and by you. Git is not required — Embody works in any project folder.

What It Does

Envoy, Embody's embedded MCP server, lets AI assistants like Claude Code, Cursor, and Windsurf talk directly to your live TouchDesigner session. Create operators, wire connections, set parameters, write extensions, and debug errors — all through natural conversation. No copy-pasting code. No describing your network in chat.

Embody externalizes your operators to diffable files (.tox, .py, .json, .glsl, etc.) in a folder structure that mirrors your network hierarchy. Tag operators, update with ctrl + shift + u, and everything restores from disk automatically on project open — your externalized files are the source of truth.

TDN (TouchDesigner Network) exports your entire operator network to human-readable JSON — a structured language that both humans and LLMs can read, diff, and reconstruct. Review structural changes in pull requests, snapshot configurations, or hand an LLM a complete picture of your network.

Embody Manager UI

Feature What It Does
📦 Automated Externalization Tags COMPs and DATs, keeps external files in sync — auto-restores everything from disk on project open
🤖 Envoy MCP Server 45 tools let AI assistants create operators, set parameters, wire connections, and more
📄 TDN Network Format Export/import operator networks as diffable JSON for code review and snapshots
📤 Portable Tox Export Export any COMP as a self-contained .tox with all external references stripped

Quick Start

1. Project Setup

Embody writes externalized files relative to your .toe location — no special folder structure required. A git repository is recommended if you want diffable history and collaboration, but Embody works in any project folder:

my-project/              ← project folder (optionally a git repo)
├── my-project.toe       ← your TouchDesigner project
├── base1/               ← externalized operators
│   ├── base2.tox        ← COMP (TOX strategy)
│   ├── base3.tdn        ← COMP (TDN strategy — diffable JSON)
│   └── text1.py         ← DAT
└── ...

2. Install and Tag

  1. Download the Embody .tox from /release and drag it into your TouchDesigner project
  2. Tag operators — select any COMP or DAT and press lctrl twice to tag and externalize it
  3. Work normally — press ctrl + shift + u to update all externalizations, or ctrl + alt + u to update only the current COMP. On project open, Embody restores everything from disk automatically

Tip: If no operators are tagged, Embody will externalize all eligible COMPs and DATs, which may slow down complex projects. Tagging selectively is recommended.

3. Keyboard Shortcuts

Shortcut Action
lctrl + lctrl Tag or manage the operator under the cursor
ctrl + shift + u Update all externalizations
ctrl + alt + u Update only the current COMP
ctrl + shift + r Refresh tracking state
ctrl + shift + o Open the Manager UI
ctrl + shift + e Export entire project to .tdn file
ctrl + alt + e Export current COMP to .tdn file

For supported formats, folder configuration, duplicate handling, Manager UI, and more — see the Embody docs.


Envoy MCP Server

Embody includes Envoy, an embedded MCP server that gives AI coding assistants direct access to your live TouchDesigner session.

Setup

  1. Enable Envoy — toggle the Envoyenable parameter on the Embody COMP
  2. Server starts on localhost:9870 (configurable via Envoyport)
  3. Auto-configuration — Envoy creates a .mcp.json in your git repo root
  4. Connect — open a Claude Code session (or restart your IDE) in the repo root — it picks up .mcp.json automatically

If your project isn't in a git repo, add .mcp.json manually to your project root:

{
  "mcpServers": {
    "envoy": {
      "type": "http",
      "url": "http://localhost:9870/mcp"
    }
  }
}

Tools at a Glance

Tool What It Does
create_op Create any operator type in any network
set_parameter Set values, expressions, or bind modes on any parameter
connect_ops Wire operators together
execute_python Run arbitrary Python in TD's main thread
export_network Export networks to diffable .tdn JSON
create_extension Scaffold a full extension (COMP + DAT + wiring)
get_op_errors Inspect errors on any operator and its children

...and 37 more. See the full tools reference.

When Envoy starts, it generates a CLAUDE.md file in your project root with TD development patterns, the complete MCP tool reference, and project-specific guidance.


TDN Network Format

TDN (TouchDesigner Network) is a JSON-based format for exporting operator networks as human-readable, diffable text. Unlike binary .toe and .tox files, .tdn files can be meaningfully diffed in any text tool — or in git if you use version control.

  • Entire project: ctrl + shift + e
  • Current COMP: ctrl + alt + e
  • Via Envoy: export_network / import_network MCP tools

See the full TDN specification for format details, import process, and round-trip guarantees.


<details> <summary><strong>Logging</strong></summary>

Embody provides a multi-destination logging system:

  • File logging (default): dev/logs/<project_name>_YYMMDD.log, auto-rotates at 10 MB
  • FIFO DAT: Recent entries visible in the TD network editor
  • Textport: Enable the Print parameter to echo logs
  • Ring buffer: Last 200 entries via the Envoy get_logs MCP tool
op.Embody.Log('Something happened', 'INFO')
op.Embody.Warn('Check this out')
op.Embody.Error('Something broke')

</details>

<details> <summary><strong>Testing</strong></summary>

Embody includes 39 test suites covering core externalization, MCP tools, TDN format, and server lifecycle. Tests run inside TouchDesigner using a custom test runner with sandbox isolation.

op.unit_tests.RunTests()                              # All tests (non-blocking)
op.unit_tests.RunTests(suite_name='test_path_utils')   # Single suite
op.unit_tests.RunTestsSync()                           # All in one frame (blocks TD)

Via Envoy MCP: use the run_tests tool. See the full testing docs for coverage details and how to write new tests.

</details>

<details> <summary><strong>Troubleshooting</strong></summary>

  • Timeline Paused: Embody requires the timeline to be running. An error appears if paused.
  • Clone/Replicant Operators: Cannot be externalized. Embody warns if you try to tag them.
  • Engine COMPs: Engine, time, and annotate COMPs are not supported for externalization.

For more, see Troubleshooting.

</details>


Version History

See the full changelog for detailed version history.

Recent releases:

  • 5.0.305: Replicant duplicate detection fix (issue #4), TDN export improvements, ExternalizeProject dialog
  • 5.0.302: Fix duplicate path clone detection (issue #4), config file location (issue #5), Envoy startup flow
  • 5.0.278: Fix folder change crash (issue #3), regression tests
  • 5.0.277: Manager UI improvements, Ctrl+Shift+R shortcut, consistent "Update" terminology
  • 5.0.275: TDN export keyboard shortcut pars, keyboard shortcuts documentation
  • 5.0.274: Settings persistence across upgrades, extension initialization timing docs
  • 5.0.263: DAT content safety, palette clone fidelity, recursive TDN fingerprinting, venv validation
  • 5.0.259: Mandatory operator layout rules, /local path prohibition, TD connectivity recovery
  • 5.0.258: Multi-instance Envoy support, switch_instance tool, auto-suffix collision avoidance
  • 5.0.252: Windows process-kill fix, reconstruction verification fix
  • 5.0.251: Nested TDN child-skip on import, depth-sorted reconstruction ordering
  • 5.0.243: Headless smoke testing, file cleanup preferences, specialized COMP support, portable .tox hardening
  • 5.0.237: TDN v1.1 format, import error surfacing, save-cycle pane restoration, Envoy troubleshooting docs
  • 5.0.235: restart_td meta-tool, local MCP handshake, operator overlap warnings
  • 5.0.233: Project-level performance monitoring, /validate command, test runner dialog fix
  • 5.0.228: macOS timezone fix, toolbar hover highlight
  • 5.0.227: TDN crash safety — atomic writes, backup rotation, content-equal skip, About page filtering
  • 5.0.222: Rename tag_for_externalizationexternalize_op, clarify single-step workflow
  • 5.0.221: TDN annotation properties, GitHub release rule, templates cleanup
  • 5.0.220: Network layout rewrite, commit-push checklist rule, expanded MCP tool allowlist, tooltip fix
  • 5.0.217: TDN target COMP parameter preservation, user-prompted file cleanup, dock safety, git init hardening
  • 5.0.210: DAT restoration on startup, continuity check hardening, manager list row limiting
  • 5.0.208: Settings auto-deploy, bridge template, Envoy startup resilience
  • 5.0.206: Metadata reconciliation, network layout tool, TDN companion dedup
  • 5.0.204: Custom window header, path portability, TDN cleanup
  • 5.0.201: Robust first-install init, table schema expansion, release build hardening
  • 5.0.190: Automatic restoration — TOX and TDN strategy COMPs fully restored from disk on project open
  • 5.0: Envoy MCP server (45 tools), TDN format, test framework (38 suites), macOS support

Contributors

Originally derived from External Tox Saver by Tim Franklin. Refactored entirely by Dylan Roscover, with inspiration and guidance from Elburz Sorkhabi, Matthew Ragan and Wieland Hilker.

License

MIT License

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选