Skip to main content

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:

ServerCommandToolsPurpose
Project accesstfdesign mcp31Read projects, files, catalogs, history; write design systems; generate media and motion
Skill toolstfdesign mcp skill-tools3Read skill side files and execute skill scripts
Live artifactstfdesign mcp live-artifacts6Create/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​

ToolDescription
list_projectsEvery project on this daemon
get_active_contextThe project and file the user has open right now
get_projectSingle project metadata (name, skill, design system, entry file, kind)
get_artifactPreferred. Entry file plus every referenced sibling (HTML script/link/img/srcset, JSX imports, CSS url()/@import), up to depth 3
get_fileOne file, paginated with an [od:file-window …] marker
list_filesFile metadata: name, path, mime, kind, size, mtime
search_filesLiteral substring search across project files

Catalogs​

ToolDescription
list_skillsId, mode, scenario, craft requirements, description
get_skillOne skill with its side files — read before following a workflow
list_design_systemsId, title, category, summary, swatches, surface, editable
get_design_systemFull DESIGN.md plus package files (tokens.css, components.html)
list_craftAvailable craft reference slugs
get_craftOne craft reference body

Creating and inspecting​

ToolDescription
create_projectNew project, optionally binding a skill and design system and seeding a pending prompt
get_tabsOpen tabs and which one is active
list_conversationsConversations in a project, newest first
get_conversation_messagesThe design dialogue, including the questions the user answered
list_comments_on_conversationReview comments, with attachments
get_project_eventsActivity feed — what the agent did, and when

File history​

ToolDescription
list_file_versionsEvery saved snapshot: id, timestamp, source, label
get_file_versionOne historical version, for comparison

Design system writes​

ToolDescription
create_design_systemCreate from body, or derive a starter spec from sourceNotes (a URL)
update_design_systemEdit a user: system; bundled ids are rejected
delete_design_systemRequires confirm to repeat the id — irreversible

Media​

ToolDescription
list_media_modelsModels per surface, aspects, per-model maxDurationSec, enabled audioKinds
generate_mediaSubmit a render → taskId immediately
wait_mediaLong-poll ≤25s; running → call again with nextSince
media_sequence2–8 shots chained with last-frame continuity → one mp4

Motion​

ToolDescription
list_motion_modelsRenderer, fps/aspect options, and whether this machine can render
generate_motionRender a composition to MP4 → taskId
wait_motionLong-poll to completion

Sharing​

ToolDescription
share_artifactPublish a shareable link; optional password and expiresInDays
list_sharesShares for a project, with status / views / expiry
revoke_shareKill 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:

URIContent
od://focus/activeThe active project/file
od://skills/<id>/SKILL.mdEvery skill body
od://brand-guidelines/<id>/DESIGN.mdEvery 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:

ToolDescription
skill_filesList every side file a skill ships, with sizes
skill_file_readRead one side file as text
skill_script_runExecute 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
ToolDescription
live_artifacts_createRegister a data-backed artifact with its dependencies
live_artifacts_listList registered live artifacts
live_artifacts_updateUpdate an artifact
live_artifacts_refreshTrigger a refresh
connectors_listDiscover configured connectors and their tools
connectors_executeExecute a connector tool

See Live Artifacts and Connectors.

Registering a server​

From the app

  1. Make sure a project is open in TF Design.
  2. Open Settings → MCP Server → Show Install Info.
  3. 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:

  1. Design systems — you can create, update, and delete user-authored (user:) systems. Bundled systems are immutable.
  2. Media and motion — these write files into the project, which is the point.
  3. 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​

  1. Generate the landing page in TF Design.
  2. In your coding agent: "Implement the design I have open in TF Design, in this React project."
  3. 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​

  1. Open the design system in TF Design.
  2. "Read the active design system and apply its tokens to my stylesheet."
  3. The agent calls get_design_system (or reads od://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​

SymptomCauseFix
Tools list is emptyClient failed to start the processCheck the absolute node path in the snippet
"daemon not reachable"No daemon at that URLStart TF Design, or pass the right --daemon-url
get_active_context returns {active:false}No UI interaction for ~5 minutesOpen a project in TF Design
Project name matched the wrong projectSubstring ambiguityPass the UUID; check resolvedProject
Media tool times outClient's 30s limit hit on a renderDrive wait_media; do not await the render directly
Skill script deniedMissing OD_TOOL_TOKENUse the CLI fallback or run inside a design run