# Image Generation via ComfyUI Integration Plan > **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking. **Goal:** Add image generation functionality to LM_Studio using a local MCP server that orchestrates ComfyUI with a custom workflow, allowing users to generate images from text prompts directly in the chat interface. **Architecture:** We will extend the existing LM_Studio web interface with a new "Generate Image" button that sends the user's text prompt to a local Python MCP server (FastAPI). This server loads a pre-exported ComfyUI workflow (`Jaugernaut_wrkf.json`), injects the positive and negative prompts into the appropriate nodes, executes the workflow via ComfyUI's API, retrieves the generated image URL, and returns it to the frontend. The frontend then displays the image in the chat as a user-generated image message. **Tech Stack:** - Frontend: HTML/CSS/JavaScript (existing LM_Studio interface) - Backend: Python, FastAPI, Uvicorn (MCP server) - Image Generation: ComfyUI (local instance) - Workflow: Pre-exported ComfyUI API format JSON (`Jaugernaut_wrkf.json`) ---