# hetpatel-11/adobe_premiere_pro_mcp architecture

> Architecture diagram of the GitHub repository hetpatel-11/adobe_premiere_pro_mcp, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-08-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hetpatel-11/adobe_premiere_pro_mcp
- Repository: https://github.com/hetpatel-11/adobe_premiere_pro_mcp

## Overview

#### Purpose and Runtime Model
This is a local Node.js 20+ MCP server that lets MCP clients operate Adobe Premiere Pro projects. It exposes a large editing/tool surface, but Premiere automation runs indirectly through a local file-backed bridge because the Node process cannot call Premiere’s DOM directly. Production uses CEP; UXP is explicitly experimental. Core entry points are `src/index.ts` (MCP server) and `src/cli.ts` (installation, diagnostics, and client setup).

#### MCP Server and Tool Catalog
The server registers MCP tools, resources, and prompts for discovery and agent workflows. Tools span project inspection, timeline mutations, effects, export, and composed editing workflows; generated ExtendScript is the host-side execution payload. The main tool definition/registration boundary is concentrated in:
- `src/tools/index.ts`
- `src/tools/expanded.ts`
- `src/index.ts`

Tool calls should inspect state first, mutate narrowly, then read back results, especially for Premiere/QE operations whose host acceptance may not establish the final timeline state.

#### File-Based Bridge Protocol
The primary control flow is: MCP client → Node tool handler → generated ExtendScript/request files → Premiere panel polling → script execution → response files → structured MCP response. Bridge logic owns serialization, polling-compatible request/response protocol, script generation/injection, timeouts, and result parsing:
- `src/bridge/index.ts`
- `src/bridge/types.ts`
- `src/utils/security.ts`

The material trust boundary is between untrusted MCP arguments and executable ExtendScript. Advanced raw scripting capabilities require explicit trusted input; script construction and argument serialization are architecture-critical safeguards.

#### Premiere Host Integrations
The supported host adapter is a CEP extension loaded inside Premiere. Its JavaScript invokes Adobe CEP’s `CSInterface.evalScript()`, allowing ExtendScript to access Premiere DOM and QE APIs:
- `cep-plugin/index.html`
- `cep-plugin/bridge-cep.js`
- `cep-plugin/CSXS/manifest.xml`

`cep-plugin/CSInterface.js` is Adobe’s CEP interface dependency. The alternative UXP panel has separate manifest/bridge assets but is not the validated install path:
- `uxp-plugin/manifest.json`
- `uxp-plugin/bridge.js`

#### Agent-Facing Context and Guidance
MCP resources provide reusable Premiere context/instructions, while prompts package guided workflows. Skills distribute install, verification, and safe editing guidance into Codex/Claude ecosystems:
- `src/resources/index.ts`
- `src/prompts/index.ts`
- `skills/premiere-pro-mcp/SKILL.md`

Plugin manifests pair MCP server configuration with the same editing skill for client-specific installation:
- `plugins/premiere-pro-mcp/.mcp.json`
- `claude-plugins/premiere-pro-mcp/.mcp.json`

#### Installation, Packaging, and Operations
The CLI installs/configures the CEP bridge and supported MCP clients, while platform scripts implement setup, health checks, and removal. Releases distribute npm content, CEP ZXP artifacts, and Claude Desktop MCPB bundles:
- `src/cli.ts`
- `scripts/install-macos.sh`
- `scripts/install-windows.ps1`
- `scripts/build-mcpb.mjs`
- `scripts/sign-zxp.mjs`

External dependencies are Adobe Premiere Pro 2020+, local MCP clients, Adobe CEP/ExtendScript/QE APIs, and optionally Adobe Media Encoder for queue/encode workflows. `ffmpeg` is used locally for silence detection.

#### Verification and Reliability Boundaries
`verify_premiere_connection` is the canonical non-mutating readiness check: it validates CEP responsiveness and reports host/project/active-sequence state before edits. The real-host sweep exercises the live catalog against a disposable project:
- `scripts/live-tool-sweep.mjs`
- `src/utils/logger.ts`
- `src/utils/demoAssets.ts`

Operational failures divide cleanly into server/build availability, bridge-directory/panel state, and Premiere host/API limitations. CEP panel restart/reload is required after bridge changes; host APIs can reject, quantize, or expose incomplete state, so tool results must distinguish confirmed from merely accepted actions.

Main entry points: [`src/index.ts`](https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/src/index.ts) (MCP server), [`src/bridge/index.ts`](https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/src/bridge/index.ts) (Bridge protocol), [`cep-plugin/index.html`](https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/cep-plugin/index.html) (CEP extension), [`src/tools/index.ts`](https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/src/tools/index.ts) (Tool catalog)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_mcp["MCP Server"]
  node_server["MCP server<br/>Node entry point<br/>[index.ts]"]
  node_tool_catalog["Tool catalog<br/>tool registration<br/>[index.ts]"]
  node_expanded_tools["Expanded tools<br/>tool definitions<br/>[expanded.ts]"]
end

subgraph group_bridge["File Bridge"]
  node_bridge["Bridge protocol<br/>request-response bridge<br/>[index.ts]"]
  node_bridge_types["Bridge types<br/>protocol contracts<br/>[types.ts]"]
  node_security{{"Script security<br/>trust boundary<br/>[security.ts]"}}
  node_bridge_files["Bridge files<br/>local file protocol"]
end

subgraph group_cep["Premiere CEP Host"]
  node_cep_panel["CEP panel bridge<br/>host adapter<br/>[bridge-cep.js]"]
  node_cep_extension["CEP extension<br/>Premiere panel<br/>[index.html]"]
  node_cep_manifest["CEP manifest<br/>extension manifest<br/>[manifest.xml]"]
  node_premiere(("Premiere Pro<br/>Adobe host"))
  node_uxp["UXP bridge<br/>experimental host adapter<br/>[bridge.js]"]
end

subgraph group_guidance["Agent Guidance"]
  node_resources["MCP resources<br/>context resources<br/>[index.ts]"]
  node_prompts["MCP prompts<br/>guided workflows<br/>[index.ts]"]
  node_skills["Editing skill<br/>agent instructions<br/>[SKILL.md]"]
  node_client_plugin_config["Client plugin config<br/>MCP configuration<br/>[.mcp.json]"]
end

subgraph group_ops["Install &amp; Operations"]
  node_cli["CLI<br/>install and diagnostics<br/>[cli.ts]"]
  node_platform_installers["Platform installers<br/>setup scripts<br/>[install-macos.sh]"]
  node_release_packaging["Release packaging<br/>artifact build<br/>[build-mcpb.mjs]"]
  node_verification["Live verification<br/>host readiness and sweep"]
end

node_mcp_client(("MCP clients<br/>external client"))

node_mcp_client -->|"MCP requests"| node_server
node_server -->|"registers"| node_tool_catalog
node_tool_catalog -->|"includes"| node_expanded_tools
node_server -->|"serves"| node_resources
node_server -->|"serves"| node_prompts
node_tool_catalog -->|"tool execution"| node_bridge
node_bridge -->|"uses"| node_bridge_types
node_bridge -->|"secures inputs"| node_security
node_security -->|"serialized scripts"| node_bridge_files
node_bridge -->|"writes and polls"| node_bridge_files
node_bridge_files -->|"requests and responses"| node_cep_panel
node_cep_extension -->|"loads"| node_cep_panel
node_cep_manifest -->|"declares"| node_cep_extension
node_cep_panel -->|"evalScript"| node_premiere
node_uxp -.->|"experimental access"| node_premiere
node_cli -->|"installs"| node_cep_extension
node_platform_installers -->|"run setup"| node_cli
node_release_packaging -->|"packages"| node_cep_extension
node_skills -.->|"guides agents"| node_mcp_client
node_client_plugin_config -->|"ships with"| node_skills
node_verification -->|"checks readiness"| node_server
node_verification -->|"live host sweep"| node_premiere

click node_server "https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/src/index.ts"
click node_tool_catalog "https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/src/tools/index.ts"
click node_expanded_tools "https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/src/tools/expanded.ts"
click node_resources "https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/src/resources/index.ts"
click node_prompts "https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/src/prompts/index.ts"
click node_bridge "https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/src/bridge/index.ts"
click node_bridge_types "https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/src/bridge/types.ts"
click node_security "https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/src/utils/security.ts"
click node_cep_panel "https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/cep-plugin/bridge-cep.js"
click node_cep_extension "https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/cep-plugin/index.html"
click node_cep_manifest "https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/cep-plugin/CSXS/manifest.xml"
click node_uxp "https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/uxp-plugin/bridge.js"
click node_cli "https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/src/cli.ts"
click node_skills "https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/skills/premiere-pro-mcp/SKILL.md"
click node_client_plugin_config "https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/plugins/premiere-pro-mcp/.mcp.json"
click node_platform_installers "https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/scripts/install-macos.sh"
click node_release_packaging "https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/scripts/build-mcpb.mjs"
click node_verification "https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/scripts/live-tool-sweep.mjs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_server,node_tool_catalog,node_expanded_tools toneBlue
class node_bridge,node_bridge_types,node_security,node_bridge_files toneAmber
class node_cep_panel,node_cep_extension,node_cep_manifest,node_premiere,node_uxp toneMint
class node_resources,node_prompts,node_skills,node_client_plugin_config toneRose
class node_cli,node_platform_installers,node_release_packaging,node_verification toneIndigo
class node_mcp_client toneNeutral
```

## Components

### MCP Server

- [MCP server](https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/src/index.ts): Node entry point · `src/index.ts`
- [Tool catalog](https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/src/tools/index.ts): tool registration · Registers inspection, editing, effects, export, and workflow tools. · `src/tools/index.ts`
- [Expanded tools](https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/src/tools/expanded.ts): tool definitions · `src/tools/expanded.ts`

### File Bridge

- [Bridge protocol](https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/src/bridge/index.ts): request-response bridge · Serializes requests, polls files, injects scripts, times out, and parses results. · `src/bridge/index.ts`
- [Bridge types](https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/src/bridge/types.ts): protocol contracts · `src/bridge/types.ts`
- [Script security](https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/src/utils/security.ts): trust boundary · Safely serializes arguments and gates trusted raw scripting. · `src/utils/security.ts`
- **Bridge files**: local file protocol · Polling-compatible ExtendScript request and response payloads.

### Premiere CEP Host

- [CEP panel bridge](https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/cep-plugin/bridge-cep.js): host adapter · Polls bridge files and invokes ExtendScript through CSInterface. · `cep-plugin/bridge-cep.js`
- [CEP extension](https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/cep-plugin/index.html): Premiere panel · `cep-plugin/index.html`
- [CEP manifest](https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/cep-plugin/CSXS/manifest.xml): extension manifest · `cep-plugin/CSXS/manifest.xml`
- **Premiere Pro**: Adobe host · Premiere DOM and QE APIs execute generated ExtendScript.
- [UXP bridge](https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/uxp-plugin/bridge.js): experimental host adapter · Alternative, unvalidated panel integration. · `uxp-plugin/bridge.js`

### Agent Guidance

- [MCP resources](https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/src/resources/index.ts): context resources · `src/resources/index.ts`
- [MCP prompts](https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/src/prompts/index.ts): guided workflows · `src/prompts/index.ts`
- [Editing skill](https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/skills/premiere-pro-mcp/SKILL.md): agent instructions · `skills/premiere-pro-mcp/SKILL.md`
- [Client plugin config](https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/plugins/premiere-pro-mcp/.mcp.json): MCP configuration · Pairs server configuration with the editing skill. · `plugins/premiere-pro-mcp/.mcp.json`

### Install & Operations

- [CLI](https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/src/cli.ts): install and diagnostics · Installs the bridge and configures supported MCP clients. · `src/cli.ts`
- [Platform installers](https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/scripts/install-macos.sh): setup scripts · `scripts/install-macos.sh`
- [Release packaging](https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/scripts/build-mcpb.mjs): artifact build · Builds MCPB bundles and signs CEP ZXP artifacts. · `scripts/build-mcpb.mjs`
- [Live verification](https://github.com/hetpatel-11/adobe_premiere_pro_mcp/blob/main/scripts/live-tool-sweep.mjs): host readiness and sweep · Checks CEP/project readiness and exercises the live tool catalog. · `scripts/live-tool-sweep.mjs`

### Other components

- **MCP clients**: external client

## Connections

- MCP clients → MCP server: MCP requests
- MCP server → Tool catalog: registers
- Tool catalog → Expanded tools: includes
- MCP server → MCP resources: serves
- MCP server → MCP prompts: serves
- Tool catalog → Bridge protocol: tool execution
- Bridge protocol → Bridge types: uses
- Bridge protocol → Script security: secures inputs
- Script security → Bridge files: serialized scripts
- Bridge protocol → Bridge files: writes and polls
- Bridge files → CEP panel bridge: requests and responses
- CEP extension → CEP panel bridge: loads
- CEP manifest → CEP extension: declares
- CEP panel bridge → Premiere Pro: evalScript
- UXP bridge → Premiere Pro: experimental access
- CLI → CEP extension: installs
- Platform installers → CLI: run setup
- Release packaging → CEP extension: packages
- Editing skill → MCP clients: guides agents
- Client plugin config → Editing skill: ships with
- Live verification → MCP server: checks readiness
- Live verification → Premiere Pro: live host sweep
