tdmcp-bridge-endpoint

tdmcp-bridge-endpoint is a skill for Claude Code, Codex from Pantani/tdmcp. It costs 177 tokens per session (1,488 once invoked), scanned A, original, MIT.

A workflow for promoting an existing tdmcp operation from a general-purpose Python execution route to a dedicated web endpoint, with matching client, validation, and tool changes.

In plain words
What is it for?
Use it to add dedicated endpoints for operations such as connecting, reading or writing parameters, handling text data, reading node flags, or viewing logs.
Why use it?
It lets selected operations keep working when unrestricted Python execution is disabled for security.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to add dedicated endpoints for operations such as connecting, reading or writing parameters, handling text data, reading node flags, or viewing logs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pantani/tdmcp/tdmcp-bridge-endpoint
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Pantani/tdmcp --skill tdmcp-bridge-endpoint
Clone the repo
git clone --depth 1 https://github.com/Pantani/tdmcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tdmcp-bridge-endpoint

README.md
[![agentmods](https://agentmods.dev/badge/skills/pantani/tdmcp/tdmcp-bridge-endpoint/github.svg)](https://agentmods.dev/skills/pantani/tdmcp/tdmcp-bridge-endpoint)
Your own site
<a href="https://agentmods.dev/skills/pantani/tdmcp/tdmcp-bridge-endpoint"><img src="https://agentmods.dev/badge/skills/pantani/tdmcp/tdmcp-bridge-endpoint/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tdmcp-bridge-endpoint

Your own site · 80×15
<a href="https://agentmods.dev/skills/pantani/tdmcp/tdmcp-bridge-endpoint"><img src="https://agentmods.dev/badge/skills/pantani/tdmcp/tdmcp-bridge-endpoint.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 177 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,488 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00177 $0.01488
Opus 5 $0.00088 $0.00744
Sonnet 5 $0.00035 $0.00298
Haiku 4.5 $0.00018 $0.00149

Measured 11d ago against content hash f36c07665324, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

tdmcp-bridge-endpoint scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

.agents/skills/tdmcp-bridge-endpoint/SKILL.md · 102 lines

How it starts

The opening of the file, as written. The whole thing — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.

tdmcp-bridge-endpoint — the bridge vertical slice

A bridge feature is correct only when four layers agree on one shape: the Python route, the TS client method, the Zod validator, and the tool that consumes it. This skill is that contract. Build the slice top-to-bottom, keep an exec fallback so it ships safely before every bridge in the wild updates, and prove it all offline.

Run bridge slices one at a time — they share touchDesignerClient.ts, validators.ts, and the bridge route registry. Two in parallel is merge hell.

Why exec→REST at all

The bridge runs arbitrary Python on /api/exec. A security-conscious VJ runs TDMCP_BRIDGE_ALLOW_EXEC=0 on a venue network — and ~69 tools silently die. Promoting a well-defined op (connect, param-mode read/write, DAT text, node flags, logs) to its own REST route makes it survive that hardened config. You are promoting proven logic, not inventing it — start from the Python the tool already sends through /api/exec.

The slice, in order

1. Bridge (Python, td/)

  • Add a handler module (or extend the right existing one) and register the route. Find how routes are registered (the request dispatcher in td/) and follow that exact pattern — don't invent a second mechanism.
  • Keep every TD-global (op, app, project, ui) inside the handler function so the module imports cleanly outside TD (the tests rely on this).
  • Return a JSON report with a stable shape: a top-level ok/error and the data. Mirror the envelope the existing endpoints return so parsePythonReport/the validators stay uniform.
  • Honor TDMCP_BRIDGE_TOKEN (bearer auth) and the ALLOW_EXEC gate exactly as sibling routes do — a new route must not become an auth bypass.
  • python3 -m py_compile td/**/<changed>.py on every changed file.

2. Client method (src/td-client/touchDesignerClient.ts)

  • Add one typed method that calls the new route (GET/POST/PATCH/PUT as fits).
  • Map failures to the existing typed errors: TdApiError (4xx/5xx with a body), TdConnectionError (refused/DNS), TdTimeoutError. Never let a raw fetch error escape.
  • Exec fallback: if the endpoint returns 404 (older bridge without the route), fall back to the previous /api/exec Python path. This is what lets the promotion ship before the bridge is reinstalled everywhere. Make the fallback a private helper so the test can force both paths.

Read the full file on GitHub · 102 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 102 lines · 177 tokens per session scan A f36c07665324

Subscribe to this mod's changes

tdmcp-bridge-endpoint is a skill published in the GitHub repository Pantani/tdmcp (39 stars, last pushed 26d ago), licensed MIT. It adds 177 tokens to every session and 1,488 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.