ae-mcp-tuift
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| AE_MCP_EXE | No | Full path of `AfterFX.exe` (Windows) or the `.app` (macOS). Default: the newest of 2026, 2025, 2024 in the standard location. | |
| AE_MCP_TOOLS | No | Tool profile: `core` or `all` (default). An unknown value falls back to `all` and says so on stderr. | all |
| TUIFT_FFMPEG | No | Full path of ffmpeg when it is not on `PATH`. | |
| TUIFT_PYTHON | No | Full path of Python when it is not on `PATH`, for beats detection with `ae_beats`. | |
| TUIFT_FFPROBE | No | Full path of ffprobe when it is not on `PATH`. | |
| TUIFT_LESSONS | No | Your own lessons file instead of `kit/licoes.jsonl`. `ae_lessons add` writes to it, so point it somewhere writable and durable. | |
| TUIFT_DOCS_DIR | No | Folder holding your clones of the docsforadobe After Effects scripting and expression guides. Without it `ae_docs` is not registered. | |
| TUIFT_WORK_DIR | No | Where checkpoints, contact sheets and render jobs go (default `<temp>/ae-mcp-tuift`). | |
| AE_MCP_INSTANCE | No | Default instance when several After Effects instances run (`AfterFX.exe -m`); needs the resident agent (`node dist/index.js install-agent`). | |
| AE_MCP_READONLY | No | Set to `1` for inspection only. Tools that change the project are not registered and `ae_do` accepts only read-only operations. | |
| TUIFT_HOUSE_STYLE | No | Your own house-style JSON instead of `kit/estilo-da-casa.json` (springs, curves, drift, stagger, review and render numbers). | |
| AE_MCP_ENABLE_EVAL | No | Set to `1` to add `eval.run` (arbitrary ExtendScript, with file and process access). Off by default. | |
| AE_MCP_RUNTIME_DIR | No | Moves the IPC mailbox (default `<temp>/mcp-aftereffects/runtime`). Re-run `install-agent` after changing it. | |
| TUIFT_REVIEW_RULES | No | Optional JSON with your review rules and decided cases for `ae_avaliar_render` (default: none). | |
| TUIFT_GAME_PROCESSES | No | Comma-separated process names (without `.exe`); while one runs, the render uses one chunk at a time and half the threads. Default: off. | |
| TUIFT_RENDER_KILL_GB | No | Free-RAM floor (GB) under which the newest `aerender` is stopped. | |
| TUIFT_PLAYWRIGHT_ROOT | No | Folder containing `node_modules/playwright`, for `ae_capturar_movimento_web`. | |
| TUIFT_RENDER_INPROCESS | No | Render inside the server process instead of a detached worker. | |
| AE_MCP_ALLOW_CATEGORIES | No | Only the listed operation categories run, e.g. `keyframe,layer`. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
After Effects bridge ae-mcp-tuift (MCP for After Effects + TUIFT Media studio tools). Flow: ae_plano_check on the scene plan → ae_context → build (ae_catalog/ae_do; batch.run or one eval.run for a whole scene; tuift.cena names the scenes) → LOOK with ae_see (contact sheet image; check mid-movement frames; cenas: true shows each scene) → ae_review_motion (humano ou robotizado? also checks identidade.json when the project has one) → ae_expressions_check after writing expressions → ae_sound_cues/ae_place_sfx → ae_render_video (background) + ae_render_status → ae_avaliar_render on the final file (measured score + review packet for an external video reviewer). Moving a project to another machine: project.collect, or footage.relink to swap path prefixes in bulk. Ready-made animations by name: tuift.morph {de, para, mola} turns one layer (shape, PNG, text) into another with a spring ("make the AE icon turn into the Spotify one"); import images with project.import_file + layer.create_footage first. House moves are ae_do operations in category tuift: tuift.mola (entrance of card/button/bubble/badge, UI morph), tuift.entrada/tuift.saida, tuift.stagger, tuift.vivo (holds never dead), tuift.camera_viva, tuift.curva (saas/board). Safety: ae_checkpoint create before structural changes; a batch is not transactional; after a TIMEOUT read state before retrying; DIALOG_OPEN → ae_do instance.dismiss_dialog. Scripts are ES3 (eval.run). Failed calls carry matching lessons from the journal; add new ones with ae_lessons. Never claim done from a tool result alone: a rendered frame you looked at is the proof.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| ae_project_infoA | Project-level info: file path, dirty flag, all items with type/summary, active item. Start here. |
| ae_comp_infoA | Detailed comp info: size, fps, duration, work area, motion blur, layer summaries. Pass a comp name or item id — or an ARRAY of them to fetch several comps in one call. |
| ae_layer_infoA | Full layer info: transform, effects, masks, text, shape contents, keyframes (incl. interpolation names and bezier ease speed/influence). layerIndex accepts one index, an ARRAY of indices, or 'all' — auditing a whole comp is one call. detail:'summary' drops properties still at their default value (unkeyed, no expression) — start there for audits; the full tree is often 100KB+ per comp. Set includeProperties=false to skip the property tree walk entirely. |
| ae_render_frameA | Render one or more frames to PNG. Use to visually verify edits. The agent's 'eyes' — pair with mutations for a visual feedback loop. Headless and deterministic. Pass |
| ae_save_projectB | Save the project. Pass |
| ae_project_export_jsonA | Serialize the entire project to JSON (folders, comps, layers, keyframes, effects, shapes, markers, time remap, solids, file refs). Write to |
| ae_project_import_jsonA | Rebuild the project from JSON (produced by ae_project_export_json). Supports |
| ae_version_infoA | AE version, build, capabilities (saveFrameToPng, app.effects, Socket). Call at session start to know what APIs are available. |
| ae_catalogA | Discover available atomic operations for ae_do. Without args: all categories with their operation names. With a category: detailed params per operation. With an operation (e.g. tuift.morph): the params of that one operation. Only operations this server will actually execute are listed. |
| ae_doA | Execute an atomic operation by name (from ae_catalog). Arguments are validated against the operation's declared parameters before anything reaches AE. Have more than one operation to run? Wrap them in ONE batch.run instead of several ae_do calls — read/verify steps (comp.info, layer.info, render.frame) can ride in the same batch. Every call is automatically wrapped in ONE undo group: a single Ctrl+Z (or project.undo) reverts the entire call, and a batch.run counts as one call. Never call app.beginUndoGroup/endUndoGroup in eval.run code — the wrapper already did. The exception is undo/redo itself (project.undo, command.execute id 16/2035): those run outside the group and cannot ride inside a batch.run. Response includes ambient context (active comp, selected layers, project state) at zero extra round trips. Example: ae_do({ operation: 'keyframe.add', args: { comp: 'Main', layer: 1, property: ['Transform','Position'], time: 2, value: [960,540] } }) |
| ae_contextA | Ambient context: project state, active comp, selected layers, item list, AE.* helpers, ES3 rules, and the undo contract (every call = one auto undo group). Call at session start; then rely on ae_do response context. |
| ae_seeA | LOOK at the comp: renders several frames and returns ONE labelled contact sheet as an IMAGE you can see (plus the file paths). Use after every build step and before saying anything is done — a successful tool call is not visual proof. Give |
| ae_review_motionA | Rule-based motion review of a comp without rendering, using the studio house style: camera/rig that stops dead, holds that freeze and restart (robotizado), linear moves with no spring, several layers starting on the same frame (needs stagger), layers that pop in/out with no entrance/exit, keys off the frame grid, motion blur off, text too small, layers touching the safe margin, expression errors. Returns a score and issues with the tuift.* operation that fixes each. Run after building and after every fix round; then LOOK with ae_see. With scene markers (tuift.cena) each issue carries its scene, and |
| ae_expressions_checkA | Find broken expressions: walks every expression in a comp (or the whole project), forces evaluation at the layer's in/mid/out times and reports |
| ae_sound_cuesA | Read the comp's keyframes and list where sound effects belong — entrances (pop/whoosh), exits, scale pops, taps/clicks (layers named cursor/toque/tap), whooshes at the peak speed of fast moves, arrivals (light thud), typing — merged within 40 ms and ranked by weight. Use the list to pick SFX from the leveled library, then ae_place_sfx. House rule: one effect per element that enters or leaves, below the music/voice. |
| ae_place_sfxA | Place sound-effect files in a comp so that each file's LOUDEST sample (measured with ffmpeg) lands exactly on its event time (start = at − peak). Imports each file once into an 'SFX' folder, names layers 'SFX ', sets Audio Levels in dB when given (0 = as recorded; leveled library files need no gain). One undo group. |
| ae_beatsA | Measure beats and downbeats of a music file with beat_this (runs locally) and optionally write them as comp markers ('BAR n' on downbeats, 'beat' on the rest), offset by where the music layer starts. Use before cutting or timing hits on the beat — catalog BPMs can be wrong. |
| ae_capturar_movimento_webA | Captura quadros de um elemento 2D de página CSS/WAAPI sem abrir o AE. Mede os quatro cantos reais, pivô e opacidade; grava JSON novo no outPath. Não controla JavaScript, canvas, WebGL, vídeo ou rolagem; filtros e máscaras são avisados. |
| ae_preparar_movimento_webA | Lê uma captura JSON e grava um arquivo novo com conversão 2D e lote batch.run para ae_do. Não altera o AE. O lote verifica comp, camada, footage e keys antes de aplicar; requer eval.run habilitado e não é transacional. |
| ae_render_videoA | Render a comp to MP4 in the BACKGROUND. mode previa = Draft Settings in one chunk to SEE a change fast; mode turbo = final render using the whole PC; redo [a,b] = re-render only the chunks that changed (same outDir). Default mode leve = the studio's render that keeps the PC usable: aerender in chunks (default 30 s; 15 s for Advanced 3D; chunkSec 10 for heavy blur/video; never under 5 s, opening aerender alone costs ~21 s) with multi-frame rendering on, up to 2 at once at BelowNormal priority with 8 threads left free and a RAM gate (one at a time while a process named in TUIFT_GAME_PROCESSES runs), -mem_usage 20 30, chunks joined without re-encoding and tagged BT.709, optional audio mux with loudness read-out, then checks for black and frozen stretches. Returns a job id at once — poll ae_render_status. Saves the project first. Avoid editing the project while it renders; keep bridge calls light. |
| ae_render_statusA | Status of background renders started with ae_render_video: chunk progress, final file and the automatic checks (black, frozen, frames, loudness). Works across server restarts: every job is indexed on disk. Omit jobId to list recent jobs. |
| ae_plano_checkA | Check a video's PLAN before touching After Effects: empty stretches between scenes, overlaps, scene length, too much text on screen, too many elements, elements that live too short, narration without a scene, scene changes away from a sentence start, things the narration cites with no image. Numbers come from the house style (perfil |
| ae_avaliar_renderA | Review a RENDERED video in two layers. First call: measures 55 points from the file (technical, audio, rhythm, opening) and writes a review packet for Gemini (contact sheets, REVISAO.md with the house rules and the director's decided cases, a JSON to fill in). Second call with |
| ae_checkpointA | Save points for the open .aep. |
| ae_lessonsA | The journal of After Effects lessons (gotchas that cost real effort). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 25 tools
Most tools map to distinct resources (project, comp, layer, render, audio, review), but several boundaries blur: ae_see and ae_render_frame both exist to visually verify frames, and ae_context overlaps with ae_project_info plus the ambient context returned by ae_do. The three review tools (ae_plano_check, ae_review_motion, ae_avaliar_render) are separable only after reading long descriptions, and ae_do/ae_catalog form a pair an agent must learn.
The ae_ prefix is applied uniformly, which is a real plus, but conventions fracture inside it: English snake_case (ae_project_info, ae_render_status), bare short names (ae_do, ae_see), and Portuguese names with inconsistent ordering (ae_plano_check vs ae_avaliar_render, ae_capturar_movimento_web). An agent cannot guess a name from a verb_noun pattern.
25 tools sits at the heavy end for a single-domain server; several are thin quality-of-life wrappers (ae_lessons, ae_checkpoint, ae_version_info, ae_context) whose behavior is already reachable through project.undo or the ae_do catalog. The scope is genuinely broad (build, render, review, audio, web capture), so it is defensible but crowding the limit.
The lifecycle is well covered: inspect project/comp/layer, mutate via the ae_do catalog with auto undo groups, checkpoint/revert, export/import JSON, background render plus status, and layered review (plan, motion rules, rendered video). Remaining gaps are minor — no dedicated undo/redo tool outside ae_do and no first-class comp/layer creation entries in the top-level surface, but both are reachable through the catalog.