Skip to content

Expose Studio image generation and editing over MCP - #246

Merged
canvascoding merged 3 commits into
mainfrom
codex/mcp-studio-images
Nov 18, 2026
Merged

canvascoding merged 3 commits into
mainfrom
codex/mcp-studio-images

Conversation

@canvascoding

Copy link
Copy Markdown
Owner

Studio images over MCP

OAuth clients can discover Studio image models and workspace assets, submit generation or edit jobs, and retrieve their outputs. The internal agent and MCP share the image parameter schema. Both submit to the existing Studio backend and use its presets, reference loading, provider credentials, job storage and media URLs.

Enable studio_image_catalog, studio_generate_image and studio_image_result under Settings → MCP. Clients request studio:read and studio:generate and select a workspace. The server rechecks enabled tools, the grant and workspace rights on each call. Generation is opt-in and accepts an idempotency key for retries. A missing image reference fails the job before provider dispatch.

Verification

  • npm run test:mcp:studio-images:e2e passed all six phases against the production server and a disposable PostgreSQL database. Playwright verified the three Settings switches. Real OAuth registration, consent, PKCE and MCP HTTP transport were used throughout.
  • Created a Studio preset, product, persona, style and uploaded reference. Checked catalog discovery, selected model, prompt fragment, aspect ratio, resolution and input image bytes in the Gemini SDK request. Retrieved matching output bytes through Studio and MCP. Edited the output via the OpenAI SDK and checked the actual multipart image inputs and settings.
  • Verified duplicate submissions, missing and foreign references, ungranted workspaces, read-only OAuth grants and revoked connections. Both provider endpoints were loopback fixtures using dummy credentials. No paid provider request was made.
  • Studio OpenAI regression, MCP settings, document editing, Studio reference security, internal tool registration and Excalidraw adapter checks passed. Release compile and typecheck passed. The generate phase passed on retry after Next.js emitted its installed-version security advisory.

@canvascoding
canvascoding merged commit 403b45c into main Nov 18, 2026
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants