Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
AE_MCP_EXENoFull path of `AfterFX.exe` (Windows) or the `.app` (macOS). Default: the newest of 2026, 2025, 2024 in the standard location.
AE_MCP_TOOLSNoTool profile: `core` or `all` (default). An unknown value falls back to `all` and says so on stderr.all
TUIFT_FFMPEGNoFull path of ffmpeg when it is not on `PATH`.
TUIFT_PYTHONNoFull path of Python when it is not on `PATH`, for beats detection with `ae_beats`.
TUIFT_FFPROBENoFull path of ffprobe when it is not on `PATH`.
TUIFT_LESSONSNoYour own lessons file instead of `kit/licoes.jsonl`. `ae_lessons add` writes to it, so point it somewhere writable and durable.
TUIFT_DOCS_DIRNoFolder holding your clones of the docsforadobe After Effects scripting and expression guides. Without it `ae_docs` is not registered.
TUIFT_WORK_DIRNoWhere checkpoints, contact sheets and render jobs go (default `<temp>/ae-mcp-tuift`).
AE_MCP_INSTANCENoDefault instance when several After Effects instances run (`AfterFX.exe -m`); needs the resident agent (`node dist/index.js install-agent`).
AE_MCP_READONLYNoSet to `1` for inspection only. Tools that change the project are not registered and `ae_do` accepts only read-only operations.
TUIFT_HOUSE_STYLENoYour own house-style JSON instead of `kit/estilo-da-casa.json` (springs, curves, drift, stagger, review and render numbers).
AE_MCP_ENABLE_EVALNoSet to `1` to add `eval.run` (arbitrary ExtendScript, with file and process access). Off by default.
AE_MCP_RUNTIME_DIRNoMoves the IPC mailbox (default `<temp>/mcp-aftereffects/runtime`). Re-run `install-agent` after changing it.
TUIFT_REVIEW_RULESNoOptional JSON with your review rules and decided cases for `ae_avaliar_render` (default: none).
TUIFT_GAME_PROCESSESNoComma-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_GBNoFree-RAM floor (GB) under which the newest `aerender` is stopped.
TUIFT_PLAYWRIGHT_ROOTNoFolder containing `node_modules/playwright`, for `ae_capturar_movimento_web`.
TUIFT_RENDER_INPROCESSNoRender inside the server process instead of a detached worker.
AE_MCP_ALLOW_CATEGORIESNoOnly 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

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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 time for one frame, or times for several in ONE call (motion checks): files land at _.png and are listed in frames. contactSheet tiles every frame into one labelled PNG (_sheet.png) so a motion check is one image; analyze measures each capture (uniform edge bands = black bars / transparent margins, content bounds, coverage) so off-frame elements and letterboxing are caught numerically. In color-managed projects (workingSpace != None) the capture applies AE's own display transform via a transient OCIO Display Transform adjustment layer, and the PNG comes back viewer-accurate and sRGB-tagged. Where that layer cannot be used — read-only mode, an AE without the OCIO effect, or a failed capture calibration — the result falls back to a pure-math ACES conversion or to raw values with an explicit colorWarning; check colorPipeline / colorWarning on the response.

ae_save_projectB

Save the project. Pass path for Save As.

ae_project_export_jsonA

Serialize the entire project to JSON (folders, comps, layers, keyframes, effects, shapes, markers, time remap, solids, file refs). Write to outPath or return inline.

ae_project_import_jsonA

Rebuild the project from JSON (produced by ae_project_export_json). Supports clearFirst, dryRun (validate-only), skipValidation.

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 times, or count frames evenly spaced over the work area (or range). Check the MIDDLE of movements, not only the rest poses. With reference (a video file or a list of images) each row is REF | NOSSO (| DIF), at the same times — the side-by-side used to recreate a reference. Keep sheets to 6–16 frames; for long pieces call it per scene. With scene markers (tuift.cena), cenas: true (or a list such as ['S03', 'S04']) picks the middle and the settled frame of each scene and labels them by name.

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 cena limits the review to some of them. With an identidade.json near the .aep (or identidade), fonts, colors, radii and margin outside the video's identity are reported too.

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 expressionError, plus expressions AE has switched off. Setting an expression never fails by itself — run this after writing expressions, renaming comps/layers/effects, or importing. Expressions using sourceRectAtTime/toComp/sampleImage are read but not force-evaluated (doing so from a script can open a blocking modal).

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 narrado, cinetico or livre in tipo). Returns a score, the issues and the scene list ready for ae_do tuift.cena. Plan format: { tipo, duracao, audio: { palavras: 'palavras.json' }, cenas: [{ nome, inicio, fim, fala, texto: ['...'], elementos: [{ nome, papel: 'principal|apoio|legenda', entra, sai }], citados: [{ nome, asset }] }] }. Times in seconds on the video's timeline. Does not need After Effects.

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 revisao: a LIST OF PROBLEMS (time, rule, what is seen, concrete fix, severity) plus the predicted verdict of the director → pronto (aprovaria), revisar (aprovaria com ajustes) or refazer (pediria refação); a high-severity problem forces refazer. Old 0-45 reviews (categorias + travas) are still accepted. Pass contexto (what the video is) for a better packet. Each file content gets its own id, and evolucao compares the versions in the folder. Does not need After Effects.

ae_checkpointA

Save points for the open .aep. create (before a structural change, a big batch or a rebuild) saves the project and copies it to /_checkpoints/. list shows them. revert first checkpoints the current state, then restores the chosen checkpoint over the project file and reopens it. AE undo is per call and a batch is not transactional — checkpoints are the real safety net.

ae_lessonsA

The journal of After Effects lessons (gotchas that cost real effort). list or search before an unfamiliar task; add after you solve a problem that will recur (tool fault or AE quirk) — give a regex quando that matches the error text, so the lesson is attached automatically the next time that error appears. Keep each lesson one or two sentences, with the fix.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 25 tools

Disambiguation3/5

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.

Naming Consistency3/5

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.

Tool Count3/5

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.

Completeness4/5

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.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues