agentleFS
alisaittekealisaitteke/photoshop-mcp/AGENTS.md

photoshop-mcp

AGENTS.md566 starsChanged 2 months agoMITView on GitHub

Navigation map, not a reference manual. Start with llms.txt or the site index llms.txt, then follow links as needed. Prerequisites: Photoshop running on Windows or macOS, Node.js 18+. This is unofficial and not affiliated with Adobe. Tool surface: 127 MCP tools — 111 atomic photoshop_* + 16 recipe photoshop_recipe_*; 23 MCP prompt templates (ps.*). Deep dive: docs/architecture.md. Follow the server instructions advertised on MCP initialize (src/prompts/instructions.ts). Plugin installs also load skills/photoshop-remove-background and skills/photoshop-recipes when the request matches; those hold the…

  • Installs packages
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository3 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Follow the server instructions advertised on MCP initialize (src/prompts/instructions.ts).

    line 38
  2. Very specific:

    Before PR: npm run lint, npm run build:server, npm run verify:photoshop-prompts, npm run verify:pack.

    line 133
  3. Distinctive:

    Do not add AI-attribution footers to commits or PR descriptions.

    line 134

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md — photoshop-mcp

Navigation map, not a reference manual. Start with llms.txt or the site index llms.txt, then follow links as needed.

Entry strategy

ScenarioPath
CursorInstall the photoshop-mcp plugin (Customize → Plugins / Marketplace) so the Photoshop logo appears in the MCP list. Fallback: mcpServers → npx -y @alisaitteke/photoshop-mcp (stdio, generic icon)
Claude Desktop / VS CodeConfigure mcpServers → npx -y @alisaitteke/photoshop-mcp (stdio)
Claude CodeInstall this repo as a plugin (skills + MCP). Tools only: claude mcp add photoshop -- npx -y @alisaitteke/photoshop-mcp
Standalone chat UI (no IDE)npx -p @alisaitteke/photoshop-mcp ui
Local developmentnpm install && npm run build && node dist/index.js — see docs/development.md

Prerequisites: Photoshop running on Windows or macOS, Node.js 18+. This is unofficial and not affiliated with Adobe.

Tool surface: 127 MCP tools — 111 atomic photoshop_* + 16 recipe photoshop_recipe_*; 23 MCP prompt templates (ps.*).

Architecture (agent view)

AI host (Cursor / Claude / UI)
  │  MCP stdio
  ▼
PhotoshopMCPServer (Node.js)
  │  ExtendScript via AppleScript (macOS) or COM (Windows)
  ▼
Adobe Photoshop

Optional: UXP bridge plugin (uxp-plugin/) on 127.0.0.1:38452 for Neural Filters only.

Deep dive: docs/architecture.md.

Recommended workflow

Follow the server instructions advertised on MCP initialize (src/prompts/instructions.ts). Plugin installs also load skills/photoshop-remove-background and skills/photoshop-recipes when the request matches; those hold the phrase-to-tool glossary. The initialize text stays the session contract.

1. DISCOVER: tools/list + prompts/list (or get_capabilities once per session)
2. STATE:    photoshop_get_state before mutating; photoshop_get_preview after major steps
3. ACT:      prefer photoshop_recipe_* for multi-step outcomes (single undo step)
4. RECOVER:  on error, read structured envelope (code, suggested_next_tool) → get_state → retry one step

Tool selection

NeedUse
Multi-step outcome (remove BG, export for web, portrait enhance)photoshop_recipe_*
Single precise editatomic photoshop_*
Vague user intentMCP prompt prompts/get (e.g. ps.remove_background) then call linked recipe/tool
Generative AI (Fill, Remove, Expand)photoshop_generative_* — requires Adobe account + credits
Neural Filters (skin smooth, colorize, …)photoshop_neural_filter — requires UXP bridge loaded
Version / feature checkphotoshop_get_capabilities
Tracking, leading, paragraph boxphotoshop_set_text_style (or those fields on photoshop_create_text_layer)
Mixed fonts/colors in one text layerphotoshop_set_text_ranges

Full catalog: docs/available-tools.md. Prompt layer: docs/prompt-layer.md.

MCP client configuration

Cursor: prefer the photoshop-mcp plugin (Customize → Plugins) so the Photoshop logo appears in the MCP list. Other hosts and the install-mcp deeplink use:

{
  "mcpServers": {
    "photoshop": {
      "command": "npx",
      "args": ["-y", "@alisaitteke/photoshop-mcp"],
      "env": { "LOG_LEVEL": "1" }
    }
  }
}

Examples: examples/cursor-config.json, examples/claude-desktop-config.json.

Environment variables

VariablePurpose
LOG_LEVEL0=DEBUG, 1=INFO, 2=WARN, 3=ERROR
PHOTOSHOP_PATHOptional custom Photoshop install path
PHOTOSHOP_SCRIPT_TIMEOUTDefault ExtendScript timeout in ms (default 30000, max 600000)
PSMCP_UI_TOKENPin standalone UI API token (see README)
PSMCP_FEEDBACKSet 0 to disable the product-feedback ping question (on by default)
PSMCP_UPDATE_CHECKSet 0 to disable the daily npm version check and the UPDATE_AVAILABLE ping notice (on by default; also off with NO_UPDATE_NOTIFIER or CI)

Troubleshooting (common agent blockers)

SymptomFix
Photoshop not foundStart Photoshop; set PHOTOSHOP_PATH if non-standard install
Tool times outRetry photoshop_ping until it succeeds. Ping runs a short script and returns extendscript_timeout while Photoshop is still busy; only then call get_state. Pass timeout_ms on photoshop_execute_script (max 600s), or set PHOTOSHOP_SCRIPT_TIMEOUT; batch recipes already use 600s.
Scratch disk fullscratch_disk_full means Photoshop froze or refused the command because the scratch disk is full. Free at least 100 GB on the OS drive (the default scratch disk), then restart Photoshop. Ping again only after that restart.
Font not in the listfont_not_found. Photoshop only lists fonts installed for this user. photoshop_install_font copies a .ttf/.otf/.ttc the user already has into the current-user font folder and calls app.refreshFonts() so an open Photoshop sees it. Use the returned postScriptName.
generative_unavailable / version_unsupportedCall get_capabilities; feature may need newer Photoshop or Adobe login
Neural filter failsAdd Plugin → uxp-plugin/manifest.json → Load in UXP Developer Tools — see docs/development.md
No active documentAsk user to open/create a document, then get_state

More: docs/troubleshooting.md.

Distribution

ChannelIdentifier
npm@alisaitteke/photoshop-mcp
MCP Registryio.github.alisaitteke/photoshop-mcp
GitHubhttps://github.com/alisaitteke/photoshop-mcp
Cursor Marketplaceplugin photoshop-mcp (submit via CONTRIBUTING.md)

Key files

FilePurpose
llms.txtLLM-oriented project summary
README.mdHuman docs, install, example prompts
server.jsonMCP Registry metadata
src/core/server.tsMCP server entry
src/tools/Tool implementations
src/prompts/MCP prompt templates
CONTRIBUTING.mdPR and release workflow
.cursor-plugin/plugin.jsonCursor Plugin manifest (MCP list logo)
.claude-plugin/plugin.jsonClaude Code plugin manifest (same skills/)
skills/Plugin skills: remove-background hard rule detail and recipe routing
mcp.jsonCursor Plugin stdio server config

Contributing (agents editing this repo)

  • Canonical language for code, comments, commits, and PRs: English.
  • Before PR: npm run lint, npm run build:server, npm run verify:photoshop-prompts, npm run verify:pack.
  • Do not add AI-attribution footers to commits or PR descriptions.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.