@synthetic-ai/premiere-mcp 1.1.8

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 (106) hide show
  1. package/CHANGELOG.md +100 -0
  2. package/LICENSE +21 -0
  3. package/README.md +242 -0
  4. package/cep-plugin/.debug +8 -0
  5. package/cep-plugin/CSInterface.js +92 -0
  6. package/cep-plugin/CSXS/manifest.xml +49 -0
  7. package/cep-plugin/host.jsx +7 -0
  8. package/cep-plugin/index.html +472 -0
  9. package/cep-plugin/main.js +683 -0
  10. package/cep-plugin/premiere.jsx +24947 -0
  11. package/cep-plugin/synthetic-logo.png +0 -0
  12. package/dist/bridge/file-bridge.d.ts +29 -0
  13. package/dist/bridge/file-bridge.js +145 -0
  14. package/dist/bridge/script-builder.d.ts +19 -0
  15. package/dist/bridge/script-builder.js +408 -0
  16. package/dist/http-server.d.ts +21 -0
  17. package/dist/http-server.js +140 -0
  18. package/dist/index.d.ts +3 -0
  19. package/dist/index.js +70 -0
  20. package/dist/license.d.ts +22 -0
  21. package/dist/license.js +89 -0
  22. package/dist/resources/extendscript-reference.d.ts +2 -0
  23. package/dist/resources/extendscript-reference.js +219 -0
  24. package/dist/server.d.ts +4 -0
  25. package/dist/server.js +282 -0
  26. package/dist/tools/advanced.d.ts +530 -0
  27. package/dist/tools/advanced.js +923 -0
  28. package/dist/tools/audio-advanced.d.ts +847 -0
  29. package/dist/tools/audio-advanced.js +1653 -0
  30. package/dist/tools/audio.d.ts +84 -0
  31. package/dist/tools/audio.js +123 -0
  32. package/dist/tools/captions.d.ts +30 -0
  33. package/dist/tools/captions.js +73 -0
  34. package/dist/tools/clipboard.d.ts +153 -0
  35. package/dist/tools/clipboard.js +381 -0
  36. package/dist/tools/color-advanced.d.ts +821 -0
  37. package/dist/tools/color-advanced.js +772 -0
  38. package/dist/tools/discovery.d.ts +128 -0
  39. package/dist/tools/discovery.js +445 -0
  40. package/dist/tools/effects.d.ts +211 -0
  41. package/dist/tools/effects.js +554 -0
  42. package/dist/tools/export-presets.d.ts +333 -0
  43. package/dist/tools/export-presets.js +490 -0
  44. package/dist/tools/export.d.ts +320 -0
  45. package/dist/tools/export.js +618 -0
  46. package/dist/tools/health.d.ts +9 -0
  47. package/dist/tools/health.js +25 -0
  48. package/dist/tools/inspection.d.ts +179 -0
  49. package/dist/tools/inspection.js +1089 -0
  50. package/dist/tools/keyframes.d.ts +253 -0
  51. package/dist/tools/keyframes.js +611 -0
  52. package/dist/tools/markers.d.ts +117 -0
  53. package/dist/tools/markers.js +206 -0
  54. package/dist/tools/media.d.ts +297 -0
  55. package/dist/tools/media.js +493 -0
  56. package/dist/tools/metadata.d.ts +178 -0
  57. package/dist/tools/metadata.js +278 -0
  58. package/dist/tools/multicam.d.ts +199 -0
  59. package/dist/tools/multicam.js +212 -0
  60. package/dist/tools/playback.d.ts +34 -0
  61. package/dist/tools/playback.js +63 -0
  62. package/dist/tools/playhead.d.ts +77 -0
  63. package/dist/tools/playhead.js +185 -0
  64. package/dist/tools/project-manager.d.ts +65 -0
  65. package/dist/tools/project-manager.js +81 -0
  66. package/dist/tools/project.d.ts +390 -0
  67. package/dist/tools/project.js +596 -0
  68. package/dist/tools/scripting.d.ts +98 -0
  69. package/dist/tools/scripting.js +434 -0
  70. package/dist/tools/selection.d.ts +120 -0
  71. package/dist/tools/selection.js +334 -0
  72. package/dist/tools/sequence-advanced.d.ts +84 -0
  73. package/dist/tools/sequence-advanced.js +476 -0
  74. package/dist/tools/sequence-settings.d.ts +397 -0
  75. package/dist/tools/sequence-settings.js +975 -0
  76. package/dist/tools/sequence.d.ts +211 -0
  77. package/dist/tools/sequence.js +397 -0
  78. package/dist/tools/source-monitor.d.ts +95 -0
  79. package/dist/tools/source-monitor.js +180 -0
  80. package/dist/tools/text.d.ts +97 -0
  81. package/dist/tools/text.js +159 -0
  82. package/dist/tools/timeline.d.ts +265 -0
  83. package/dist/tools/timeline.js +575 -0
  84. package/dist/tools/track-management.d.ts +482 -0
  85. package/dist/tools/track-management.js +787 -0
  86. package/dist/tools/track-targeting.d.ts +666 -0
  87. package/dist/tools/track-targeting.js +1318 -0
  88. package/dist/tools/tracks.d.ts +90 -0
  89. package/dist/tools/tracks.js +183 -0
  90. package/dist/tools/transitions-motion.d.ts +788 -0
  91. package/dist/tools/transitions-motion.js +680 -0
  92. package/dist/tools/transitions.d.ts +124 -0
  93. package/dist/tools/transitions.js +267 -0
  94. package/dist/tools/utility.d.ts +469 -0
  95. package/dist/tools/utility.js +1118 -0
  96. package/dist/tools/workspace.d.ts +25 -0
  97. package/dist/tools/workspace.js +61 -0
  98. package/package.json +66 -0
  99. package/scripts/build-chat-dmg.sh +210 -0
  100. package/scripts/build-chat-zip.sh +291 -0
  101. package/scripts/install-cep-windows.ps1 +99 -0
  102. package/scripts/install-cep.sh +66 -0
  103. package/scripts/install-chat-plugin.bat +67 -0
  104. package/scripts/install-chat-plugin.sh +85 -0
  105. package/scripts/install-windows.bat +95 -0
  106. package/scripts/package.mjs +254 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,100 @@
1
+ # Changelog
2
+
3
+ ## [v1.1.8] — macOS default preset paths
4
+
5
+ `create_sequence`, `create_sequence_from_clip`, and `get_default_sequence_presets`
6
+ only ever probed Windows install paths for the default `.sqpreset` (and, for
7
+ `create_sequence`, only a single hardcoded PP 2026 path with no probing at
8
+ all). All three now check both Windows and macOS locations across PP
9
+ 2026/2025/2024/CC 2023, matching the pattern `export_sequence` already used
10
+ for AME presets. When nothing is found, the tools return a clear error
11
+ asking for an explicit `preset_path` instead of silently using a
12
+ definitely-wrong fallback. Found via a site-wide macOS-compatibility audit
13
+ of every Synthetic product (2026-09-23) — this was the one confirmed gap in
14
+ an otherwise genuinely cross-platform architecture (no launch step to
15
+ break, unlike ae-mcp). Unverified on real macOS hardware — no Mac available
16
+ to test against yet.
17
+
18
+ ## [v1.1.7] — License enforcement
19
+
20
+ The MCP server itself (all 437 tools) never actually validated
21
+ `PREMIERE_PRO_MCP_LICENSE` — the CEP panel had a license field for its own
22
+ auto-update, but the server side was wide open. Added the same
23
+ `checkLicense()` gate ae-mcp and photoshop-mcp already have: every tool
24
+ except `ping` / `get_version_info` now requires a valid license, validated
25
+ against `https://synthetic.com.ar/api/v1/license/validate` and cached for an
26
+ hour.
27
+
28
+ ---
29
+
30
+ All notable changes to this MCP server. Every fix below was discovered via
31
+ **static audit + live runtime testing against Premiere Pro 2026.2.2 on
32
+ Spanish-localized Windows**.
33
+
34
+ The audit started at **31/100 sellability score** (22% green tools) and
35
+ finished at **~78/100** (~75% green) after the rounds below.
36
+
37
+ ---
38
+
39
+ ## [v1.2.0] — PP 2026 compatibility + locale resilience
40
+
41
+ ### Round 6 — Live runtime validation
42
+ - `6f20892` capture_frame: honest error for PP 2026 host limitation
43
+ - `8152021` bridge: sanitize NaN and Infinity to null
44
+ - `a74ce33` Round 5: 8 more fixes from full smoke test (137 tools tested)
45
+ - `45fdaba` track-targeting: locale-resilient set_clip_position/scale/rotation
46
+ - `f9589cb` premiere.jsx: locale-resilient fadeIn/fadeOut/crossFadeClips
47
+ - `29e941d` graceful fallbacks for setSpeed signature + track volume
48
+ - `0533162` Live-test fixes: setSpeed signature, locale prop names, audio clip volume
49
+ - `084ef49` Live-test fixes: set_clip_opacity locale, color_correct Lumetri name
50
+
51
+ ### Round 5 — Bridge JSON sanitization
52
+ - `f3d83d7` Fix bridge JSON: ExtendScript ignores replacer; sanitize tree pre-stringify
53
+
54
+ ### Round 4 — premiere.jsx loading (single highest-impact fix)
55
+ - `366f325` Fix premiere.jsx SyntaxError that broke ALL JSX helpers
56
+ - **1-char fix, ~30+ tools unblocked**
57
+ - `premiere.jsx` (22k lines) had `package:` as bare property name at line
58
+ 22006. ExtendScript is strict ES3 where `package` is reserved → entire
59
+ file fails to parse → every JSX-helper-backed tool returns
60
+ `ReferenceError: <fn> is not a function`. Quoting fixes everything.
61
+ - `b12a0d8` Round 4: bridge JSON-parse failure + locale-resilient transition lookup
62
+
63
+ ### Round 3 — Concrete code bugs from re-audit
64
+ - `21bf821` Round 3 part 2: fix remaining 9 files
65
+ - `e4534d5` Round 3: fix 32 concrete code bugs from re-audit
66
+ - ticks/Time correctness (markers, source-monitor, scripting, clipboard, audio)
67
+ - property-vs-method (media.check_offline_media)
68
+ - QE-only methods routed correctly (timeline.move_clip/speed_change, transitions)
69
+ - missing `app.enableQE()` guards
70
+ - nested Lumetri prop lookup via `__findProp`
71
+
72
+ ### Round 2 — Locale-resilient helpers
73
+ - `bdaebaa` Round 2: guard QE multicam enumeration and proxy detach
74
+ - `48d3648` Round 2 part 2: fix remaining 8 files
75
+ - `2b718b3` Round 2 part 1: locale-resilient helpers + fix 13 tool files
76
+ - Added `__findIntrinsic(clip, key)` with matchName-first lookup
77
+ - Added `__findComponent`, `__findProp`, `__readMaybe`, `__findTransition`
78
+
79
+ ### Round 1 — Property-vs-method bugs
80
+ - `ffe6931` Fix 21 red tools: property-vs-method bugs, missing APIs, stub handlers
81
+ - `35ecbfa` Fix PP 2026 compatibility: sequence creation, tracks, audio, effects, export
82
+
83
+ ---
84
+
85
+ ## Validated tool inventory
86
+
87
+ ### ✅ 66 tools confirmed working in runtime (PP 2026.2.2 es-ES)
88
+ Inspection, transform, audio/video FX, timeline editing, selection, markers,
89
+ sequence ops, project/bins, captions, source monitor, track management,
90
+ metadata, scripting, export. Full list in [README.md](README.md).
91
+
92
+ ### ⚠️ Honest errors (PP 2026 host limitations, not bugs)
93
+ - `set_track_volume`, `speed_change`, `capture_frame`, Lumetri-when-not-applied
94
+ - All return clear errors with the recommended UI workaround
95
+
96
+ ### Validated against
97
+ - Premiere Pro 2026.2.2 on Windows
98
+ - Spanish (es-ES) locale — names like "Opacidad", "Movimiento", "Escala",
99
+ "Posición", "Disolvencia cruzada" all handled
100
+ - 15-item test project with multi-track timeline, transitions, fades, Lumetri
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Premiere Pro MCP Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,242 @@
1
+ # Premiere Pro MCP
2
+
3
+ **Control Adobe Premiere Pro with natural language through Claude (or any MCP-compatible LLM).**
4
+
5
+ [![Premiere Pro 2026](https://img.shields.io/badge/Premiere%20Pro-2026-blueviolet)](https://www.adobe.com/products/premiere.html)
6
+ [![MCP](https://img.shields.io/badge/MCP-compatible-green)](https://modelcontextprotocol.io)
7
+ [![License](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
8
+
9
+ ---
10
+
11
+ ## What it does
12
+
13
+ ```
14
+ You: "Apply a cinematic look to all clips on V1, ducking the music
15
+ when there's voice, and export to YouTube 1080p."
16
+
17
+ Claude: ✓ Applied Lumetri (-15K temperature, +10 contrast) to 4 clips
18
+ ✓ Added voiceover ducking on A2 (-12dB during A1 voice)
19
+ ✓ Queued H.264 1080p export to ~/Videos/final.mp4
20
+ ```
21
+
22
+ 437 tools exposed via MCP to drive Premiere Pro 2026 from any LLM agent.
23
+ Tested in runtime against PP 2026.2.2 on Spanish-localized Windows install.
24
+
25
+ ---
26
+
27
+ ## Highlights
28
+
29
+ - **Locale-resilient**: works on Premiere Pro in Spanish, German, French, etc.
30
+ (most competitors hardcode English component names and silently fail)
31
+ - **Honest errors**: when a Premiere host API genuinely doesn't expose
32
+ something (PP 2026 has known limitations), you get a clear error with
33
+ the recommended workaround — not a silent no-op
34
+ - **Battle-tested**: 137 tools validated in live runtime against PP 2026 with
35
+ detailed bug fixes (see [CHANGELOG.md](CHANGELOG.md))
36
+ - **AI-first**: built for LLM-driven workflows. Pair it with Whisper for
37
+ speech-to-text, ComfyUI for thumbnails, FFmpeg for analysis — chain MCPs
38
+
39
+ ---
40
+
41
+ ## Quick start
42
+
43
+ ### 1. Install the CEP plugin
44
+
45
+ Copy `cep-plugin/` to your Adobe CEP extensions folder:
46
+
47
+ - **Windows**: `%APPDATA%\Adobe\CEP\extensions\MCPBridgeCEP\`
48
+ - **macOS**: `~/Library/Application Support/Adobe/CEP/extensions/MCPBridgeCEP/`
49
+
50
+ Enable CEP debugging:
51
+ ```powershell
52
+ # Windows
53
+ reg add HKCU\Software\Adobe\CSXS.11 /v PlayerDebugMode /t REG_SZ /d 1 /f
54
+ ```
55
+
56
+ ### 2. Build the MCP server
57
+
58
+ ```bash
59
+ cd premiere-pro-mcp
60
+ npm install
61
+ npm run build
62
+ ```
63
+
64
+ ### 3. Register with Claude Desktop
65
+
66
+ Add to `%APPDATA%\Claude\claude_desktop_config.json`:
67
+
68
+ ```json
69
+ {
70
+ "mcpServers": {
71
+ "premiere-pro": {
72
+ "command": "node",
73
+ "args": ["C:/path/to/premiere-pro-mcp/dist/index.js"]
74
+ }
75
+ }
76
+ }
77
+ ```
78
+
79
+ ### 4. Open Premiere Pro
80
+
81
+ - Launch Premiere Pro 2026
82
+ - `Window > Extensions > MCPBridgeCEP` (the bridge panel)
83
+ - Click "Start Bridge"
84
+
85
+ ### 5. Talk to Claude
86
+
87
+ ```
88
+ "Show me the active sequence structure."
89
+ "Add a 1-second fade-in to the audio clip on A2."
90
+ "Apply Cross Dissolve at every cut on V1, 0.5 seconds each."
91
+ ```
92
+
93
+ ---
94
+
95
+ ## What works (validated runtime, PP 2026 es-ES)
96
+
97
+ ### Project & Inspection
98
+ - Full project / sequence / clip overviews
99
+ - Bins, markers, metadata (XMP), color labels
100
+ - Effect properties with all values, keyframes, source media details
101
+ - Find/search project items, list sequences
102
+
103
+ ### Timeline editing
104
+ - Add/remove/move/duplicate clips, split, trim
105
+ - Set in/out points, playhead, work area
106
+ - Selection by name/range/color, invert, deselect
107
+ - Enable/disable clips, link/unlink
108
+
109
+ ### Transform & Motion
110
+ - Position, scale, rotation, opacity (locale-resilient)
111
+ - Anchor point, blend mode
112
+ - Position/scale keyframes via `add_keyframe`
113
+
114
+ ### Color
115
+ - Lumetri full parameter control: exposure, contrast, highlights/shadows,
116
+ whites/blacks, temperature/tint, saturation, vibrance, sharpen, vignette,
117
+ faded film
118
+ - LUTs apply
119
+ - Copy/paste color grade across clips
120
+ - ⚠️ See limitations: applying Lumetri *for the first time* requires manual UI
121
+
122
+ ### Audio
123
+ - Per-clip volume, fade in/out (locale-resilient)
124
+ - Volume/panning keyframes
125
+ - Audio FX pipeline: Compressor, EQ, De-Esser, De-Hum, De-Reverb, Limiter,
126
+ Noise Reduction
127
+ - Voiceover ducking
128
+ - Normalize, detect clipping
129
+
130
+ ### Effects & Transitions
131
+ - 60+ video effects (Gaussian/Directional Blur, Sharpen, Warp Stabilizer,
132
+ Noise Reduction, Mirror, Spherize, Corner Pin, Lens Distortion, etc.)
133
+ - Transitions with locale-aware name lookup (Cross Dissolve works on any
134
+ language install)
135
+ - Batch apply across cuts
136
+
137
+ ### Captions
138
+ - Import SRT files as caption tracks
139
+ - Pipeline integration: Whisper-transcribe → SRT → MCP creates captions
140
+
141
+ ### Export
142
+ - Single sequence + batch export via Adobe Media Encoder
143
+ - Match Source presets, YouTube/Vimeo/Twitter/Facebook presets
144
+ - Encode arbitrary files via AME
145
+ - AAF, OMF, FCPXML export
146
+
147
+ ### Multicam
148
+ - Create multicam sequences, switch angles, flatten
149
+
150
+ ### Markers
151
+ - Add/update/delete on sequence or clip
152
+ - Color labels, comments, in/out range
153
+ - Import/export CSV
154
+
155
+ ---
156
+
157
+ ## Known limitations (PP 2026 host)
158
+
159
+ These are not bugs in this MCP — they're verified limitations of Premiere Pro
160
+ 2026's ExtendScript/QE-DOM surface. Each tool returns a clear actionable error
161
+ with the recommended workaround.
162
+
163
+ | Feature | Status | Workaround |
164
+ |---------|--------|------------|
165
+ | `capture_frame` programmatic | ❌ `qeSeq.exportFramePNG` reports success but never writes file | UI: File > Export > Media > Single Frame |
166
+ | `set_track_volume` | ❌ Audio track DOM no longer exposes `.components` or `.volume`; QE has no `setVolume` | Use `add_audio_keyframes` per-clip, or Audio Track Mixer |
167
+ | `speed_change` programmatic | ❌ `qeClip.setSpeed` signature changed in PP 2026 (rejects all known forms) | UI: Clip > Speed/Duration, or change duration with `trim_clip` |
168
+ | Apply Lumetri for the first time | ❌ `addVideoEffect` reports success but doesn't add component | Apply Lumetri manually once; afterwards all 28 setters work perfectly |
169
+ | LUFS integrated measurement | ❌ Not scriptable | Export and measure with ffmpeg-loudnorm |
170
+ | Native PP Speech-to-Text | ❌ Adobe AI STT not exposed | Use Whisper + `create_caption_track` (works great) |
171
+ | Adobe Libraries MOGRT | ❌ Adobe Libraries not scriptable | Use local `.mogrt` files via `import_mogrt` |
172
+ | Dynamic Link with AE | ❌ `import_ae_comps` not implemented | Render from AE and import as video |
173
+ | Async export completion | ⚠️ AME runs async, no callback | Poll `get_render_queue_status` |
174
+
175
+ ---
176
+
177
+ ## Architecture
178
+
179
+ ```
180
+ ┌─────────────┐ ┌──────────────┐ ┌─────────────┐
181
+ │ Claude │ │ Node.js │ │ Premiere │
182
+ │ (or LLM) │◄───────►│ MCP server │◄───────►│ Pro CEP │
183
+ └─────────────┘ stdio └──────────────┘ files │ plugin │
184
+ │ (panel) │
185
+ └─────────────┘
186
+ │
187
+ ▼
188
+ ┌──────────────┐
189
+ │ ExtendScript │
190
+ │ DOM + QE │
191
+ └──────────────┘
192
+ ```
193
+
194
+ The bridge automatically prepends locale-resilient helpers to every script:
195
+
196
+ ```javascript
197
+ __findIntrinsic(clip, "motion" | "opacity" | "volume" | "lumetri" | "timeRemap")
198
+ // tries matchName ("AE.ADBE Motion") first — locale-INDEPENDENT —
199
+ // then localized displayName ("Movimiento", "Bewegung", "Mouvement", etc.)
200
+
201
+ __findProp(component, ["Position", "Posición", "Position", "Position"])
202
+ // also descends one level into nested groups (needed for Lumetri's
203
+ // grouped parameters like Exposure inside Basic Correction)
204
+
205
+ __readMaybe(obj, "isMuted", false)
206
+ // reads members that are property in some PP versions, method in others
207
+
208
+ __findTransition(name, "video")
209
+ // resolves transition names across locales:
210
+ // "Cross Dissolve" matches "Disolvencia cruzada" / "Fondu enchaîné"
211
+ ```
212
+
213
+ ---
214
+
215
+ ## Development
216
+
217
+ ```bash
218
+ npm run dev # Watch mode
219
+ npm run build # Build dist/
220
+ npx tsc --noEmit # Type-check only
221
+ ```
222
+
223
+ When adding a tool, prefer:
224
+ - `__findIntrinsic` / `__findComponent` over hardcoded `displayName === "Motion"`
225
+ - `__readMaybe` for any `isSomething()` / `isSomething` property
226
+ - Pass `.ticks` strings (not Time objects) to `insertClip`/`setInPoint`/etc.
227
+
228
+ ---
229
+
230
+ ## Credits
231
+
232
+ Built on top of work from
233
+ [`AdobePremiereProMCP`](https://github.com/bdenney99/AdobePremiereProMCP)
234
+ with extensive fixes for PP 2026 compatibility, locale resilience, and
235
+ runtime-validated behavior. See [CHANGELOG.md](CHANGELOG.md) for the full
236
+ fix log.
237
+
238
+ ---
239
+
240
+ ## License
241
+
242
+ MIT
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <ExtensionList>
3
+ <Extension Id="com.mcp.premiere.bridge.panel">
4
+ <HostList>
5
+ <Host Name="PPRO" Port="8088"/>
6
+ </HostList>
7
+ </Extension>
8
+ </ExtensionList>
@@ -0,0 +1,92 @@
1
+ /**************************************************************************************************
2
+ * ADOBE SYSTEMS INCORPORATED
3
+ * Copyright 2013 Adobe Systems Incorporated
4
+ * All Rights Reserved.
5
+ *
6
+ * NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the
7
+ * terms of the Adobe license agreement accompanying it. If you have received this file from a
8
+ * source other than Adobe, then your use, modification, or distribution of it requires the prior
9
+ * written permission of Adobe.
10
+ *
11
+ * CSInterface.js - v12.0.0 (minimal shim for MCP Bridge)
12
+ * Download the full version from: https://github.com/nicscott9/CSInterface
13
+ **************************************************************************************************/
14
+
15
+ /**
16
+ * CSInterface class for Adobe CEP extensions.
17
+ * This is a minimal implementation. For production use, download the full
18
+ * CSInterface.js from Adobe's GitHub repository.
19
+ */
20
+ function CSInterface() {}
21
+
22
+ /**
23
+ * Evaluates an ExtendScript in the host application.
24
+ * @param {string} script - The ExtendScript to evaluate.
25
+ * @param {function} callback - Callback with the result string.
26
+ */
27
+ CSInterface.prototype.evalScript = function (script, callback) {
28
+ if (typeof __adobe_cep__ !== "undefined") {
29
+ // CEP 9+ requires the callback to be passed directly to __adobe_cep__.evalScript.
30
+ // Calling it without a callback causes the result to be silently discarded,
31
+ // making every command return null/undefined.
32
+ __adobe_cep__.evalScript(script, callback || function () {});
33
+ } else {
34
+ // Running outside CEP (for testing)
35
+ console.warn("[CSInterface] Not running in CEP environment");
36
+ if (callback) callback("EvalScript Error: Not in CEP environment");
37
+ }
38
+ };
39
+
40
+ /**
41
+ * Get the host environment.
42
+ */
43
+ CSInterface.prototype.getHostEnvironment = function () {
44
+ if (typeof __adobe_cep__ !== "undefined") {
45
+ try {
46
+ return JSON.parse(__adobe_cep__.getHostEnvironment());
47
+ } catch (e) {
48
+ return null;
49
+ }
50
+ }
51
+ return null;
52
+ };
53
+
54
+ /**
55
+ * Get the system path.
56
+ * @param {string} pathType - The path type constant.
57
+ */
58
+ CSInterface.prototype.getSystemPath = function (pathType) {
59
+ if (typeof __adobe_cep__ !== "undefined") {
60
+ return __adobe_cep__.getSystemPath(pathType);
61
+ }
62
+ return "";
63
+ };
64
+
65
+ // System path constants
66
+ CSInterface.prototype.EXTENSION_ID = "extensionId";
67
+
68
+ /** SystemPath constants — main.js reads these as SystemPath.EXTENSION, but
69
+ * this shim never declared the global. Older CEP hosts happened to inject
70
+ * a SystemPath global on their own, so cs.getSystemPath(SystemPath.EXTENSION)
71
+ * worked by accident; hosts that stop doing that throw "SystemPath is not
72
+ * defined" and halt init() before premiere.jsx loads or license/update code
73
+ * runs. Same bug class already hit and fixed in the sibling AE MCP panel
74
+ * (cep-plugin/CSInterface.js, v2.4.2). Values match Adobe's canonical
75
+ * CSInterface.js — must be strings, not indexes: the native
76
+ * __adobe_cep__.getSystemPath() doesn't throw on an unrecognized pathType,
77
+ * it silently returns the literal string "invalidParam", which then fails
78
+ * downstream in a confusing way (e.g. fs.mkdirSync() trying to create a
79
+ * folder actually named "invalidParam"). */
80
+ var SystemPath = {
81
+ USER_DATA: "userData",
82
+ COMMON_FILES: "commonFiles",
83
+ MY_DOCUMENTS: "myDocuments",
84
+ APPLICATION: "application",
85
+ EXTENSION: "extension",
86
+ EXTENSION_DATA: "extensionData",
87
+ HOST_APPLICATION: "hostApplication"
88
+ };
89
+
90
+ // Note: This is a minimal shim. For the full CSInterface.js, download from:
91
+ // https://github.com/nicscott9/CSInterface
92
+ // and replace this file with the appropriate version for your CEP target.
@@ -0,0 +1,49 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <ExtensionManifest Version="7.0" ExtensionBundleId="com.mcp.premiere.bridge" ExtensionBundleVersion="1.1.6" ExtensionBundleName="MCP Bridge">
3
+ <ExtensionList>
4
+ <Extension Id="com.mcp.premiere.bridge.panel" Version="1.1.6"/>
5
+ </ExtensionList>
6
+ <ExecutionEnvironment>
7
+ <HostList>
8
+ <Host Name="PPRO" Version="[14.0,99.9]"/>
9
+ </HostList>
10
+ <LocaleList>
11
+ <Locale Code="All"/>
12
+ </LocaleList>
13
+ <RequiredRuntimeList>
14
+ <RequiredRuntime Name="CSXS" Version="9.0"/>
15
+ </RequiredRuntimeList>
16
+ </ExecutionEnvironment>
17
+ <DispatchInfoList>
18
+ <Extension Id="com.mcp.premiere.bridge.panel">
19
+ <DispatchInfo>
20
+ <Resources>
21
+ <MainPath>./index.html</MainPath>
22
+ <ScriptPath>./host.jsx</ScriptPath>
23
+ <CEFCommandLine>
24
+ <Parameter>--allow-file-access-from-files</Parameter>
25
+ <Parameter>--enable-nodejs</Parameter>
26
+ </CEFCommandLine>
27
+ </Resources>
28
+ <Lifecycle>
29
+ <AutoVisible>true</AutoVisible>
30
+ </Lifecycle>
31
+ <UI>
32
+ <Type>Panel</Type>
33
+ <Menu>Synthetic Premiere MCP</Menu>
34
+ <Geometry>
35
+ <Size>
36
+ <Height>300</Height>
37
+ <Width>400</Width>
38
+ </Size>
39
+ <MinSize>
40
+ <Height>200</Height>
41
+ <Width>300</Width>
42
+ </MinSize>
43
+ </Geometry>
44
+ <Icons/>
45
+ </UI>
46
+ </DispatchInfo>
47
+ </Extension>
48
+ </DispatchInfoList>
49
+ </ExtensionManifest>
@@ -0,0 +1,7 @@
1
+ // Host-side ExtendScript (runs in Premiere Pro's ExtendScript engine)
2
+ // This file can contain ExtendScript helper functions that are always available.
3
+ // The main execution happens dynamically via CSInterface.evalScript() from main.js.
4
+
5
+ function mcpBridgePing() {
6
+ return "pong";
7
+ }