Open Source MCP Tool: Reuses ChatGPT Session to Generate UI Assets for Coding Agents
Prior_Tax_7020 · reddit · 2026-08-12
A developer on Reddit shared an open-source MCP (Model Context Protocol) tool called image-gen, designed to solve the lack of visual assets when AI agents generate UIs.
How It Works
- No Extra API Key Needed: Uses Playwright to attach to an authenticated ChatGPT browser session (works with free or Plus accounts).
- Automated Flow: When an agent needs an image, the tool automatically types the prompt into ChatGPT, waits for generation, and downloads the PNG directly into the project's assets folder.
- Queue Management: Includes a job queue to prevent parallel calls from colliding.
Use Cases
Compatible with MCP-supporting platforms like Cursor and Claude Code, it allows agents to seamlessly insert real product shots or hero banners into projects without requiring a separate image generation API subscription.
More from coding & agent
- Use Case: Agent Automatically Processes 8,000 Connection Requests with Personalized Followups — gabriel1 · 2026-08-12
- Dev Insight: Agent Abstraction Beats Threads, Iterative Workflows Key to Complex Tasks — gabriel1 · 2026-08-12
- Dev Praises Claude Code Desktop as a Sleeper Hit with Built-in Browser & Simulator — martyamark · 2026-08-12
- Benchmarking 23 Models for Agents: GPT 5.6 Wins Big, Slashing Inference Costs — NextgenAITrading · 2026-08-12
- Automating AI News Tracking with Grok Bots: A Practical Agent Workflow — DeryaTR_ · 2026-08-12
- Indie Dev Warns: CTO's Bias Against AI Coding Cost Them 6 Months — daluoseo · 2026-08-12