MCP Server
TF Design exposes itself over Model Context Protocol. External agents — TF Code, Claude Code, Cursor, Zed, VS Code, Windsurf — can read your designs, generate media, render motion, and run skill scripts without exporting a ZIP.
There are three stdio servers, each with a narrow job, all proxying the daemon's local HTTP API:
| Server | Command | Tools | Purpose |
|---|---|---|---|
| Project access | tfdesign mcp | 31 | Read projects, files, catalogs, history; write design systems; generate media and motion |
| Skill tools | tfdesign mcp skill-tools | 3 | Read skill side files and execute skill scripts |
| Live artifacts | tfdesign mcp live-artifacts | 6 | Create/list/update/refresh live artifacts; list and execute connectors |
The servers hold no state and never touch the filesystem. Every tool resolves to a fetch() against OD_DAEMON_URL. Launching a server without a running daemon still works — the client can list the tool schema, and tool calls return a clear "daemon not reachable" error.
Project access server
tfdesign mcp --daemon-url http://127.0.0.1:7456
31 tools across seven groups.
Projects and files
| Tool | Description |
|---|---|
list_projects | Every project on this daemon |
get_active_context | The project and file the user has open right now |
get_project | Single project metadata (name, skill, design system, entry file, kind) |
get_artifact | Preferred. Entry file plus every referenced sibling (HTML script/link/img/srcset, JSX imports, CSS url()/@import), up to depth 3 |
get_file | One file, paginated with an [od:file-window …] marker |
list_files | File metadata: name, path, mime, kind, size, mtime |
search_files | Literal substring search across project files |
Catalogs
| Tool | Description |
|---|---|
list_skills | Id, mode, scenario, craft requirements, description |
get_skill | One skill with its side files — read before following a workflow |
list_design_systems | Id, title, category, summary, swatches, surface, editable |
get_design_system | Full DESIGN.md plus package files (tokens.css, components.html) |
list_craft | Available craft reference slugs |
get_craft | One craft reference body |
Creating and inspecting
| Tool | Description |
|---|---|
create_project | New project, optionally binding a skill and design system and seeding a pending prompt |
get_tabs | Open tabs and which one is active |
list_conversations | Conversations in a project, newest first |
get_conversation_messages | The design dialogue, including the questions the user answered |
list_comments_on_conversation | Review comments, with attachments |
get_project_events | Activity feed — what the agent did, and when |
File history
| Tool | Description |
|---|---|
list_file_versions | Every saved snapshot: id, timestamp, source, label |
get_file_version | One historical version, for comparison |
Design system writes
| Tool | Description |
|---|---|
create_design_system | Create from body, or derive a starter spec from sourceNotes (a URL) |
update_design_system | Edit a user: system; bundled ids are rejected |
delete_design_system | Requires confirm to repeat the id — irreversible |
Media
| Tool | Description |
|---|---|
list_media_models | Models per surface, aspects, per-model maxDurationSec, enabled audioKinds |
generate_media | Submit a render → taskId immediately |
wait_media | Long-poll ≤25s; running → call again with nextSince |
media_sequence | 2–8 shots chained with last-frame continuity → one mp4 |
Motion
| Tool | Description |
|---|---|
list_motion_models | Renderer, fps/aspect options, and whether this machine can render |
generate_motion | Render a composition to MP4 → taskId |
wait_motion | Long-poll to completion |
Sharing
| Tool | Description |
|---|---|
share_artifact | Publish a shareable link; optional password and expiresInDays |
list_shares | Shares for a project, with status / views / expiry |
revoke_share | Kill a link permanently |
share_artifact is described to agents as the preferred answer over export_pptx / export_pdf whenever the user wants to show or send a design, because a share keeps animations, 3D and interactivity instead of flattening them. It also tells the agent to relay a password separately from the link.
Active context
get_artifact, get_project, get_file, search_files, and list_files all take project as optional. When omitted they default to whatever is open in TF Design right now, expiring about five minutes after the last UI interaction. get_file and get_artifact additionally default to the active file.
So "implement this design", "what's in this file", and "find the pricing copy" work with no arguments. Responses carry usedActiveContext (and resolvedProject when a name substring was matched) so the caller can confirm what it hit.
Resources
Besides tools, the server exposes:
| URI | Content |
|---|---|
od://focus/active | The active project/file |
od://skills/<id>/SKILL.md | Every skill body |
od://brand-guidelines/<id>/DESIGN.md | Every design system body |
Async by contract
Media and motion renders take 1–15 minutes; the MCP client's default tool timeout is 30 seconds. Both generate_* tools therefore return immediately and the caller drives wait_* in a bounded loop. Never sleep in a loop instead — wait_media / wait_motion are long-polls with a progress cursor.
Skill tools server
tfdesign mcp skill-tools
Mounted automatically into every design run through the engine's inline config, so agents reach skill payloads without a copy appearing in the project folder:
| Tool | Description |
|---|---|
skill_files | List every side file a skill ships, with sizes |
skill_file_read | Read one side file as text |
skill_script_run | Execute a shipped Python script with the project dir as cwd |
skill_script_run runs on the daemon: a separate process group, a hard timeout, capped output, and a 600-second per-server MCP timeout. The mount authenticates with a 12-hour engine token rather than the 15-minute chat token, because the warm engine outlives the chat.
Requires OD_TOOL_TOKEN in the environment. If the mount is unavailable, agents fall back to tfdesign skills run <skillId> <script>.
Live artifacts server
tfdesign mcp live-artifacts
| Tool | Description |
|---|---|
live_artifacts_create | Register a data-backed artifact with its dependencies |
live_artifacts_list | List registered live artifacts |
live_artifacts_update | Update an artifact |
live_artifacts_refresh | Trigger a refresh |
connectors_list | Discover configured connectors and their tools |
connectors_execute | Execute a connector tool |
See Live Artifacts and Connectors.
Registering a server
From the app
- Make sure a project is open in TF Design.
- Open Settings → MCP Server → Show Install Info.
- Copy the generated snippet into your client's config.
The snippet uses the absolute path of the running Node binary and the CLI script, because IDE-spawned MCP clients inherit a minimal PATH that often cannot see nvm/fnm/asdf installs:
{
"command": "/absolute/path/to/node",
"args": ["/absolute/path/to/dist/cli.js", "mcp", "--daemon-url", "http://127.0.0.1:7456"]
}
GET /api/mcp/install-info returns this payload, including cliExists / nodeExists and a buildHint if either is missing.
By hand
For Claude Code, Cursor, Zed, or any client that takes a command:
{
"mcpServers": {
"tfdesign": {
"command": "tfdesign",
"args": ["mcp", "--daemon-url", "http://127.0.0.1:7456"]
}
}
}
The server identifies itself as tfdesign, not the upstream project name.
Read-only by default
Only three families of writes exist, and all are deliberate:
- Design systems — you can create, update, and delete user-authored (
user:) systems. Bundled systems are immutable. - Media and motion — these write files into the project, which is the point.
- Skill scripts — executed with the project as cwd, on the daemon.
Project files themselves are never written over MCP. An agent that wants to change a design drives a design run; it does not patch files behind the user's back.
Use cases
Implement a design in your app
- Generate the landing page in TF Design.
- In your coding agent: "Implement the design I have open in TF Design, in this React project."
- The agent calls
get_artifact()with no arguments, gets the entry file plus tokens and assets in one bundle, and writes matching code.
Match an existing brand
- Open the design system in TF Design.
- "Read the active design system and apply its tokens to my stylesheet."
- The agent calls
get_design_system(or readsod://brand-guidelines/<id>/DESIGN.md) and maps the tokens.
Generate media from another repo
list_media_models → generate_media → wait_media
The agent never learns the CLI incantation or the HTTP routes; the tools proxy them.
Understand why a design looks the way it does
get_project_events plus get_conversation_messages show the decisions and the answers behind the artifact. Far better than guessing from the output.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| Tools list is empty | Client failed to start the process | Check the absolute node path in the snippet |
| "daemon not reachable" | No daemon at that URL | Start TF Design, or pass the right --daemon-url |
get_active_context returns {active:false} | No UI interaction for ~5 minutes | Open a project in TF Design |
| Project name matched the wrong project | Substring ambiguity | Pass the UUID; check resolvedProject |
| Media tool times out | Client's 30s limit hit on a render | Drive wait_media; do not await the render directly |
| Skill script denied | Missing OD_TOOL_TOKEN | Use the CLI fallback or run inside a design run |