Environment:8beeeaaat Touchdesigner mcp Node JS Runtime
| Knowledge Sources | |
|---|---|
| Domains | Build_Tooling, Versioning |
| Last Updated | 2026-10-28 22:13 GMT |
Overview
Node.js 22.18+, 24.x, or 26+ (even-numbered majors only) with TypeScript 7.0 and the MCP SDK v2 packages, for running the MCP server and version-sync scripts.
Description
This environment is the Node.js runtime that powers the MCP server and its build/release tooling. The project requires Node.js 22.18 or higher, explicitly excluding odd-numbered major releases (23.x, 25.x) which are not supported by the toolchain — specifically `vitest` 5 and `typescript` 7 do not support them.
The `engines.node` field in `package.json` declares `"^22.18.0 || ^24.0.0 || >=26.0.0"`. This range is validated by a dedicated test suite (`nodeFloor.test.ts`) that checks:
- The declared range has a concrete lower bound.
- It matches what the MCP Bundle manifest (`mcpb/manifest.json`) tells Claude Desktop.
- Every direct dependency's `engines.node` is a superset of the declared range.
- The lockfile (`package-lock.json`) records the same range.
- The installation docs (`docs/installation.md`, `docs/installation.ja.md`) quote the minimum version with the odd-major exclusion.
The Docker image uses `node:24-slim` as the build base.
Usage
Use this environment for:
- Running the MCP server (stdio or HTTP transport).
- Running the version-sync scripts (`syncApiServerVersions.ts`, `syncMcpServerVersions.ts`).
- Building the project (`npm run build`).
- Running tests (`npm test`).
- Code generation (`npm run gen`).
System Requirements
| Category | Requirement | Notes |
|---|---|---|
| OS | Linux, macOS, or Windows | Docker supported via `node:24-slim` |
| Runtime | Node.js >= 22.18.0 | Odd-numbered majors (23, 25) NOT supported |
| Disk | ~500MB for node_modules | Plus build artifacts in `dist/` |
Dependencies
System Packages
- Node.js >= 22.18.0 (22.x, 24.x, or 26+)
npm Dependencies (runtime)
- `@modelcontextprotocol/core` ^2.0.0
- `@modelcontextprotocol/express` ^2.0.0
- `@modelcontextprotocol/node` ^2.0.0
- `@modelcontextprotocol/server` ^2.0.0
- `axios` 1.20.0
- `express` 5.2.1
- `mustache` 4.2.0
- `semver` 7.8.5
- `yaml` 2.9.1
- `zod` 4.6.5
npm Dependencies (dev/build)
- `typescript` 7.0.2
- `vitest` 5.0.1
- `@biomejs/biome` 2.5.14
- `@redocly/cli` 2.53.3
- `orval` 8.34.0
- `prettier` 3.9.8
Credentials
No credentials required for the runtime itself. The MCP server connects to TouchDesigner over local HTTP without authentication.
Quick Install
# Install Node.js 22.18+ (use nvm or download from nodejs.org)
nvm install 22
nvm use 22
# Clone and install
git clone https://github.com/8beeeaaat/touchdesigner-mcp.git
cd touchdesigner-mcp
npm ci
# Build
npm run build
# Run in stdio mode
node dist/cli.js --host=http://127.0.0.1 --port=9981
# Run in HTTP mode
node dist/cli.js --mcp-http-port=6280 --mcp-http-host=127.0.0.1 --host=http://127.0.0.1 --port=9981
Code Evidence
The `engines` field in `package.json` declares the Node.js version constraint:
From `package.json:24-26`:
"engines": {
"node": "^22.18.0 || ^24.0.0 || >=26.0.0"
}
The `nodeFloor.test.ts` test suite validates that the declared floor is consistent across all declaration surfaces:
From `tests/unit/nodeFloor.test.ts:7-14`:
/**
* The declared Node floor has to be a version the toolchain can actually run.
*
* vitest 5 dropped Node 20 while `engines` still said `>=20.0.0` and three
* documents still told people 20.x was supported. Nothing failed: npm prints
* EBADENGINE and carries on, CI runs the version in `.node-version` (24.x),
* and the mismatch only reaches a contributor who happens to be on 20.
*/
The Dockerfile uses `node:24-slim`:
From `Dockerfile:1`:
FROM node:24-slim AS build
Common Errors
| Error Message | Cause | Solution |
|---|---|---|
| `EBADENGINE` warning from npm | Running on an unsupported Node.js version (e.g. 20.x or 23.x) | Upgrade to Node.js 22.18+, 24.x, or 26+ |
| `vitest` fails to start | vitest 5 requires Node 22+; running on Node 20 | Upgrade Node.js to 22.18+ |
| `TypeError: import.meta.dirname is undefined` | Node.js < 21 | `import.meta.dirname` requires Node 21+; use Node 22.18+ |
| `tsc` compilation errors | TypeScript 7.0 requires Node 22+ | Upgrade Node.js |
Compatibility Notes
- Node 20.x: Not supported — vitest 5 dropped it.
- Node 23.x: Not supported — odd-numbered majors are excluded from the `engines` range.
- Node 25.x: Not supported — same reason.
- Docker: The `Dockerfile` uses `node:24-slim`; `docker-compose.yml` maps ports 6274/6277 (inspector) and 6280 (HTTP transport).
- Lockfile sync: The `nodeFloor.test.ts` test verifies `package-lock.json` records the same `engines.node` range as `package.json`.
Related Pages
- Implementation:8beeeaaat_Touchdesigner_mcp_syncApiServerVersions
- Implementation:8beeeaaat_Touchdesigner_mcp_syncMcpServerVersions
- Implementation:8beeeaaat_Touchdesigner_mcp_TouchDesignerClient
- Implementation:8beeeaaat_Touchdesigner_mcp_CLI_Entry
- Implementation:8beeeaaat_Touchdesigner_mcp_Compatibility_Policy_Engine
- Implementation:8beeeaaat_Touchdesigner_mcp_Build_Tool_Metadata
- Implementation:8beeeaaat_Touchdesigner_mcp_TouchDesignerServer
- Implementation:8beeeaaat_Touchdesigner_mcp_ExpressHttpManager
- Implementation:8beeeaaat_Touchdesigner_mcp_Package_Lock_JSON