Sandboxed Photoshop MCP
README.md
# Sandboxed Photoshop MCP & Design QA Gate (`sandboxed-photoshop-mcp`)
[](https://glama.ai/mcp/servers/bostudioserv-alt/sandboxed-photoshop-mcp) [](LICENSE)
Run AI agents (**Claude Code**, **Claude Desktop**, MCP clients) against **Adobe Photoshop** on Windows **without hijacking, freezing, or touching the designer's active host Photoshop window**.
## What This Solves
1. **Isolated Photoshop MCP Wrapper (`agent-photoshop-mcp.mjs`)**:
- Upgrade-safe ESM wrapper around `@alisaitteke/photoshop-mcp` that monkey-patches `WindowsExecutor` at runtime (surviving upstream npm updates).
- Launches and targets an isolated Photoshop instance inside a **Sandboxie-Plus** box (`AGENT_ADOBE_BOX=AgentAdobe`) using live Sandboxie PID intersection (`Start.exe /listpids` ∩ `tasklist`).
- Exchanges ExtendScript payloads and results via atomic temp-file writes/renames (`$.evalFile` → `.tmp` → `.txt`), avoiding host COM collisions completely.
2. **Offline Automated Design QA Gate (`scripts/design_qa_gate.py`)**:
- Verifies exact pixel dimensions (`4:5`, `1:1`, `9:16`, `16:9`, 3-tile grid), color modes, sharpness (`FIND_EDGES` stddev), and grayscale dynamic range / top-mid-bottom luminance separation.
- Enforces PSD naming hygiene (catches accidental `_copy`, `_V2`, `_FINAL` duplicates).
- Generates a **3-row Visual QA Proof Sheet**:
- **Row 1**: Full color + Instagram/Story safe-zone overlays + horizontal alignment lasers
- **Row 2**: Pure grayscale luminance & hierarchy test
- **Row 3**: True 220px mobile feed scroll-stop thumbnail simulation
## Quick Start
### Prerequisites
- Windows with Adobe Photoshop & [Sandboxie-Plus](https://sandboxie-plus.com/) (`AgentAdobe` box configured with OpenFilePath access to your bridge/work directories)
- Global install of `@alisaitteke/photoshop-mcp` (`npm i -g @alisaitteke/photoshop-mcp`)
- Node.js 18+ (and Python 3.10+ with `pillow` for `design_qa_gate.py`)
### Connect to Claude Code
```bash
claude mcp add photoshop-sandbox -- node /path/to/sandboxed-photoshop-mcp/agent-photoshop-mcp.mjs
```
### Run Design QA Gate
```bash
pip install pillow
python scripts/design_qa_gate.py ./deliverables --expect 4:5 --sheet ./qa_proof.jpg
```
## Environment Variables
| Variable | Default | Purpose |
| :--- | :--- | :--- |
| `AGENT_ADOBE_MODE` | `sandbox` | `sandbox` (isolated Sandboxie-Plus) or `host` (direct). |
| `AGENT_ADOBE_BOX` | `AgentAdobe` | Sandboxie-Plus box name. |
| `SANDBOXIE_START_EXE` | `C:\Program Files\Sandboxie-Plus\Start.exe` | Path to Sandboxie-Plus `Start.exe`. |
| `PHOTOSHOP_PATH` | `C:\Program Files\Adobe\Adobe Photoshop 2026\Photoshop.exe` | Path to `Photoshop.exe`. |
| `PHOTOSHOP_MCP_DIST` | `%APPDATA%\npm\node_modules\@alisaitteke\photoshop-mcp\dist` | Path to upstream `@alisaitteke/photoshop-mcp` dist folder. |
| `AGENT_ADOBE_BRIDGE_DIR` | `%TEMP%\agent-adobe-bridge` | Shared temp directory for atomic ExtendScript exchange. |
## License
MIT
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues