# Contributing to Photoshop MCP Thank you for your interest in contributing! This is a community-maintained project and is not affiliated with or endorsed by Adobe Inc. ## Code of Conduct This project follows the [Contributor Covenant Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold it. Report unacceptable behavior to [alisaitteke@gmail.com](mailto:alisaitteke@gmail.com). ## Language policy This project uses **English** as its canonical language for all project artifacts: - **Pull request titles, descriptions, and commit messages** must be written in English. - **Source code, comments, and user-facing UI strings** must be written in English. - **Documentation** (README, guides, inline docs) must be written in English. Issues and review comments may be written in any language, but English is preferred so maintainers and future contributors can search and reference them easily. ## Before you start 1. Search [existing issues](https://github.com/alisaitteke/photoshop-mcp/issues) and [pull requests](https://github.com/alisaitteke/photoshop-mcp/pulls) to avoid duplicate work. 2. For large or architectural changes, open an issue first to discuss the approach. 3. For bug fixes and small improvements, a PR without a prior issue is fine. ## Development setup ### Prerequisites - **Node.js** ≥ 18 - **npm** - **Adobe Photoshop** installed and scriptable (required only for integration tests) ### Getting started ```bash git clone https://github.com/alisaitteke/photoshop-mcp.git cd photoshop-mcp npm ci npm run build ``` npm is the canonical package manager. `package-lock.json` (root and `web/`) is committed — if you change dependencies, commit the updated lockfile too. ### UI development The standalone web UI runs a Hono backend and a Vite + Vue frontend: ```bash npm run dev:ui ``` This starts the server on port 5174 (with hot reload) and the web dev server concurrently. ## Releasing Version bumps ship from **`master`**. Pushing a version tag triggers the [Release workflow](.github/workflows/release.yml), which creates a GitHub Release, publishes to npm, publishes metadata to the [Official MCP Registry](https://registry.modelcontextprotocol.io), and refreshes release notes once npm is live. **One-time setup:** add an npm automation token as the repository secret `NPM_TOKEN` (Settings → Secrets and variables → Actions). Use an npm **Automation** or **Publish** token scoped to `@alisaitteke/photoshop-mcp` (or the whole org). 1. Merge feature work to `master`. 2. Bump the `version` field in the root [`package.json`](package.json) only (the standalone UI package in `web/package.json` uses its own semver and is bumped separately when needed). 3. Regenerate [`CHANGELOG.md`](CHANGELOG.md) and commit the release (tag is created **after** the commit — `backfill-changelog.sh` reads `package.json` for the pending version): ```bash ./scripts/backfill-changelog.sh npm run sync:server-version git add CHANGELOG.md package.json server.json .cursor-plugin/plugin.json git commit -m "X.Y.Z" git tag vX.Y.Z ``` 4. Tag and push: ```bash git tag vX.Y.Z git push origin master git push origin vX.Y.Z ``` Only repository admins can create, move or delete `v*` tags (enforced by the "Release tags (v*)" ruleset). 5. The **publish** job runs in the `release` environment and waits for approval. Approve it from the workflow run page (**Review deployments → Approve and deploy**). 6. Wait for the [Release workflow](.github/workflows/release.yml) to finish, then verify the new release on the repo **Releases** page. The workflow publishes to npm, waits for the version to become installable (npm publish-time malware scan can take ~5–15 minutes), refreshes release notes with **✅ Published on npm.**, then publishes metadata to the MCP Registry. Each release includes install commands, npm registry link, [CHANGELOG.md](CHANGELOG.md) anchor, categorized commits, PR links (when `#123` appears in messages), and **New Contributors** when applicable (see [`scripts/build-release-notes.sh`](scripts/build-release-notes.sh)). **npm scan delay:** `npm publish` can succeed before the version is visible on the registry. The publish job polls with [`scripts/wait-for-npm-version.sh`](scripts/wait-for-npm-version.sh) (up to ~20 minutes) before MCP Registry publish and release-note refresh. If publish failed but the GitHub Release exists: - Re-run the failed **publish** job from Actions (safe when the version is already on npm). - Or run [Refresh Release Notes](.github/workflows/refresh-release-notes.yml) and [Publish MCP Registry](.github/workflows/publish-mcp-registry.yml) with the tag after a manual `npm publish`. - If npm never shows the version, check npm account notifications for a blocked or held package before bumping the version again. Always tag the **release commit on `master`**, not a feature branch. Re-pushing an existing tag is safe — the workflow updates the GitHub Release for that tag. To backfill releases for tags that predate this workflow, run once: ```bash ./scripts/backfill-github-releases.sh ``` To rewrite release notes on existing releases (e.g. after improving the template): ```bash ./scripts/backfill-github-releases.sh --refresh ``` ## Registry listings ### Official MCP Registry Metadata lives in [`server.json`](server.json). The Release workflow publishes to [registry.modelcontextprotocol.io](https://registry.modelcontextprotocol.io) after each npm publish (`mcp-publisher` via GitHub OIDC). `npm run sync:server-version` keeps `server.json` aligned with `package.json` before tagging. ### Glama Listing: [glama.ai/mcp/servers/alisaitteke/photoshop-mcp](https://glama.ai/mcp/servers/alisaitteke/photoshop-mcp) [`glama.json`](glama.json) at the repo root lets org maintainers claim the server. After merging changes to `glama.json`, re-run the claim flow on Glama so metadata syncs. 1. Open the server page → **Claim ownership** (GitHub OAuth). 2. On **Dockerfile** (`…/admin/dockerfile`), not Releases. Fill the generated build spec (Glama clones into `/app` and wraps CMD with `mcp-proxy --`): - Node **20** - Build steps `["pnpm install --ignore-scripts", "pnpm run build"]` (`--ignore-scripts` is required: Glama’s image has no `make`, so compiling `better-sqlite3` fails the Docker build. MCP stdio does not need SQLite.) - CMD arguments `["node", "dist/index.js"]` — do **not** prepend `mcp-proxy` - Leave pinned SHA empty so HEAD is used 3. **Deploy** → wait for the sandbox health check (`initialize` + `tools/list`). Photoshop is not required. Analytics falls back off SQLite when native bindings are missing. 4. **Make Release** with the semver matching the GitHub tag. Auto-Release stays blocked until this first release exists. Glama releases are independent of GitHub Releases — trigger a new Glama release when you want the directory grade/security scan refreshed for a shipped version. The public listing will still say the server cannot be deployed (it needs local Photoshop). ### Smithery (MCPB) Smithery distributes stdio servers as `.mcpb` bundles. Source manifest: [`mcpb/manifest.json`](mcpb/manifest.json). Build script: [`scripts/build-mcpb.ts`](scripts/build-mcpb.ts). ```bash npm run build:mcpb # → release/photoshop-mcp-.mcpb npx @smithery/cli auth login npx @smithery/cli mcp publish "./release/photoshop-mcp-.mcpb" -n alisaitteke/photoshop-mcp ``` `tools_generated` / `prompts_generated` are set because this server exposes a large dynamic catalog. Rebuild and republish the MCPB after each semver release. Native deps (`better-sqlite3`) are compiled for the machine that runs `build:mcpb` — build on macOS for darwin bundles and on Windows for win32 if you need platform-specific artifacts. ### Cursor Marketplace Cursor’s MCP list only shows a custom logo when the server is installed as a **Cursor Plugin**, not via a raw `mcp.json` / install-mcp deeplink. The plugin lives at the repo root: | Path | Purpose | | ---- | ------- | | [`.cursor-plugin/plugin.json`](.cursor-plugin/plugin.json) | Plugin manifest (`logo`, name, version) | | [`mcp.json`](mcp.json) | Stdio server (`npx -y @alisaitteke/photoshop-mcp`) | | [`skills/`](skills/) | Plugin skills loaded with the local plugin copy | | [`assets/logo.svg`](assets/logo.svg) | Icon referenced by `logo` | `npm run sync:server-version` keeps the plugin `version` aligned with `package.json`. #### Test locally (before / without Marketplace review) Cursor does **not** follow a symlink out of `~/.cursor/plugins/local`. Copy the plugin files (do not `ln -s` this repo): ```bash PLUGIN="$HOME/.cursor/plugins/local/photoshop-mcp" mkdir -p "$PLUGIN/.cursor-plugin" "$PLUGIN/assets" cp .cursor-plugin/plugin.json "$PLUGIN/.cursor-plugin/" cp mcp.json "$PLUGIN/" cp assets/logo.svg "$PLUGIN/assets/" rm -rf "$PLUGIN/skills" cp -R skills "$PLUGIN/skills" ``` Then **Developer: Reload Window**. Confirm **Customize → Plugins** shows `photoshop-mcp` with the local `assets/logo.svg` icon. Use a **relative** `logo` path (`assets/logo.svg`). Local plugins load that file from disk. An `https://` logo URL breaks the Plugins list for a local install (Cursor does not fetch it) and still does not paint the **MCP servers** list. The MCP servers list only shows custom icons for **Marketplace-installed** plugins (the same path Cloudflare / PostHog use). A local plugin’s MCP row stays generic until the listing is live on [cursor.com/marketplace](https://cursor.com/marketplace). If both a user `mcp.json` server named `photoshop` and the plugin are enabled, disable the duplicate `mcp.json` entry so only one listing remains. #### Submit for public listing 1. Merge the plugin files to `master` and push. 2. Open [cursor.com/marketplace/publish](https://cursor.com/marketplace/publish). 3. Submit `https://github.com/alisaitteke/photoshop-mcp`. 4. Wait for Cursor’s manual review (each listing and each later update). 5. After approval, users install from **Customize → Plugins**; keep the install-mcp deeplink as a fallback until the Marketplace URL is wired into README / the site. Do not claim the Marketplace listing is live until that review completes. ### PulseMCP Listing: [pulsemcp.com/servers/gh-alisaitteke-photoshop](https://www.pulsemcp.com/servers/gh-alisaitteke-photoshop) (`io.github.alisaitteke/photoshop-mcp`) PulseMCP ingests the Official MCP Registry; there is no durable public submit form (https://www.pulsemcp.com/submit is often paused). After a major surface change (tool count, platforms, website), email **hello@pulsemcp.com** and ask them to refresh the blurb from the registry / GitHub description. Keep the GitHub repo `description` in sync with `package.json` so crawlers pick up the same one-liner. ### Chinese directories | Directory | Listing / submit | Notes | | --------- | ---------------- | ----- | | AIBase | [mcp.aibase.com/zh/server/1639703110358409836](https://mcp.aibase.com/zh/server/1639703110358409836) — update via [mcp.aibase.cn/submit](https://mcp.aibase.cn/submit) | Existing card; Chinese copy has gone stale (still said “50+ tools” in 2026). Re-submit with 127 tools, recipes, UI, Windows/macOS, and `npx -y @alisaitteke/photoshop-mcp`. | | mcp.so | skip | [mcp.so/submit](https://mcp.so/submit) is a **$39** paid featured listing. Do not pay. They may still scrape GitHub/registry on their own. | | MCP Hub CN | [mcp-cn.com](https://mcp-cn.com/) | Optional. Use the same CN one-liner if they expose a submit/收录 flow. | | ModelScope MCP 广场 | [modelscope.cn/mcp](https://modelscope.cn/mcp) | Optional. Catalog-only / local stdio if they allow it — this server cannot be hosted in their cloud (needs a local Photoshop). Skip hosted-deploy prompts. | CN one-liner for forms: > 跨平台(Windows / macOS)Photoshop MCP 服务器:127 个工具(含配方工作流与生成式 AI)、独立 Web UI。通过 Cursor / Claude 用自然语言控制 Photoshop。非 Adobe 官方。https://photoshop-mcp.com/ ## Website Public site: [photoshop-mcp.com](https://photoshop-mcp.com/) (Cloudflare Worker, not GitHub Pages). ## Project layout | Path | Purpose | | --- | --- | | `src/` | MCP server core, tools, recipes, and UI backend | | `web/` | Vue 3 standalone UI (Tailwind v4, shadcn-vue) | | `scripts/` | Integration and verification test scripts | | `site/` | Legacy VitePress tree (not deployed) | | `docs/` | Additional documentation (synced to the site at build time) | | `.cursor-plugin/`, `mcp.json`, `assets/` | Cursor Plugin (Marketplace logo) | See [`docs/architecture.md`](docs/architecture.md) for a detailed breakdown. ## Making changes 1. Branch from `master` (direct pushes to `master` are blocked; every change goes through a PR). 2. Keep diffs focused — avoid unrelated refactors in the same PR. 3. Use a [Conventional Commits](https://www.conventionalcommits.org/) PR title, e.g. `feat(ui): add Requesty provider` or `fix(macos): …`. Allowed types: `feat`, `fix`, `docs`, `refactor`, `chore`, `perf`, `test`, `ci`, `build`, `revert`. PRs are squash-merged, so the PR title becomes the commit on `master` and drives the release-note categories. 4. Follow existing patterns: - Provider adapters in `src/ui/providers/` - MCP tools in `src/tools/` - Recipe tools in `src/tools/recipes/` - Prompt templates in `src/prompts/templates/` ## Code style - **TypeScript** with strict mode enabled (`tsconfig.json`). - **ESLint:** `npm run lint` - **Prettier:** `npm run format:check` (check) or `npm run format` (auto-fix) Match the style of surrounding code. Prefer extending existing abstractions over introducing parallel patterns. ## Testing Tests are tiered by whether Photoshop must be running: ### Required (no Photoshop needed) ```bash npm run build:server npm run lint npm run verify:photoshop-prompts npm run verify:pack ``` Run these before every PR. The [CI workflow](.github/workflows/ci.yml) runs the same checks (plus `npm run test:unit`) on every pull request, and they must pass before merging. ### Recommended (Photoshop must be running) ```bash npm run test:mcp-local # prompt-layer smoke tests npm run spike:issue-2 # issue #2 targeted regression npm run test:mcp-all # full sequential tool sweep ``` Integration tests communicate with a live Photoshop instance over stdio — the same path used by Cursor and Claude Desktop. Note which tests you ran in your PR description. ## Pull request checklist - [ ] PR title, description, and commit messages are in **English** - [ ] PR title follows Conventional Commits (`feat: …`, `fix: …`, `docs: …`) - [ ] Code comments and user-facing strings are in **English** - [ ] `npm run lint` passes - [ ] `npm run build:server` passes - [ ] `npm run verify:photoshop-prompts` passes - [ ] `npm run verify:pack` passes - [ ] Integration tests run (if applicable — requires Photoshop) - [ ] Screenshots attached for UI changes A [pull request template](.github/pull_request_template.md) is provided automatically when you open a PR on GitHub. ## Reporting bugs Open a [GitHub Issue](https://github.com/alisaitteke/photoshop-mcp/issues/new/choose) using the **Bug report** form. It asks for: - Operating system (Windows / macOS) and version - Photoshop version - Node.js version - Steps to reproduce - Expected vs. actual behavior - Relevant log output (`LOG_LEVEL=0` for debug) Feature ideas and documentation problems have their own forms on the same page. ## Reporting security issues Do **not** open a public issue for security vulnerabilities. Follow [SECURITY.md](SECURITY.md) and use [private vulnerability reporting](https://github.com/alisaitteke/photoshop-mcp/security/advisories/new) instead. ## License By contributing, you agree that your contributions will be licensed under the [MIT License](LICENSE).