@ajsmonty/adobe-mcp 1.1.2 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +361 -119
  3. package/SECURITY.md +24 -1
  4. package/adapters/ae_more.mjs +208 -0
  5. package/adapters/an.mjs +96 -0
  6. package/adapters/assets.mjs +194 -0
  7. package/adapters/blender.mjs +230 -0
  8. package/adapters/id.mjs +250 -0
  9. package/adapters/ppro.mjs +4 -3
  10. package/adapters/ppro_more.mjs +393 -0
  11. package/adapters/ps_ai_more.mjs +277 -0
  12. package/adapters/substance.mjs +193 -0
  13. package/adapters/texlib.mjs +193 -0
  14. package/bridges/blender/adobe_mcp_bridge.py +132 -0
  15. package/cep/mcp-bridge/CSXS/manifest.xml +36 -2
  16. package/cep/mcp-bridge/main.js +48 -20
  17. package/cli/doctor.mjs +234 -0
  18. package/cli/index.mjs +67 -0
  19. package/cli/install.mjs +149 -0
  20. package/core/barrows.mjs +16 -0
  21. package/core/blender_pbr.py +148 -0
  22. package/core/bridge.mjs +166 -77
  23. package/core/harness.jsx +11 -6
  24. package/core/harness.py +34 -0
  25. package/core/helpers.mjs +196 -0
  26. package/core/platform.mjs +209 -0
  27. package/core/pybridge.mjs +256 -0
  28. package/core/telemetry.mjs +80 -0
  29. package/core/texlib.mjs +279 -0
  30. package/core/win/run_com.js +33 -0
  31. package/core/workspace.mjs +1 -1
  32. package/knowledge/knowledge.mjs +8 -5
  33. package/knowledge/lessons.jsonl +19 -0
  34. package/package.json +56 -3
  35. package/scripts/ae/Cinematic_3D_Composite.jsx +173 -0
  36. package/scripts/blender/Creature_Walk_Cinematic.py +569 -0
  37. package/scripts/substance/Creature_Skin_LookDev.py +148 -0
  38. package/server.mjs +92 -27
  39. package/workflow/setup.mjs +106 -0
  40. package/workflow/vfx.mjs +136 -0
  41. package/workflow/workflow.mjs +66 -21
package/CHANGELOG.md ADDED
@@ -0,0 +1,19 @@
1
+ # Changelog
2
+
3
+ ## 1.5.0
4
+ - **After Effects connects by itself.** The MCP Bridge panel now also runs inside After Effects and starts when AE opens. Scripts go through it, so there's no "Allow Scripts to Write Files" setting to switch on and no macOS Automation prompt. Without the panel, the old route still works.
5
+ - **Premiere connects by itself too:** the panel starts when Premiere opens, and a script error now comes back straight away instead of after a timeout.
6
+ - **Set up from the chat:** `adobe_setup_check`, `adobe_install_panel`, `adobe_whats_new`, and a "Set up Adobe for Claude" prompt.
7
+ - **Works alongside the Barrows AE Bridge:** when it's installed, the four basic After Effects tools it covers step aside (`ADOBE_MCP_BARROWS=keep` keeps them).
8
+ - **28 production tools** from the Barrows line, with thanks to Derrin Byrne: InDesign, Animate, Media Encoder, Premiere editing (clips, markers, captions, MOGRTs, relink), After Effects templates and versions from a spreadsheet, Photoshop mockups and batch export, Illustrator data merge and palette recolour, batch rename and metadata.
9
+ - After the install, run `npx -y @ajsmonty/adobe-mcp install` once more (or `adobe_install_panel`) and restart Premiere / After Effects to get the new panel.
10
+
11
+ ## 1.3.0
12
+ - Windows support: Photoshop and Illustrator over COM, After Effects via `AfterFX.exe`, Premiere's panel, Blender and Substance.
13
+ - `doctor` and `install` commands, single-app packages, a Claude Code plugin, opt-in telemetry and tag-driven releases.
14
+
15
+ ## 1.2.0
16
+ - Blender and Substance 3D Painter bridges, the cinematic creature pipeline and free CC0 texture libraries.
17
+
18
+ ## 1.1.2
19
+ - First public release for macOS.
package/README.md CHANGED
@@ -1,172 +1,316 @@
1
- # adobe-mcp — Adobe Creative Cloud MCP server (macOS)
1
+ # adobe-mcp: AI automation for After Effects, Photoshop, Illustrator, Premiere Pro, Blender & Substance Painter
2
2
 
3
- Drives After Effects, Photoshop, Illustrator, Premiere Pro (and Character Animator puppet authoring) from Claude. See ROADMAP.md for the full tool matrix and what is next.
4
- Bridge: MCP client → this server → AppleScript `DoScript` → AE → temp result file → back.
3
+ [![npm](https://img.shields.io/npm/v/@ajsmonty/adobe-mcp.svg)](https://www.npmjs.com/package/@ajsmonty/adobe-mcp)
4
+ [![npm downloads](https://img.shields.io/npm/dm/@ajsmonty/adobe-mcp.svg)](https://www.npmjs.com/package/@ajsmonty/adobe-mcp)
5
+ [![platform](https://img.shields.io/badge/platform-macOS%20%7C%20Windows-lightgrey.svg)](#platform-support)
6
+ [![MCP](https://img.shields.io/badge/MCP-stdio%20server-5fd3c6.svg)](https://modelcontextprotocol.io/)
7
+ [![license: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
5
8
 
6
- ## Tools
7
-
8
- | Tool | Purpose |
9
- |---|---|
10
- | `run_extendscript` | Run arbitrary JSX; `return <value>` comes back as JSON. Auto undo-grouped. |
11
- | `get_project_state` | Project item tree, or one comp's layers in detail (`comp_name`). |
12
- | `save_frame` | Render a comp frame to PNG, returned inline so Claude can *see* its work. |
13
- | `list_ae_scripts` | List `.jsx`/`.jsxbin` tools in `scripts/` with descriptions from header comments. |
14
- | `run_ae_script` | Execute a library script, like File → Scripts → Run Script File. |
15
-
16
- ## Knowledge system (the server learns as it goes)
17
-
18
- The server ships with a curated knowledge base (`knowledge/lessons.jsonl`) seeded from real
19
- production sessions — matchName gotchas, API quirks, parameter-type traps, and techniques
20
- (blueprint line extraction, seamless wind loops, QE transitions, Auto Reframe...).
9
+ One MCP server that lets Claude, Cursor or any MCP client work inside **After Effects, Photoshop,
10
+ Illustrator, Premiere Pro and Character Animator**, plus **Blender** and **Substance 3D Painter**, on
11
+ **macOS and Windows**, plus InDesign, Media Encoder and Animate for layout and delivery. 72 tools, full scripting access in every app, inline previews so the model
12
+ can see its work, and hand-offs that move assets from one app to the next.
21
13
 
22
- Three mechanisms keep it useful and growing:
23
-
24
- 1. **Auto-surfaced gotchas** — every failed `*_run_extendscript` call is matched against the
25
- lesson keywords; hits are appended to the error message the client sees (e.g. hit
26
- `Illegal Parameter type` in Premiere and the fix for `autoReframeSequence`'s string preset
27
- arrives with the error). Failures are also logged to `$WORKSPACE/error-log.jsonl` as raw
28
- material for new lessons.
29
- 2. **`knowledge_search` / `knowledge_add` tools** — agents consult lessons before attempting
30
- unusual scripting, and record new gotchas when they solve one that wasn't auto-suggested.
31
- Runtime lessons persist to `$WORKSPACE/learned.jsonl` (survives repo updates, per-install).
32
- 3. **Server instructions + tool descriptions** — the highest-value rules (explicit document
33
- targeting, visual verification, render-timeout handling, ES3 limits) are baked into the MCP
34
- instructions and the per-tool descriptions, so a fresh install starts smart.
14
+ ```bash
15
+ npx -y @ajsmonty/adobe-mcp install --client claude-desktop # or cursor, windsurf, claude-code
16
+ ```
35
17
 
36
- The `scripts/` per-app libraries are the executable side of the same idea — distilled,
37
- reusable skills (`list_scripts` / `run_script`): blueprint line extraction (PS), seamless
38
- wind loops and kinetic typography rigs (AE), one-call vertical Auto Reframe (Premiere).
18
+ ## Why it's different
19
+
20
+ - **One server for the whole pipeline.** Most Adobe MCP servers cover a single app. This one carries
21
+ a shot from Illustrator vectors to a Photoshop puppet, an After Effects comp, a Premiere edit and a
22
+ Blender/Substance 3D pass, with a shared asset registry so each app picks up where the last stopped.
23
+ - **Apps nobody else covers.** Character Animator puppets (full auto-rig taxonomy, 14 visemes),
24
+ Blender (live or headless) and Substance 3D Painter (bake + PBR export).
25
+ - **It learns.** A knowledge base of real scripting gotchas is attached to every failed script
26
+ automatically, and agents add new lessons as they solve them.
27
+ - **It looks before it moves on.** Preview tools return images inline, so the model checks each
28
+ step visually instead of guessing.
29
+ - **Free CC0 assets built in.** Search and download Poly Haven / ambientCG textures and HDRIs and wire
30
+ them into Blender materials in one call.
31
+
32
+ ## Supported apps
33
+
34
+ | App | Tools | How it connects (macOS) | How it connects (Windows) |
35
+ |---|---|---|---|
36
+ | After Effects | `ae_*` (7) | MCP Bridge panel, or AppleScript `DoScript` | MCP Bridge panel, or `AfterFX.exe -r` |
37
+ | Photoshop | `ps_*` (7) | AppleScript `do javascript` | COM `DoJavaScriptFile` |
38
+ | Illustrator | `ai_*` (6) | AppleScript `do javascript` | COM `DoJavaScriptFile` |
39
+ | InDesign | `id_*` (6) | AppleScript `do script` | COM `DoScript` |
40
+ | Premiere Pro | `ppro_*` (12) | MCP Bridge CEP panel | MCP Bridge CEP panel |
41
+ | Media Encoder | `ame_*` (3) | through Premiere's encoder | through Premiere's encoder |
42
+ | Animate | `an_*` (3) | `.jsfl` opened in Animate | `.jsfl` passed to `Animate.exe` |
43
+ | Files | `assets_*` (3) | batch rename, XMP metadata via an open Adobe app | same |
44
+ | Character Animator | `ch_*` (2) | puppet PSDs via Photoshop | puppet PSDs via Photoshop |
45
+ | Blender | `blender_*` (6) | Python add-on socket or headless | Python add-on socket or headless |
46
+ | Substance 3D Painter | `substance_*` (4) | remote scripting (HTTP) | remote scripting (HTTP) |
47
+ | Poly Haven / ambientCG | `texture_*` (2) | HTTPS | HTTPS |
48
+
49
+ Only need one app? There are single-app editions with the same code:
50
+ [`adobe-after-effects-mcp`](https://www.npmjs.com/package/adobe-after-effects-mcp),
51
+ [`photoshop-mcp`](https://www.npmjs.com/package/photoshop-mcp),
52
+ [`illustrator-mcp`](https://www.npmjs.com/package/illustrator-mcp),
53
+ [`character-animator-mcp`](https://www.npmjs.com/package/character-animator-mcp),
54
+ [`substance-painter-mcp`](https://www.npmjs.com/package/substance-painter-mcp).
55
+ Or limit this package with `ADOBE_MCP_APPS=ae,ps` (keeps the tool list short for the model).
56
+
57
+ ## Try saying
58
+
59
+ - *"Create a 1920x1080 comp called Promo with a headline that slides in, then show me frame 30."*
60
+ - *"Turn the open photo into blueprint line art on a dark blue background and show me a preview."*
61
+ - *"Export every artboard in the Illustrator file as SVG, then bring the logo into After Effects as a layered comp."*
62
+ - *"Build a Character Animator puppet PSD for a cartoon fox with blinking eyes and all 14 visemes."*
63
+ - *"Import the AE comp into my Premiere sequence, reframe it vertical for Reels and export an H.264."*
64
+ - *"Plan a shot of a photo-real dinosaur walking past the camera, texture it with a free scale material and composite it over my plate."*
39
65
 
40
66
  ## Install
41
67
 
42
- ### Option A — one-click for Claude Desktop & Cowork (no Node needed)
68
+ You need the Adobe apps you want to drive (and/or Blender, Substance 3D Painter). For Premiere Pro
69
+ and After Effects, run `npx -y @ajsmonty/adobe-mcp install` once (or ask Claude to "set up Adobe",
70
+ which uses the `adobe_install_panel` tool): it adds the MCP Bridge panel, which then starts by itself
71
+ whenever those apps open.
43
72
 
44
- 1. Have the Adobe apps you want to drive installed. In After Effects, enable Preferences → Scripting & Expressions → **"Allow Scripts to Write Files and Access Network"**.
45
- 2. Download the latest `adobe-mcp-x.y.z.mcpb` from [Releases](https://github.com/AJSMonty/adobe-mcp/releases) and **double-click it** (or drag it onto Claude Desktop → Settings → Extensions). Claude Desktop bundles its own Node runtime — nothing else to install.
46
- 3. Use it. The first tool call for each app triggers a one-time macOS **Automation** permission prompt — click Allow.
73
+ ### Claude Desktop: one click (no Node needed)
47
74
 
48
- **Upgrading?** Remove the old version first (Settings → Extensions → Adobe Creative Cloud → Uninstall), then install the new `.mcpb` — in-place installs over an existing version can leave stale files behind while reporting the new version number.
75
+ Download `adobe-mcp-x.y.z.mcpb` from [Releases](https://github.com/AJSMonty/adobe-mcp/releases) and
76
+ double-click it (or drag it onto Settings → Extensions). Works on macOS and Windows.
49
77
 
50
- ### Option B — any MCP client via npm
78
+ **Upgrading?** Uninstall the old version first (Settings → Extensions → Adobe Creative Cloud → Uninstall):
79
+ in-place installs can leave stale files behind.
51
80
 
52
- Requires Node 18+ installed system-wide ([nodejs.org](https://nodejs.org) installer or `brew install node` — note GUI apps often cannot see nvm-managed installs). No clone, no `npm install`: every client config below just runs
81
+ ### Claude Code plugin
53
82
 
54
83
  ```
55
- npx -y @ajsmonty/adobe-mcp
84
+ /plugin marketplace add AJSMonty/adobe-mcp
85
+ /plugin install adobe-mcp@adobe-mcp
56
86
  ```
57
87
 
58
- ### Option C — from source (contributors)
88
+ Adds the server, a skill with the working rules, and `/adobe-doctor`. The skill alone also installs
89
+ with `npx skills add AJSMonty/adobe-mcp`.
59
90
 
60
- ```bash
61
- git clone https://github.com/AJSMonty/adobe-mcp.git ~/tools/adobe-mcp
62
- cd ~/tools/adobe-mcp && npm install
63
- # point your client at: node ~/tools/adobe-mcp/server.mjs
64
- ```
91
+ ### Any MCP client: one command
65
92
 
66
- **Premiere Pro only:** the `ppro_*` tools need the bundled CEP panel installed once — copy `cep/mcp-bridge` to `~/Library/Application Support/Adobe/CEP/extensions/` and enable `PlayerDebugMode` (see Notes), then open Window → Extensions → MCP Bridge inside Premiere.
67
-
68
- ## Hook up to your MCP client
69
-
70
- This is a standard **stdio MCP server** — any MCP-capable client can drive it (Claude Code,
71
- Claude Desktop, Cursor, Windsurf, VS Code Copilot agent mode, Zed, Cline, Goose, ...).
72
- Everything below is the same one-liner expressed in each client's config format:
73
- run `npx -y @ajsmonty/adobe-mcp` over stdio (or `node .../server.mjs` for a source checkout).
74
-
75
- ### Claude Code
93
+ Node 18+ installed system-wide ([nodejs.org](https://nodejs.org); on macOS GUI apps often cannot see
94
+ nvm-managed installs):
76
95
 
77
96
  ```bash
78
- claude mcp add --scope user adobe -- npx -y @ajsmonty/adobe-mcp
97
+ npx -y @ajsmonty/adobe-mcp install --client claude-desktop
79
98
  ```
80
99
 
81
- `--scope user` = available in all projects; use `--scope project` from inside a repo to share via `.mcp.json` with your team. Verify: `claude mcp list`.
100
+ `--client` accepts `claude-desktop`, `cursor`, `windsurf` or `claude-code`. If Premiere Pro is
101
+ installed it also sets up the Premiere panel (below). Add `--apps ae,ps` to register only some apps, `--no-panel` to skip the panel,
102
+ `--dry-run` to see what it would change. Existing configs are merged, with a `.bak` copy kept.
82
103
 
83
- ### Claude Desktop
104
+ ### Any MCP client: by hand
84
105
 
85
- Settings → Developer → Edit Config, add to `claude_desktop_config.json`:
106
+ It's a standard stdio server. macOS/Linux config:
86
107
 
87
108
  ```json
88
109
  {
89
110
  "mcpServers": {
90
- "adobe": {
91
- "command": "npx",
92
- "args": ["-y", "@ajsmonty/adobe-mcp"]
93
- }
111
+ "adobe": { "command": "npx", "args": ["-y", "@ajsmonty/adobe-mcp"] }
94
112
  }
95
113
  }
96
114
  ```
97
115
 
98
- Fully quit and reopen Claude Desktop.
99
-
100
- ### Cursor
101
-
102
- Settings → MCP → Add server, or edit `~/.cursor/mcp.json` (global) / `.cursor/mcp.json` (per-project):
116
+ Windows: GUI apps can't start `npx` directly, so go through `cmd`:
103
117
 
104
118
  ```json
105
119
  {
106
120
  "mcpServers": {
107
- "adobe": {
108
- "command": "npx",
109
- "args": ["-y", "@ajsmonty/adobe-mcp"]
110
- }
121
+ "adobe": { "command": "cmd", "args": ["/c", "npx", "-y", "@ajsmonty/adobe-mcp"] }
111
122
  }
112
123
  }
113
124
  ```
114
125
 
115
- Enable it under Settings → MCP, then use Agent mode (composer) — tool calls appear with approval prompts.
126
+ | Client | Where the config goes |
127
+ |---|---|
128
+ | Claude Code | `claude mcp add --scope user adobe -- npx -y @ajsmonty/adobe-mcp` (Windows: `... -- cmd /c npx -y @ajsmonty/adobe-mcp`) |
129
+ | Claude Desktop | Settings → Developer → Edit Config (`claude_desktop_config.json`), then fully quit and reopen |
130
+ | Cursor | `~/.cursor/mcp.json` or `.cursor/mcp.json`; use Agent mode |
131
+ | VS Code (Copilot agent mode) | `.vscode/mcp.json`: `{"servers": {"adobe": {"type": "stdio", "command": "npx", "args": ["-y", "@ajsmonty/adobe-mcp"]}}}` |
132
+ | Windsurf | `~/.codeium/windsurf/mcp_config.json` |
133
+ | Anything else | run `npx -y @ajsmonty/adobe-mcp` over stdio |
116
134
 
117
- ### VS Code (Copilot agent mode)
135
+ ### From source (contributors)
118
136
 
119
- `.vscode/mcp.json` in the workspace (or user `mcp.json` via the "MCP: Add Server" command):
137
+ ```bash
138
+ git clone https://github.com/AJSMonty/adobe-mcp.git && cd adobe-mcp && npm install && npm test
139
+ # point your client at: node /path/to/adobe-mcp/server.mjs
140
+ ```
120
141
 
121
- ```json
122
- {
123
- "servers": {
124
- "adobe": {
125
- "type": "stdio",
126
- "command": "npx",
127
- "args": ["-y", "@ajsmonty/adobe-mcp"]
128
- }
129
- }
130
- }
142
+ ## Set up each app
143
+
144
+ | App | One-time setup |
145
+ |---|---|
146
+ | After Effects | Install the MCP Bridge panel (above) and restart AE: scripts then go through it, with no preference to change and no Automation prompt. Without the panel, turn on Preferences → Scripting & Expressions → "Allow Scripts to Write Files and Access Network". AE must be open with a project (the empty default is fine). |
147
+ | Photoshop, Illustrator, InDesign | Nothing. macOS asks for Automation permission on first use: click Allow. |
148
+ | Media Encoder | Nothing extra: the `ame_*` tools hand work to Media Encoder through Premiere Pro, so Premiere (and its panel) must be open. |
149
+ | Animate | Nothing. Animate must be open with no dialog showing. |
150
+ | Premiere Pro | Install the MCP Bridge panel (above) and restart Premiere: it starts by itself from then on (or open Window → Extensions → MCP Bridge). |
151
+ | Character Animator | Nothing: puppets are built in Photoshop, then opened in Character Animator. |
152
+ | Blender | Background mode works out of the box. For live mode, install `bridges/blender/adobe_mcp_bridge.py` as an add-on. |
153
+ | Substance 3D Painter | Start it with `--enable-remote-scripting` (see the 3D section). |
154
+
155
+ ### Check everything with `doctor`
156
+
157
+ ```bash
158
+ npx -y @ajsmonty/adobe-mcp doctor # what's installed, running and configured
159
+ npx -y @ajsmonty/adobe-mcp doctor --live # also runs a one-line script in each open app
131
160
  ```
132
161
 
133
- ### Windsurf
162
+ It checks Node, the workspace folder, every Adobe app, the MCP Bridge panel (installed, up to date,
163
+ running in Premiere and After Effects) and `PlayerDebugMode`, AE's scripting preference when the
164
+ panel isn't running, COM availability on Windows, the Barrows AE Bridge, Blender and Substance, and
165
+ prints the fix for anything that fails. `--json` gives machine-readable output.
134
166
 
135
- `~/.codeium/windsurf/mcp_config.json` — same `mcpServers` shape as Claude Desktop/Cursor above.
167
+ **From inside the chat:** the same checks are the `adobe_setup_check` tool, the installer is
168
+ `adobe_install_panel`, and the `setup_adobe` prompt ("Set up Adobe for Claude") walks through both.
169
+ `adobe_whats_new` shows the release notes.
136
170
 
137
- ### Anything else
171
+ ### Using the Barrows AE Bridge too
138
172
 
139
- If the client supports MCP over stdio, point it at `npx -y @ajsmonty/adobe-mcp` and you are done.
173
+ The Barrows AE Bridge is a separate extension with its own installer. Install both and Claude gets
174
+ both tool sets. When adobe-mcp sees the Barrows extension, it hides the four basic After Effects
175
+ tools that Barrows covers (`ae_run_extendscript`, `ae_get_state`, `ae_save_frame`, `ae_render_comp`)
176
+ so there's one obvious choice; its other After Effects tools stay. Set `ADOBE_MCP_BARROWS=keep` to
177
+ show them anyway.
140
178
 
141
- ### Client caveats
179
+ ## Tools
142
180
 
143
- - **macOS Automation permission is per host app.** The first tool call from each new client
144
- (Cursor, VS Code, a different terminal) triggers its own Automation prompt for controlling
145
- the Adobe apps — approve it once per host in System Settings → Privacy & Security → Automation.
146
- - **Inline image previews** (`ae_save_frame`, `ps_save_preview`, `ai_save_preview`,
147
- `ppro_save_frame`) return MCP image content. Claude clients and Cursor render these inline;
148
- clients without image rendering still get the metadata text, and the model can fall back to
149
- exporting a file and reading it from disk.
150
- - **Server instructions** (the working rules + knowledge-base pointers) are sent via the MCP
151
- `instructions` field; most clients pass them to the model, but if yours does not, the same
152
- rules are baked into the tool descriptions and `knowledge_search`.
181
+ | Tool | What it does |
182
+ |---|---|
183
+ | `ae_run_extendscript` | Run any ExtendScript in After Effects; `return <value>` comes back as JSON. Undo-grouped. |
184
+ | `ae_get_state` | Project tree (comps, footage, folders), or one comp's layers in detail. |
185
+ | `ae_save_frame` | Render one comp frame and return it inline. |
186
+ | `ae_render_comp` | Queue a comp in the Render Queue and render it to disk. |
187
+ | `ps_run_extendscript` | Run any ExtendScript in Photoshop. |
188
+ | `ps_get_state` | Open documents and the active document's full layer tree. |
189
+ | `ps_save_preview` | Flattened PNG preview of the active document, inline. |
190
+ | `ps_export` | Export the active document to PNG, JPG or layered PSD. |
191
+ | `ps_run_action` | Play a recorded action from an action set. |
192
+ | `ai_run_extendscript` | Run any ExtendScript in Illustrator. |
193
+ | `ai_get_state` | Artboards, layers with item counts, text frames. |
194
+ | `ai_save_preview` | PNG preview of an artboard, inline. |
195
+ | `ai_export` | Export to SVG, PNG or PDF, or save a layered `.ai` for After Effects. |
196
+ | `ppro_run_extendscript` | Run ExtendScript in Premiere via the MCP Bridge panel. |
197
+ | `ppro_get_state` | Project, bins, sequences with track and clip inventory. |
198
+ | `ppro_import_media` | Import files into the project or a named bin. |
199
+ | `ppro_import_ae_comp` | Dynamic-Link After Effects comps into the project (no intermediate render). |
200
+ | `ppro_save_frame` | Render one frame of the active sequence, inline. |
201
+ | `ppro_export_sequence` | Render the active sequence with an `.epr` preset (Match Source H.264 by default). |
202
+ | `ch_taxonomy` | The layer naming Character Animator auto-rigs from. |
203
+ | `ch_build_puppet` | Build a rig-ready puppet PSD in Photoshop (head, brows, eyes, 14 visemes, limbs). |
204
+ | `blender_run_python` | Run `bpy` code live in Blender or in a headless Blender. |
205
+ | `blender_get_state` | Scene summary: frames, fps, engine, camera, passes, objects. |
206
+ | `blender_render_frame` | Render a preview frame through the scene camera, inline. |
207
+ | `blender_render_animation` | Render the frame range with the scene's output settings. |
208
+ | `blender_apply_texture` | Build a PBR material from a library asset or local maps and assign it. |
209
+ | `blender_set_hdri` | Light the scene with a library or local HDRI. |
210
+ | `substance_run_python` | Run Python in Substance 3D Painter. |
211
+ | `substance_get_state` | Texture sets, resolutions, stacks, channels, layers. |
212
+ | `substance_bake_mesh_maps` | Bake mesh maps (normal, AO, curvature, ...). |
213
+ | `substance_export_textures` | Export PBR maps with a preset. |
214
+ | `texture_search` | Search Poly Haven and ambientCG (CC0) for textures or HDRIs. |
215
+ | `texture_download` | Download an asset at 1k–8k into a local cache with normalised map names. |
216
+ | `vfx_plan_creature_shot` | Turn a creature-shot brief into physics-based timing and the ordered tool calls. |
217
+ | `workflow_assets` | The shared cross-app asset registry. |
218
+ | `handoff_import_to_ae` | Import a file into AE (layered PSD/AI become comps). |
219
+ | `handoff_place_in_ps` | Place an image or vector file as a layer in Photoshop. |
220
+ | `list_scripts` | List the per-app script library with descriptions. |
221
+ | `run_script` | Run a library script in its app, with parameters. |
222
+ | `knowledge_search` | Search the scripting lessons and gotchas. |
223
+ | `knowledge_add` | Record a new lesson so future sessions benefit. |
224
+
225
+ **Production tools** (templates, versions, delivery):
226
+
227
+ | Tool | What it does |
228
+ |---|---|
229
+ | `ae_template_fill` | Set text and swap footage/image layers in a template comp by layer name, optionally on a copy. |
230
+ | `ae_versions_from_data` | One version of a template comp per spreadsheet row (prices, regions, stores), optionally rendered. |
231
+ | `ae_queue_render` | Queue comps with chosen render and output templates; render now or hand to Media Encoder. |
232
+ | `ps_replace_smart_object` | Drop artwork into mockup smart objects by layer name and save the result. |
233
+ | `ps_batch_export` | Every size in one go: cover/contain/width/height fits, PNG/JPG/TIF. |
234
+ | `ai_data_merge` | Price cards, shelf talkers and signage from a spreadsheet and an Illustrator template. |
235
+ | `ai_recolor_to_palette` | Map every colour to the nearest brand colour (dry run by default). |
236
+ | `id_run_extendscript`, `id_get_state` | Script InDesign; pages, frames, styles, links, missing fonts, merge fields. |
237
+ | `id_fill_text`, `id_export`, `id_save_preview` | Fill named frames; export PDF (named preset)/PNG/JPG; inline page preview. |
238
+ | `id_data_merge` | Run InDesign's Data Merge on a template with a CSV and export the PDF. |
239
+ | `ppro_insert_clip`, `ppro_edit_clip` | Put clips on a track (overwrite or ripple insert, source in/out); trim, move, remove, rename, enable. |
240
+ | `ppro_add_markers`, `ppro_import_captions` | Sequence markers; caption tracks from `.srt`. |
241
+ | `ppro_add_mogrt`, `ppro_relink_media` | Place a `.mogrt` and fill its fields; find and relink offline media (dry run by default). |
242
+ | `ame_queue_sequence`, `ame_encode_files`, `ame_list_presets` | Encode in Media Encoder with a named or `.epr` preset while Premiere stays free. |
243
+ | `an_run_jsfl`, `an_get_state`, `an_export` | Script Animate; document state; PNG sequence/frame, video or Publish. |
244
+ | `assets_batch_rename` | Bridge-style batch rename with `{name}`, `{n:3}`, `{parent}`, `{date}` tokens and regex replace. |
245
+ | `assets_read_metadata`, `assets_write_metadata` | Read and set title, description, keywords, creator and copyright (XMP) on many files. |
246
+
247
+ ## 3D & cinematic VFX pipeline (Blender + Substance 3D Painter)
248
+
249
+ Two Python bridges extend the server beyond ExtendScript so one agent can take a shot from
250
+ blocking to final composite:
153
251
 
154
- ## Script library ("skills")
252
+ ```
253
+ ┌──► Blender ──────────► Python (bpy): live add-on socket :9877, or headless `blender -b`
254
+ MCP client ───────┼──► Substance Painter ─► Python: remote scripting HTTP :60041 (/run.json)
255
+ └──► After Effects ────► ExtendScript (osascript on macOS, AfterFX.exe on Windows)
256
+ ```
257
+
258
+ Free CC0 texture & HDRI libraries ([Poly Haven](https://polyhaven.com), [ambientCG](https://ambientcg.com)):
259
+ everything both publish is public domain, so it's free for commercial work with no attribution.
260
+
261
+ The downloaded folder also works as `texture_dir` for `Creature_Walk_Cinematic.py`. Set
262
+ `POLYHAVEN_API` / `AMBIENTCG_API` to point at a mirror if you need to.
263
+
264
+ Library scripts (run with `run_script`, parameters via `params`):
265
+
266
+ - `scripts/blender/Creature_Walk_Cinematic.py`: a heavy-biped walk timed from physics. Speed comes
267
+ from the Froude number, stride from Alexander (1976), and feet stay planted with zero slide. The
268
+ neck and tail lag 3 frames per joint, the head is gaze-stabilised and turns toward the lens, and
269
+ the chest breathes. The camera is a handheld rig with operator lag and footfall impact shake. The
270
+ render setup is Cycles with a 180° shutter, a shadow catcher, and beauty/shadow/mist PNG sequences
271
+ plus a multilayer EXR. Tested headless against Blender 5.0.1 (`bpy`); it also handles the 4.x APIs.
272
+ - `scripts/substance/Creature_Skin_LookDev.py`: optional bake, then a matte "aged scales" base,
273
+ a cavity-masked wetness layer, and glossy eye/mouth sets, all in one undo step. Optional export.
274
+ - `scripts/ae/Cinematic_3D_Composite.jsx`: imports the passes, multiplies the shadow, adds a
275
+ precomped edge light wrap, depth haze from mist, an optional depth lens blur, CG softening, and
276
+ grain on the CG only.
277
+
278
+ Setup:
279
+
280
+ - **Blender live mode**: Edit → Preferences → Add-ons → Install from Disk →
281
+ `bridges/blender/adobe_mcp_bridge.py`, then enable it (listens on `127.0.0.1:9877`; override with
282
+ `BLENDER_MCP_PORT`). **Background mode** needs no add-on; it finds `/Applications/Blender*.app`,
283
+ `C:\Program Files\Blender Foundation\Blender *\blender.exe` or `blender` on `PATH` (override with `BLENDER_PATH`).
284
+ - **Substance 3D Painter**: launch with remote scripting enabled (port override: `SUBSTANCE_PAINTER_PORT`).
285
+ macOS: `open -a "Adobe Substance 3D Painter" --args --enable-remote-scripting`.
286
+ Windows: run `"Adobe Substance 3D Painter.exe" --enable-remote-scripting` from its install folder
287
+ (or add the flag to a desktop shortcut).
288
+ - Both bridges are local-only and unauthenticated: anything on the machine that can reach the
289
+ port can run Python in the app. Disable the Blender add-on or quit Painter when you're done.
155
290
 
156
- Drop `.jsx` / `.jsxbin` files into `scripts/` — they're immediately available via `list_ae_scripts` / `run_ae_script`.
291
+ ## Knowledge system (the server learns as it goes)
157
292
 
158
- - **Action scripts** (operate on the current selection, no UI) run headlessly — set up selection first via `run_extendscript`.
159
- - **ScriptUI panel scripts** open their palette in the AE window for a human to click.
160
- - Plain `.jsx` panels with a separable core function can often be driven headlessly by evaluating the source with the UI kickoff stripped.
293
+ The server ships with a curated knowledge base (`knowledge/lessons.jsonl`) seeded from real
294
+ production sessions — matchName gotchas, API quirks, parameter-type traps, and techniques
295
+ (blueprint line extraction, seamless wind loops, QE transitions, Auto Reframe...).
161
296
 
162
- > ⚠️ `scripts/` may contain third-party/purchased tools. Keep this repo **private** unless you've cleared redistribution rights, or add `scripts/` to `.gitignore`.
297
+ Three mechanisms keep it useful and growing:
163
298
 
164
- ## Notes
299
+ 1. **Auto-surfaced gotchas** — every failed `*_run_extendscript` call is matched against the
300
+ lesson keywords; hits are appended to the error message the client sees (e.g. hit
301
+ `Illegal Parameter type` in Premiere and the fix for `autoReframeSequence`'s string preset
302
+ arrives with the error). Failures are also logged to `$WORKSPACE/error-log.jsonl` as raw
303
+ material for new lessons.
304
+ 2. **`knowledge_search` / `knowledge_add` tools** — agents consult lessons before attempting
305
+ unusual scripting, and record new gotchas when they solve one that wasn't auto-suggested.
306
+ Runtime lessons persist to `$WORKSPACE/learned.jsonl` (survives repo updates, per-install).
307
+ 3. **Server instructions + tool descriptions** — the highest-value rules (explicit document
308
+ targeting, visual verification, render-timeout handling, ES3 limits) are baked into the MCP
309
+ instructions and the per-tool descriptions, so a fresh install starts smart.
165
310
 
166
- - AE app auto-detected from `/Applications` (newest "Adobe After Effects *"). Override with env var `AE_APP_NAME`, e.g. `"env": {"AE_APP_NAME": "Adobe After Effects 2025"}` in the Desktop config or `--env AE_APP_NAME=...` in `claude mcp add`.
167
- - **AE must be open** with a project (the empty default project is fine).
168
- - Timeouts usually mean AE is showing a modal dialog — dismiss it.
169
- - `save_frame` needs AE 2022+.
311
+ The `scripts/` per-app libraries are the executable side of the same idea — distilled,
312
+ reusable skills (`list_scripts` / `run_script`): blueprint line extraction (PS), seamless
313
+ wind loops and kinetic typography rigs (AE), one-call vertical Auto Reframe (Premiere).
170
314
 
171
315
  ## ExtendScript gotchas (learned the hard way)
172
316
 
@@ -180,16 +324,114 @@ Drop `.jsx` / `.jsxbin` files into `scripts/` — they're immediately available
180
324
  - Parenting a child to a rotated layer bakes compensation into the child's transform — zero the child's rotation *after* parenting if it should inherit orientation.
181
325
  - Grid effect: set **Size From** (`ADBE Grid-0002 = 3`) before animating the anchor, or your "scroll" resizes cells instead.
182
326
 
327
+ ## Script library ("skills")
328
+
329
+ Per-app scripts live in `scripts/<app>/` (`ae`, `ps`, `ppro`, `blender`, `substance`). `list_scripts`
330
+ shows them with the descriptions from their header comments and `run_script` runs one in its app.
331
+ Drop your own `.jsx` / `.jsxbin` / `.py` files in to extend it.
332
+
333
+ - **Action scripts** (operate on the current selection, no UI) run headlessly: set the selection
334
+ first with `*_run_extendscript`.
335
+ - **ScriptUI panel scripts** open their palette in the app for a human to click.
336
+
337
+ > ⚠️ `scripts/` may hold third-party or purchased tools. Keep your fork **private** unless you're
338
+ > allowed to redistribute them, or add those files to `.gitignore`.
339
+
340
+ ## Platform support
341
+
342
+ | | macOS | Windows |
343
+ |---|---|---|
344
+ | After Effects, Photoshop, Illustrator, InDesign | ✅ | ✅ |
345
+ | Premiere Pro (CEP panel), Media Encoder (via Premiere) | ✅ | ✅ |
346
+ | Animate | ✅ | ✅ |
347
+ | Character Animator (via Photoshop) | ✅ | ✅ |
348
+ | Blender, Substance 3D Painter, texture libraries | ✅ | ✅ |
349
+ | Inline previews downscaled | `sips` | Windows PowerShell + System.Drawing |
350
+
351
+ Windows notes:
352
+
353
+ - After Effects has no COM server, so the bridge hands scripts to the running AE with
354
+ `AfterFX.exe -r`. AE must already be open. Set `AE_EXE` if it's not under `Program Files\Adobe`.
355
+ - Photoshop and Illustrator use COM through Windows Script Host (`cscript.exe`). Pin a version with
356
+ `PS_COM_PROGID` / `AI_COM_PROGID` (e.g. `Photoshop.Application.200`) if several are installed.
357
+ - Run the Adobe apps and your MCP client at the same privilege level (both normal, or both as
358
+ administrator), or COM refuses with "Access denied".
359
+
360
+ On Linux the server still starts, and the Blender and texture tools work; the Adobe tools explain
361
+ that they need macOS or Windows.
362
+
363
+ ## Troubleshooting
364
+
365
+ Run `npx -y @ajsmonty/adobe-mcp doctor --live` first. Common cases:
366
+
367
+ | Symptom | Fix |
368
+ |---|---|
369
+ | "no result file appeared" from AE | Install the MCP Bridge panel and restart AE (recommended), or turn on "Allow Scripts to Write Files and Access Network". |
370
+ | Timeouts | The app is showing a modal dialog: dismiss it. Long renders: raise `timeout_seconds`, and check the output file before re-running. |
371
+ | macOS: "not authorized" / -1743 | System Settings → Privacy & Security → Automation → allow your MCP client to control the app. Each new client (Cursor, a different terminal) asks once. |
372
+ | Windows: `COM_CREATE_FAILED 0x800401f3` | The app isn't registered for COM: open it once normally, or set `PS_COM_PROGID` / `AI_COM_PROGID`. |
373
+ | Windows: `0x80070005` Access denied | Run the Adobe app and the MCP client at the same privilege level. |
374
+ | "MCP Bridge panel is not running" | `npx -y @ajsmonty/adobe-mcp install`, restart Premiere / After Effects. If it still doesn't start by itself, open Window → Extensions → MCP Bridge. |
375
+ | Client shows no tools (Windows) | Use `"command": "cmd", "args": ["/c", "npx", ...]` in the config. |
376
+ | Client shows no tools (macOS, nvm) | GUI apps can't see nvm's Node; install Node from nodejs.org or Homebrew. |
377
+
378
+ ## Configuration
379
+
380
+ | Variable | Default | Purpose |
381
+ |---|---|---|
382
+ | `ADOBE_MCP_APPS` | all | Comma list of tool sets: `ae, ps, ai, id, ppro (includes Media Encoder), an, ch, blender, substance, textures, vfx, files`. Names like `indesign`, `animate` or `media-encoder` work too. |
383
+ | `ADOBE_MCP_WORKSPACE` | `~/AdobeMCP` | Rendered assets, asset registry, learned lessons. |
384
+ | `AE_APP_NAME`, `PS_APP_NAME`, `AI_APP_NAME`, `ID_APP_NAME`, `PPRO_APP_NAME`, `AN_APP_NAME` | newest installed | macOS app names, e.g. `Adobe After Effects 2025`. |
385
+ | `AE_EXE` | newest `AfterFX.exe` | Windows path to After Effects. |
386
+ | `PS_COM_PROGID`, `AI_COM_PROGID`, `ID_COM_PROGID` | `Photoshop.Application`, `Illustrator.Application`, `InDesign.Application` | Windows COM ProgIDs. |
387
+ | `AN_EXE` (Windows), `AN_APP_PATH` (macOS) | newest installed | Where Animate is. |
388
+ | `BLENDER_PATH`, `BLENDER_MCP_PORT` | auto, `9877` | Blender executable, live add-on port. |
389
+ | `SUBSTANCE_PAINTER_PORT` | `60041` | Substance remote-scripting port. |
390
+ | `ADOBE_MCP_AE_ROUTE` | panel when running | `script` forces After Effects onto AppleScript / `AfterFX.exe` even when the panel is up. |
391
+ | `ADOBE_MCP_BARROWS` | auto | `keep` shows the basic AE tools even when the Barrows AE Bridge is installed. |
392
+ | `ADOBE_MCP_TELEMETRY`, `ADOBE_MCP_TELEMETRY_URL` | off | Opt-in anonymous usage counts (see below). |
393
+
394
+ ## Real limits
395
+
396
+ - These are scripting bridges into desktop apps. The app must be installed, and usually open.
397
+ - A modal dialog in any app blocks its bridge until someone dismisses it.
398
+ - The MCP Bridge panel is unsigned, which is why `PlayerDebugMode` is needed. It talks to the server
399
+ only through files in `~/AdobeMCP/ppro-bridge` and `~/AdobeMCP/ae-bridge`: no network port.
400
+ - Character Animator has no scripting API: puppets are authored in Photoshop around it.
401
+ - The Blender add-on and Substance remote scripting listen on localhost without authentication.
402
+ Read [SECURITY.md](SECURITY.md).
403
+
404
+ ## Privacy and telemetry
405
+
406
+ Nothing is sent anywhere by default. If you set `ADOBE_MCP_TELEMETRY=1` *and* an endpoint
407
+ (`ADOBE_MCP_TELEMETRY_URL`), the server posts at most once a day: a random install id, the version,
408
+ OS and Node version, the enabled apps, and per-tool call and error counts. It never sends scripts,
409
+ file paths, project names, arguments, results or error text. The only other network traffic is the
410
+ texture library APIs, when you call those tools.
411
+
183
412
  ## Smoke test
184
413
 
185
- With AE open, ask Claude: *"Use get_project_state to show me what's in my AE project, then create a 1920x1080 comp called 'Test' with a headline text layer and show me a frame."*
414
+ With After Effects open, ask: *"Use ae_get_state to show me what's in my project, then create a
415
+ 1920x1080 comp called 'Test' with a headline text layer and show me a frame."*
186
416
 
187
417
  ## Contributing & governance
188
418
 
189
- PRs welcome — see [CONTRIBUTING.md](CONTRIBUTING.md). All merges to `main` and `dev` require
190
- maintainer approval (branch protection + CODEOWNERS). Lessons for the knowledge base are the
191
- easiest high-value contribution. Read [SECURITY.md](SECURITY.md) before installing: this
192
- server executes scripts in your Adobe apps by design.
419
+ PRs welcome: see [CONTRIBUTING.md](CONTRIBUTING.md). `npm test` runs the server end to end over stdio
420
+ on macOS, Windows and Linux in CI. All merges to `main` and `dev` need maintainer approval (branch
421
+ protection + CODEOWNERS). Lessons for the knowledge base are the easiest high-value contribution.
422
+ Read [SECURITY.md](SECURITY.md) before installing: this server runs scripts in your apps by design.
423
+
424
+ Releases are automatic: bump the version in `package.json`, `manifest.json`, `server.json` and
425
+ `.claude-plugin/*` in your PR (CI checks they agree) and merge it. Any merge to `main` whose version
426
+ has no GitHub release yet publishes the npm packages, the `.mcpb` bundle and the MCP registry entry.
427
+ Merges without a version bump publish nothing. To retry a release, run the **release** workflow
428
+ from the Actions tab.
429
+
430
+ ## Credits
431
+
432
+ Created by [AJ Montgomery](https://github.com/AJSMonty). The InDesign, Animate, Media Encoder, Premiere
433
+ editing, After Effects templating, Photoshop/Illustrator production and file tools come from the
434
+ Barrows line of adobe-mcp, with contributions by Derrin Byrne.
193
435
 
194
436
  ## License
195
437
 
package/SECURITY.md CHANGED
@@ -12,9 +12,32 @@ echo every script body in the conversation.
12
12
  Additional notes:
13
13
 
14
14
  - The server binds to **stdio only** — it opens no network ports and has no remote surface.
15
+ - **Exception: the optional 3D bridges are local ports.** The Blender add-on
16
+ (`bridges/blender/adobe_mcp_bridge.py`) listens on `127.0.0.1:9877`, and Substance 3D Painter's
17
+ own remote scripting (`--enable-remote-scripting`) listens on port 60041. Neither is
18
+ authenticated: any local process that can reach the port can run Python in that app. Enable
19
+ them only while you use them. Blender background mode opens no port.
15
20
  - The workspace (`~/AdobeMCP` by default) collects rendered assets, an error log
16
- (`error-log.jsonl`, includes failed script snippets) and learned lessons. Nothing is
21
+ (`error-log.jsonl`, includes failed script snippets) and learned lessons. Nothing from it is
17
22
  transmitted anywhere by this server.
23
+ - **Telemetry is off by default.** It only runs when you set both `ADOBE_MCP_TELEMETRY=1` and an
24
+ endpoint (`ADOBE_MCP_TELEMETRY_URL`), and then sends only a random install id, version, OS/Node
25
+ version, enabled apps and per-tool call/error counts. No scripts, paths, names, arguments or results.
26
+ - **Windows:** Photoshop and Illustrator are driven through their COM automation servers via
27
+ `cscript.exe`, and After Effects through `AfterFX.exe -r`. These run as your user; nothing is
28
+ elevated. `install` writes only to your user profile (`%APPDATA%\Adobe\CEP\extensions`,
29
+ `HKCU\Software\Adobe\CSXS.*`, and the MCP client config you name, keeping a `.bak`).
30
+ - **macOS:** `install` writes the CEP panel to `~/Library/Application Support/Adobe/CEP/extensions`
31
+ and sets `PlayerDebugMode` in the `com.adobe.CSXS.*` user defaults.
32
+ - **Outbound requests:** only the texture-library tools (`texture_search`, `texture_download`,
33
+ `blender_apply_texture` / `blender_set_hdri` with a library id) make network calls, and only
34
+ plain GETs to `api.polyhaven.com`, `ambientcg.com` and their download CDNs. They send search
35
+ keywords and asset ids, never your files or scene data.
36
+ - **The MCP Bridge panel** (Premiere Pro and After Effects) opens no port. It reads command files from
37
+ `~/AdobeMCP/ppro-bridge` / `~/AdobeMCP/ae-bridge` and writes results next to them, so anything that
38
+ can write to your home folder can already run scripts as you. It starts by itself when those apps open.
39
+ - The **Barrows AE Bridge** is a separate extension with its own security model; adobe-mcp only checks
40
+ whether it is installed and never talks to it.
18
41
  - Library scripts under `scripts/` run with the same privileges; only add scripts you trust.
19
42
 
20
43
  ## Reporting a vulnerability