touchdesigner-mcp
AGENTS.md563 starsChanged 2 months agoMITView on GitHub
src/ contains the TypeScript MCP server: shared logic is in core/, MCP features in features/, transport code in transport/, and TouchDesigner communication in tdClient/. The OpenAPI contract starts at src/api/index.yml. TouchDesigner-side Python, templates, generated artifacts, and .tox components live in td/. Tests belong in tests/unit/ or tests/integration/ for the TypeScript side and tests/python/ for TouchDesigner-side Python, documentation in docs/, and media in assets/. Treat dist/, src/gen/, and td/modules/td_server/ as generated output; edit their source schemas or templates instead. Use ESM…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository5 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- integration-test-guardSkill
- prepare-releaseSkill
- release-test-auditSkill
- touchdesigner-self-debugSkill
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 34
Keep local services bound to 127.0.0.1 unless remote access is intentional.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Repository Guidelines
Project Structure & Module Organization
src/ contains the TypeScript MCP server: shared logic is in core/, MCP features in features/, transport code in transport/, and TouchDesigner communication in tdClient/. The OpenAPI contract starts at src/api/index.yml. TouchDesigner-side Python, templates, generated artifacts, and .tox components live in td/. Tests belong in tests/unit/ or tests/integration/ for the TypeScript side and tests/python/ for TouchDesigner-side Python, documentation in docs/, and media in assets/. Treat dist/, src/gen/, and td/modules/td_server/ as generated output; edit their source schemas or templates instead.
Build, Test, and Development Commands
npm installinstalls Node dependencies.npm run buildregenerates code, compiles TypeScript, and copies runtime templates.make buildperforms the Docker-based TouchDesigner module build.npm run devopens the MCP Inspector against the built stdio server.npm run httpstarts HTTP mode on127.0.0.1:6280, targeting TouchDesigner on9981.npm testruns every suite, includingtest:python;npm run test:unitandnpm run test:integrationscope to Vitest.npm run test:pythonruns the TouchDesigner-side Python suite against a stubbedtdmodule. It needs Python 3.9+ with pytest, oruv; without either it reports and skips, while CI always runs it.npm run ci:test:integrationis the subset oftests/integration/that needs no live TouchDesigner. It sits outside thetest:namespace deliberately, sonpm testdoes not run it twice.npm run coveragewrites V8 reports;npm run lintruns all static checks.npm run genrefreshes OpenAPI, Python handler, and TypeScript client output.
Coding Style & Naming Conventions
Use ESM TypeScript, tabs, and double quotes; let Biome organize imports. Use camelCase for files and functions, PascalCase for types, and generally kebab-case for directories. Python targets 3.9, which is the floor older TouchDesigner builds ship — PEP 604 unions (X | None) break import there, so use Optional[X]. Ruff enforces tabs, double quotes, and an 88-character line length over td/ and tests/python/; npm run lint checks formatting as well as lint rules. Run npm run format for automatic fixes. Keep changes focused.
Testing Guidelines
Name tests *.test.ts and place them in the appropriate unit or integration directory. Use Vitest globals and vi.mock or in-memory fakes. Add regression coverage for bug fixes, especially compatibility, transport, and TouchDesigner client changes. Run the narrow suite while developing, then npm test and npm run lint before submitting.
Commit & Pull Request Guidelines
Use concise imperative subjects with prefixes such as feat:, fix:, test:, docs:, chore:, and release:. Add issue or PR numbers when applicable, for example fix: include Python traceback (#184). Pull requests should explain the change, link issues, list verification commands, and call out generated artifacts. Include screenshots for visible output changes.
Security & Configuration Tips
Keep local services bound to 127.0.0.1 unless remote access is intentional. Never commit credentials or machine-specific MCP configuration. After changing package.json versions, run npm run version to synchronize all metadata.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

