@ajsmonty/adobe-mcp 1.1.2 → 1.3.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.
package/README.md CHANGED
@@ -1,172 +1,274 @@
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...).
21
-
22
- Three mechanisms keep it useful and growing:
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**. 41 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.
23
13
 
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_*` (4) | AppleScript `DoScript` | `AfterFX.exe -r` |
37
+ | Photoshop | `ps_*` (5) | AppleScript `do javascript` | COM `DoJavaScriptFile` |
38
+ | Illustrator | `ai_*` (4) | AppleScript `do javascript` | COM `DoJavaScriptFile` |
39
+ | Premiere Pro | `ppro_*` (6) | MCP Bridge CEP panel | MCP Bridge CEP panel |
40
+ | Character Animator | `ch_*` (2) | puppet PSDs via Photoshop | puppet PSDs via Photoshop |
41
+ | Blender | `blender_*` (6) | Python add-on socket or headless | Python add-on socket or headless |
42
+ | Substance 3D Painter | `substance_*` (4) | remote scripting (HTTP) | remote scripting (HTTP) |
43
+ | Poly Haven / ambientCG | `texture_*` (2) | HTTPS | HTTPS |
44
+
45
+ Only need one app? There are single-app editions with the same code:
46
+ [`adobe-after-effects-mcp`](https://www.npmjs.com/package/adobe-after-effects-mcp),
47
+ [`photoshop-mcp`](https://www.npmjs.com/package/photoshop-mcp),
48
+ [`illustrator-mcp`](https://www.npmjs.com/package/illustrator-mcp),
49
+ [`character-animator-mcp`](https://www.npmjs.com/package/character-animator-mcp),
50
+ [`substance-painter-mcp`](https://www.npmjs.com/package/substance-painter-mcp).
51
+ Or limit this package with `ADOBE_MCP_APPS=ae,ps` (keeps the tool list short for the model).
52
+
53
+ ## Try saying
54
+
55
+ - *"Create a 1920x1080 comp called Promo with a headline that slides in, then show me frame 30."*
56
+ - *"Turn the open photo into blueprint line art on a dark blue background and show me a preview."*
57
+ - *"Export every artboard in the Illustrator file as SVG, then bring the logo into After Effects as a layered comp."*
58
+ - *"Build a Character Animator puppet PSD for a cartoon fox with blinking eyes and all 14 visemes."*
59
+ - *"Import the AE comp into my Premiere sequence, reframe it vertical for Reels and export an H.264."*
60
+ - *"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
61
 
40
62
  ## Install
41
63
 
42
- ### Option A — one-click for Claude Desktop & Cowork (no Node needed)
64
+ You need the Adobe apps you want to drive (and/or Blender, Substance 3D Painter).
65
+ In After Effects, turn on **Preferences → Scripting & Expressions → "Allow Scripts to Write Files and
66
+ Access Network"**.
43
67
 
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.
68
+ ### Claude Desktop: one click (no Node needed)
47
69
 
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.
70
+ Download `adobe-mcp-x.y.z.mcpb` from [Releases](https://github.com/AJSMonty/adobe-mcp/releases) and
71
+ double-click it (or drag it onto Settings → Extensions). Works on macOS and Windows.
49
72
 
50
- ### Option B — any MCP client via npm
73
+ **Upgrading?** Uninstall the old version first (Settings → Extensions → Adobe Creative Cloud → Uninstall):
74
+ in-place installs can leave stale files behind.
51
75
 
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
76
+ ### Claude Code plugin
53
77
 
54
78
  ```
55
- npx -y @ajsmonty/adobe-mcp
79
+ /plugin marketplace add AJSMonty/adobe-mcp
80
+ /plugin install adobe-mcp@adobe-mcp
56
81
  ```
57
82
 
58
- ### Option C — from source (contributors)
83
+ Adds the server, a skill with the working rules, and `/adobe-doctor`. The skill alone also installs
84
+ with `npx skills add AJSMonty/adobe-mcp`.
59
85
 
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
- ```
65
-
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
86
+ ### Any MCP client: one command
69
87
 
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
88
+ Node 18+ installed system-wide ([nodejs.org](https://nodejs.org); on macOS GUI apps often cannot see
89
+ nvm-managed installs):
76
90
 
77
91
  ```bash
78
- claude mcp add --scope user adobe -- npx -y @ajsmonty/adobe-mcp
92
+ npx -y @ajsmonty/adobe-mcp install --client claude-desktop
79
93
  ```
80
94
 
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`.
95
+ `--client` accepts `claude-desktop`, `cursor`, `windsurf` or `claude-code`. If Premiere Pro is
96
+ installed it also sets up the Premiere panel (below). Add `--apps ae,ps` to register only some apps, `--no-panel` to skip the panel,
97
+ `--dry-run` to see what it would change. Existing configs are merged, with a `.bak` copy kept.
82
98
 
83
- ### Claude Desktop
99
+ ### Any MCP client: by hand
84
100
 
85
- Settings → Developer → Edit Config, add to `claude_desktop_config.json`:
101
+ It's a standard stdio server. macOS/Linux config:
86
102
 
87
103
  ```json
88
104
  {
89
105
  "mcpServers": {
90
- "adobe": {
91
- "command": "npx",
92
- "args": ["-y", "@ajsmonty/adobe-mcp"]
93
- }
106
+ "adobe": { "command": "npx", "args": ["-y", "@ajsmonty/adobe-mcp"] }
94
107
  }
95
108
  }
96
109
  ```
97
110
 
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):
111
+ Windows: GUI apps can't start `npx` directly, so go through `cmd`:
103
112
 
104
113
  ```json
105
114
  {
106
115
  "mcpServers": {
107
- "adobe": {
108
- "command": "npx",
109
- "args": ["-y", "@ajsmonty/adobe-mcp"]
110
- }
116
+ "adobe": { "command": "cmd", "args": ["/c", "npx", "-y", "@ajsmonty/adobe-mcp"] }
111
117
  }
112
118
  }
113
119
  ```
114
120
 
115
- Enable it under Settings → MCP, then use Agent mode (composer) — tool calls appear with approval prompts.
116
-
117
- ### VS Code (Copilot agent mode)
121
+ | Client | Where the config goes |
122
+ |---|---|
123
+ | Claude Code | `claude mcp add --scope user adobe -- npx -y @ajsmonty/adobe-mcp` (Windows: `... -- cmd /c npx -y @ajsmonty/adobe-mcp`) |
124
+ | Claude Desktop | Settings → Developer → Edit Config (`claude_desktop_config.json`), then fully quit and reopen |
125
+ | Cursor | `~/.cursor/mcp.json` or `.cursor/mcp.json`; use Agent mode |
126
+ | VS Code (Copilot agent mode) | `.vscode/mcp.json`: `{"servers": {"adobe": {"type": "stdio", "command": "npx", "args": ["-y", "@ajsmonty/adobe-mcp"]}}}` |
127
+ | Windsurf | `~/.codeium/windsurf/mcp_config.json` |
128
+ | Anything else | run `npx -y @ajsmonty/adobe-mcp` over stdio |
118
129
 
119
- `.vscode/mcp.json` in the workspace (or user `mcp.json` via the "MCP: Add Server" command):
130
+ ### From source (contributors)
120
131
 
121
- ```json
122
- {
123
- "servers": {
124
- "adobe": {
125
- "type": "stdio",
126
- "command": "npx",
127
- "args": ["-y", "@ajsmonty/adobe-mcp"]
128
- }
129
- }
130
- }
132
+ ```bash
133
+ git clone https://github.com/AJSMonty/adobe-mcp.git && cd adobe-mcp && npm install && npm test
134
+ # point your client at: node /path/to/adobe-mcp/server.mjs
131
135
  ```
132
136
 
133
- ### Windsurf
137
+ ## Set up each app
134
138
 
135
- `~/.codeium/windsurf/mcp_config.json` — same `mcpServers` shape as Claude Desktop/Cursor above.
139
+ | App | One-time setup |
140
+ |---|---|
141
+ | After Effects | Turn on "Allow Scripts to Write Files and Access Network" (above). AE must be open with a project (the empty default is fine). |
142
+ | Photoshop, Illustrator | Nothing. macOS asks for Automation permission on first use: click Allow. |
143
+ | Premiere Pro | `npx -y @ajsmonty/adobe-mcp install` copies the MCP Bridge panel and enables `PlayerDebugMode`; restart Premiere and open Window → Extensions → MCP Bridge. Keep the panel open. |
144
+ | Character Animator | Nothing: puppets are built in Photoshop, then opened in Character Animator. |
145
+ | Blender | Background mode works out of the box. For live mode, install `bridges/blender/adobe_mcp_bridge.py` as an add-on. |
146
+ | Substance 3D Painter | Start it with `--enable-remote-scripting` (see the 3D section). |
136
147
 
137
- ### Anything else
148
+ ### Check everything with `doctor`
138
149
 
139
- If the client supports MCP over stdio, point it at `npx -y @ajsmonty/adobe-mcp` and you are done.
150
+ ```bash
151
+ npx -y @ajsmonty/adobe-mcp doctor # what's installed, running and configured
152
+ npx -y @ajsmonty/adobe-mcp doctor --live # also runs a one-line script in each open app
153
+ ```
140
154
 
141
- ### Client caveats
155
+ It checks Node, the workspace folder, every Adobe app, AE's scripting preference, the Premiere panel
156
+ and `PlayerDebugMode`, COM availability on Windows, Blender and Substance, and prints the fix for
157
+ anything that fails. `--json` gives machine-readable output.
142
158
 
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`.
159
+ ## Tools
153
160
 
154
- ## Script library ("skills")
161
+ | Tool | What it does |
162
+ |---|---|
163
+ | `ae_run_extendscript` | Run any ExtendScript in After Effects; `return <value>` comes back as JSON. Undo-grouped. |
164
+ | `ae_get_state` | Project tree (comps, footage, folders), or one comp's layers in detail. |
165
+ | `ae_save_frame` | Render one comp frame and return it inline. |
166
+ | `ae_render_comp` | Queue a comp in the Render Queue and render it to disk. |
167
+ | `ps_run_extendscript` | Run any ExtendScript in Photoshop. |
168
+ | `ps_get_state` | Open documents and the active document's full layer tree. |
169
+ | `ps_save_preview` | Flattened PNG preview of the active document, inline. |
170
+ | `ps_export` | Export the active document to PNG, JPG or layered PSD. |
171
+ | `ps_run_action` | Play a recorded action from an action set. |
172
+ | `ai_run_extendscript` | Run any ExtendScript in Illustrator. |
173
+ | `ai_get_state` | Artboards, layers with item counts, text frames. |
174
+ | `ai_save_preview` | PNG preview of an artboard, inline. |
175
+ | `ai_export` | Export to SVG, PNG or PDF, or save a layered `.ai` for After Effects. |
176
+ | `ppro_run_extendscript` | Run ExtendScript in Premiere via the MCP Bridge panel. |
177
+ | `ppro_get_state` | Project, bins, sequences with track and clip inventory. |
178
+ | `ppro_import_media` | Import files into the project or a named bin. |
179
+ | `ppro_import_ae_comp` | Dynamic-Link After Effects comps into the project (no intermediate render). |
180
+ | `ppro_save_frame` | Render one frame of the active sequence, inline. |
181
+ | `ppro_export_sequence` | Render the active sequence with an `.epr` preset (Match Source H.264 by default). |
182
+ | `ch_taxonomy` | The layer naming Character Animator auto-rigs from. |
183
+ | `ch_build_puppet` | Build a rig-ready puppet PSD in Photoshop (head, brows, eyes, 14 visemes, limbs). |
184
+ | `blender_run_python` | Run `bpy` code live in Blender or in a headless Blender. |
185
+ | `blender_get_state` | Scene summary: frames, fps, engine, camera, passes, objects. |
186
+ | `blender_render_frame` | Render a preview frame through the scene camera, inline. |
187
+ | `blender_render_animation` | Render the frame range with the scene's output settings. |
188
+ | `blender_apply_texture` | Build a PBR material from a library asset or local maps and assign it. |
189
+ | `blender_set_hdri` | Light the scene with a library or local HDRI. |
190
+ | `substance_run_python` | Run Python in Substance 3D Painter. |
191
+ | `substance_get_state` | Texture sets, resolutions, stacks, channels, layers. |
192
+ | `substance_bake_mesh_maps` | Bake mesh maps (normal, AO, curvature, ...). |
193
+ | `substance_export_textures` | Export PBR maps with a preset. |
194
+ | `texture_search` | Search Poly Haven and ambientCG (CC0) for textures or HDRIs. |
195
+ | `texture_download` | Download an asset at 1k–8k into a local cache with normalised map names. |
196
+ | `vfx_plan_creature_shot` | Turn a creature-shot brief into physics-based timing and the ordered tool calls. |
197
+ | `workflow_assets` | The shared cross-app asset registry. |
198
+ | `handoff_import_to_ae` | Import a file into AE (layered PSD/AI become comps). |
199
+ | `handoff_place_in_ps` | Place an image or vector file as a layer in Photoshop. |
200
+ | `list_scripts` | List the per-app script library with descriptions. |
201
+ | `run_script` | Run a library script in its app, with parameters. |
202
+ | `knowledge_search` | Search the scripting lessons and gotchas. |
203
+ | `knowledge_add` | Record a new lesson so future sessions benefit. |
204
+
205
+ ## 3D & cinematic VFX pipeline (Blender + Substance 3D Painter)
206
+
207
+ Two Python bridges extend the server beyond ExtendScript so one agent can take a shot from
208
+ blocking to final composite:
155
209
 
156
- Drop `.jsx` / `.jsxbin` files into `scripts/` — they're immediately available via `list_ae_scripts` / `run_ae_script`.
210
+ ```
211
+ ┌──► Blender ──────────► Python (bpy): live add-on socket :9877, or headless `blender -b`
212
+ MCP client ───────┼──► Substance Painter ─► Python: remote scripting HTTP :60041 (/run.json)
213
+ └──► After Effects ────► ExtendScript (osascript on macOS, AfterFX.exe on Windows)
214
+ ```
157
215
 
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.
216
+ Free CC0 texture & HDRI libraries ([Poly Haven](https://polyhaven.com), [ambientCG](https://ambientcg.com)):
217
+ everything both publish is public domain, so it's free for commercial work with no attribution.
218
+
219
+ The downloaded folder also works as `texture_dir` for `Creature_Walk_Cinematic.py`. Set
220
+ `POLYHAVEN_API` / `AMBIENTCG_API` to point at a mirror if you need to.
221
+
222
+ Library scripts (run with `run_script`, parameters via `params`):
223
+
224
+ - `scripts/blender/Creature_Walk_Cinematic.py`: a heavy-biped walk timed from physics. Speed comes
225
+ from the Froude number, stride from Alexander (1976), and feet stay planted with zero slide. The
226
+ neck and tail lag 3 frames per joint, the head is gaze-stabilised and turns toward the lens, and
227
+ the chest breathes. The camera is a handheld rig with operator lag and footfall impact shake. The
228
+ render setup is Cycles with a 180° shutter, a shadow catcher, and beauty/shadow/mist PNG sequences
229
+ plus a multilayer EXR. Tested headless against Blender 5.0.1 (`bpy`); it also handles the 4.x APIs.
230
+ - `scripts/substance/Creature_Skin_LookDev.py`: optional bake, then a matte "aged scales" base,
231
+ a cavity-masked wetness layer, and glossy eye/mouth sets, all in one undo step. Optional export.
232
+ - `scripts/ae/Cinematic_3D_Composite.jsx`: imports the passes, multiplies the shadow, adds a
233
+ precomped edge light wrap, depth haze from mist, an optional depth lens blur, CG softening, and
234
+ grain on the CG only.
235
+
236
+ Setup:
237
+
238
+ - **Blender live mode**: Edit → Preferences → Add-ons → Install from Disk →
239
+ `bridges/blender/adobe_mcp_bridge.py`, then enable it (listens on `127.0.0.1:9877`; override with
240
+ `BLENDER_MCP_PORT`). **Background mode** needs no add-on; it finds `/Applications/Blender*.app`,
241
+ `C:\Program Files\Blender Foundation\Blender *\blender.exe` or `blender` on `PATH` (override with `BLENDER_PATH`).
242
+ - **Substance 3D Painter**: launch with remote scripting enabled (port override: `SUBSTANCE_PAINTER_PORT`).
243
+ macOS: `open -a "Adobe Substance 3D Painter" --args --enable-remote-scripting`.
244
+ Windows: run `"Adobe Substance 3D Painter.exe" --enable-remote-scripting` from its install folder
245
+ (or add the flag to a desktop shortcut).
246
+ - Both bridges are local-only and unauthenticated: anything on the machine that can reach the
247
+ port can run Python in the app. Disable the Blender add-on or quit Painter when you're done.
161
248
 
162
- > ⚠️ `scripts/` may contain third-party/purchased tools. Keep this repo **private** unless you've cleared redistribution rights, or add `scripts/` to `.gitignore`.
249
+ ## Knowledge system (the server learns as it goes)
250
+
251
+ The server ships with a curated knowledge base (`knowledge/lessons.jsonl`) seeded from real
252
+ production sessions — matchName gotchas, API quirks, parameter-type traps, and techniques
253
+ (blueprint line extraction, seamless wind loops, QE transitions, Auto Reframe...).
163
254
 
164
- ## Notes
255
+ Three mechanisms keep it useful and growing:
256
+
257
+ 1. **Auto-surfaced gotchas** — every failed `*_run_extendscript` call is matched against the
258
+ lesson keywords; hits are appended to the error message the client sees (e.g. hit
259
+ `Illegal Parameter type` in Premiere and the fix for `autoReframeSequence`'s string preset
260
+ arrives with the error). Failures are also logged to `$WORKSPACE/error-log.jsonl` as raw
261
+ material for new lessons.
262
+ 2. **`knowledge_search` / `knowledge_add` tools** — agents consult lessons before attempting
263
+ unusual scripting, and record new gotchas when they solve one that wasn't auto-suggested.
264
+ Runtime lessons persist to `$WORKSPACE/learned.jsonl` (survives repo updates, per-install).
265
+ 3. **Server instructions + tool descriptions** — the highest-value rules (explicit document
266
+ targeting, visual verification, render-timeout handling, ES3 limits) are baked into the MCP
267
+ instructions and the per-tool descriptions, so a fresh install starts smart.
165
268
 
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+.
269
+ The `scripts/` per-app libraries are the executable side of the same idea — distilled,
270
+ reusable skills (`list_scripts` / `run_script`): blueprint line extraction (PS), seamless
271
+ wind loops and kinetic typography rigs (AE), one-call vertical Auto Reframe (Premiere).
170
272
 
171
273
  ## ExtendScript gotchas (learned the hard way)
172
274
 
@@ -180,16 +282,101 @@ Drop `.jsx` / `.jsxbin` files into `scripts/` — they're immediately available
180
282
  - 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
283
  - Grid effect: set **Size From** (`ADBE Grid-0002 = 3`) before animating the anchor, or your "scroll" resizes cells instead.
182
284
 
285
+ ## Script library ("skills")
286
+
287
+ Per-app scripts live in `scripts/<app>/` (`ae`, `ps`, `ppro`, `blender`, `substance`). `list_scripts`
288
+ shows them with the descriptions from their header comments and `run_script` runs one in its app.
289
+ Drop your own `.jsx` / `.jsxbin` / `.py` files in to extend it.
290
+
291
+ - **Action scripts** (operate on the current selection, no UI) run headlessly: set the selection
292
+ first with `*_run_extendscript`.
293
+ - **ScriptUI panel scripts** open their palette in the app for a human to click.
294
+
295
+ > ⚠️ `scripts/` may hold third-party or purchased tools. Keep your fork **private** unless you're
296
+ > allowed to redistribute them, or add those files to `.gitignore`.
297
+
298
+ ## Platform support
299
+
300
+ | | macOS | Windows |
301
+ |---|---|---|
302
+ | After Effects, Photoshop, Illustrator | ✅ | ✅ |
303
+ | Premiere Pro (CEP panel) | ✅ | ✅ |
304
+ | Character Animator (via Photoshop) | ✅ | ✅ |
305
+ | Blender, Substance 3D Painter, texture libraries | ✅ | ✅ |
306
+ | Inline previews downscaled | `sips` | Windows PowerShell + System.Drawing |
307
+
308
+ Windows notes:
309
+
310
+ - After Effects has no COM server, so the bridge hands scripts to the running AE with
311
+ `AfterFX.exe -r`. AE must already be open. Set `AE_EXE` if it's not under `Program Files\Adobe`.
312
+ - Photoshop and Illustrator use COM through Windows Script Host (`cscript.exe`). Pin a version with
313
+ `PS_COM_PROGID` / `AI_COM_PROGID` (e.g. `Photoshop.Application.200`) if several are installed.
314
+ - Run the Adobe apps and your MCP client at the same privilege level (both normal, or both as
315
+ administrator), or COM refuses with "Access denied".
316
+
317
+ On Linux the server still starts, and the Blender and texture tools work; the Adobe tools explain
318
+ that they need macOS or Windows.
319
+
320
+ ## Troubleshooting
321
+
322
+ Run `npx -y @ajsmonty/adobe-mcp doctor --live` first. Common cases:
323
+
324
+ | Symptom | Fix |
325
+ |---|---|
326
+ | "no result file appeared" from AE | Turn on "Allow Scripts to Write Files and Access Network" and restart AE. |
327
+ | Timeouts | The app is showing a modal dialog: dismiss it. Long renders: raise `timeout_seconds`, and check the output file before re-running. |
328
+ | 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. |
329
+ | Windows: `COM_CREATE_FAILED 0x800401f3` | The app isn't registered for COM: open it once normally, or set `PS_COM_PROGID` / `AI_COM_PROGID`. |
330
+ | Windows: `0x80070005` Access denied | Run the Adobe app and the MCP client at the same privilege level. |
331
+ | "Premiere mcp-bridge panel is not running" | `npx -y @ajsmonty/adobe-mcp install`, restart Premiere, open Window → Extensions → MCP Bridge. |
332
+ | Client shows no tools (Windows) | Use `"command": "cmd", "args": ["/c", "npx", ...]` in the config. |
333
+ | Client shows no tools (macOS, nvm) | GUI apps can't see nvm's Node; install Node from nodejs.org or Homebrew. |
334
+
335
+ ## Configuration
336
+
337
+ | Variable | Default | Purpose |
338
+ |---|---|---|
339
+ | `ADOBE_MCP_APPS` | all | Comma list of tool sets: `ae, ps, ai, ppro, ch, blender, substance, textures, vfx`. |
340
+ | `ADOBE_MCP_WORKSPACE` | `~/AdobeMCP` | Rendered assets, asset registry, learned lessons. |
341
+ | `AE_APP_NAME`, `PS_APP_NAME`, `AI_APP_NAME`, `PPRO_APP_NAME` | newest installed | macOS app names, e.g. `Adobe After Effects 2025`. |
342
+ | `AE_EXE` | newest `AfterFX.exe` | Windows path to After Effects. |
343
+ | `PS_COM_PROGID`, `AI_COM_PROGID` | `Photoshop.Application`, `Illustrator.Application` | Windows COM ProgIDs. |
344
+ | `BLENDER_PATH`, `BLENDER_MCP_PORT` | auto, `9877` | Blender executable, live add-on port. |
345
+ | `SUBSTANCE_PAINTER_PORT` | `60041` | Substance remote-scripting port. |
346
+ | `ADOBE_MCP_TELEMETRY`, `ADOBE_MCP_TELEMETRY_URL` | off | Opt-in anonymous usage counts (see below). |
347
+
348
+ ## Real limits
349
+
350
+ - These are scripting bridges into desktop apps. The app must be installed, and usually open.
351
+ - A modal dialog in any app blocks its bridge until someone dismisses it.
352
+ - The Premiere panel is unsigned, which is why `PlayerDebugMode` is needed.
353
+ - Character Animator has no scripting API: puppets are authored in Photoshop around it.
354
+ - The Blender add-on and Substance remote scripting listen on localhost without authentication.
355
+ Read [SECURITY.md](SECURITY.md).
356
+
357
+ ## Privacy and telemetry
358
+
359
+ Nothing is sent anywhere by default. If you set `ADOBE_MCP_TELEMETRY=1` *and* an endpoint
360
+ (`ADOBE_MCP_TELEMETRY_URL`), the server posts at most once a day: a random install id, the version,
361
+ OS and Node version, the enabled apps, and per-tool call and error counts. It never sends scripts,
362
+ file paths, project names, arguments, results or error text. The only other network traffic is the
363
+ texture library APIs, when you call those tools.
364
+
183
365
  ## Smoke test
184
366
 
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."*
367
+ With After Effects open, ask: *"Use ae_get_state to show me what's in my project, then create a
368
+ 1920x1080 comp called 'Test' with a headline text layer and show me a frame."*
186
369
 
187
370
  ## Contributing & governance
188
371
 
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.
372
+ PRs welcome: see [CONTRIBUTING.md](CONTRIBUTING.md). `npm test` runs the server end to end over stdio
373
+ on macOS, Windows and Linux in CI. All merges to `main` and `dev` need maintainer approval (branch
374
+ protection + CODEOWNERS). Lessons for the knowledge base are the easiest high-value contribution.
375
+ Read [SECURITY.md](SECURITY.md) before installing: this server runs scripts in your apps by design.
376
+
377
+ Releases: bump the version in `package.json`, `manifest.json`, `server.json` and `.claude-plugin/*`
378
+ (CI checks they agree), then push a `vX.Y.Z` tag. The release workflow publishes the npm packages,
379
+ the `.mcpb` bundle and the MCP registry entry.
193
380
 
194
381
  ## License
195
382
 
package/SECURITY.md CHANGED
@@ -12,9 +12,27 @@ 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.
18
36
  - Library scripts under `scripts/` run with the same privileges; only add scripts you trust.
19
37
 
20
38
  ## Reporting a vulnerability