Local-first MCP workflow for creating premium Amazon listing images with open-source image tools.
This project is intentionally approval-first. It provides docs, prompts, scripts, and project-scoped Codex MCP examples. It does not edit your user-level Codex config, install global apps, download model weights, enable telemetry, or use paid APIs without explicit approval.
- Workspace is a fresh Git repo at this project root.
- Python, uv, Node, npm, Git, and Codex CLI are available on this machine.
- GIMP 3.2.4 and Inkscape 1.4.4 have been installed after approval.
- ComfyUI app was not installed; ComfyUI MCP remains optional Phase 2.
- The user-level Codex config at
%USERPROFILE%\.codex\config.tomlis treated as read-only by this project. .codex/config.tomlis local and ignored by Git;.codex/config.example.tomlis the committed example.- Upstream MCP projects are added under
external/mcp/as Git submodules. - ImageSorcery YOLO/CLIP model assets are installed locally and ignored by Git.
codex mcp listsees the projectgimp-mcpandimagesorcery-mcpentries after local project config is present.- GIMP MCP socket, snapshot, and export were smoke-tested on local port
9877.
- GIMP MCP: primary Photoshop-like editor after GIMP 3.2+ and the GIMP plugin are installed.
- ImageSorcery MCP: local crop, resize, rotate, background removal, drawing, OCR, and object detection utility.
- Inkscape: Windows fallback is CLI/manual SVG work.
inkmcpis documented as Linux/WSL Phase 2 because its upstream README says it depends on D-Bus. - ComfyUI MCP: optional Phase 2 for AI lifestyle backgrounds only. Product pixels should come from real product photos or cutouts.
-
Check this machine:
.\scripts\check-environment.ps1 -
Read the Amazon image rules:
docs\amazon-image-rules.md -
Review the project-scoped MCP example:
.codex\config.example.toml -
After installing the approved MCP dependencies, start local servers with:
.\scripts\start-mcp.ps1 -Server gimp-plugin .\scripts\start-mcp.ps1 -Server gimp .\scripts\start-mcp.ps1 -Server imagesorcery
gimp-pluginstarts GIMP's local socket on port9877; keep that terminal open.gimpstarts the MCP stdio bridge that Codex uses to talk to the socket. -
Verify an exported image:
py -3.13 .\scripts\verify-amazon-image.py assets\output\main.jpg --kind main
-
Batch export local images without touching originals:
.\.venv-imagesorcery310\Scripts\python.exe .\scripts\batch-resize-export.py assets\input assets\output --size 2000
- ImageSorcery YOLOE model load/inference:
model_loaded YOLOE, zero detections on the synthetic sample image. - CLIP import:
clip import ok. - GIMP MCP socket check:
running: true, port9877. - GIMP MCP smoke files:
assets/output/gimp-mcp-smoke-snapshot.pngandassets/output/gimp-mcp-smoke-export.png. - Amazon-ready export:
assets/output/gimp-mcp-smoke-exportamazon-v01.jpg, 2000 x 2000 JPEG, basic checks passed.
assets/input/: original product photos. Keep untouched.assets/product-cutouts/: transparent product cutouts made from real product photos.assets/backgrounds/: approved secondary/lifestyle backgrounds.assets/templates/: reusable layout assets.assets/output/: Amazon-ready exports.
The asset folders are ignored by Git except for .gitkeep placeholders.
Codex MCP configuration can be stored in ~/.codex/config.toml or project-scoped .codex/config.toml for trusted projects. This repo only ships .codex/config.example.toml; copy or adapt it locally after reviewing paths.
Use:
codex mcp listInside the Codex TUI, use /mcp to inspect active MCP servers.
This repository's original documentation, prompts, scripts, and configuration
examples are released under the MIT License. Third-party MCP projects under
external/mcp/ are Git submodules and remain governed by their own upstream
licenses. See THIRD_PARTY_NOTICES.md.
- Main image cleanup:
docs/workflow-main-image.md,prompts/main-image-cleanup.md - Secondary benefit infographic:
docs/workflow-secondary-infographic.md,prompts/secondary-benefit-infographic.md - Dimension image:
docs/workflow-dimensions-image.md,prompts/dimension-callout-image.md - Lifestyle composite:
docs/workflow-lifestyle-image.md,prompts/lifestyle-background-composite.md - Batch export:
prompts/batch-export.md
Ask before:
- Editing
%USERPROFILE%\.codex\config.toml - Installing GIMP, Inkscape, ComfyUI, pipx, or system packages
- Downloading ImageSorcery/ComfyUI model weights
- Enabling telemetry
- Using paid APIs
- Publishing, uploading, or externally sharing product imagery