Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| COMFYUI_URL | No | Local ComfyUI server URL | |
| OPENAI_API_KEY | No | OpenAI-compatible API key (optional alternative provider) | |
| OPENAI_BASE_URL | No | Custom base URL for OpenAI-compatible provider | |
| MEIGEN_API_TOKEN | No | MeiGen platform API token (optional, starts with meigen_sk_) |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| enhance_prompt | Transform a simple idea into a professional image generation prompt. Use when the user provides a brief description (e.g., "a cat in a garden") and needs a detailed, high-quality prompt. Combine with gallery inspiration for best results. Free, no API key needed. |
| search_gallery | Search AI image prompts with semantic understanding — finds visually and conceptually similar results, not just keyword matches. Results include image URLs — render them as markdown images ( |
| list_models | List available AI image generation models with pricing and capabilities. |
| get_inspiration | Get the full prompt and all image URLs for a gallery entry. Show the images to the user as visual examples. The prompt can be used directly with generate_image(), and image URLs can be passed as referenceImages for style transfer. |
| manage_preferences | Read or update user preferences: default style, aspect ratio, model, style notes, and favorite prompts. Call with action "get" at conversation start to load preferences. |
| upload_reference_image | Upload a local image for use as a reference in generate_image. Image generation APIs require reference images as public URLs — this tool converts local files to URLs by compressing (max 2MB, max 2048px) and uploading to temporary cloud storage. The URL expires in 24 hours; re-upload if needed later. For ComfyUI users: you can pass local file paths directly to generate_image's referenceImages without uploading. |
| comfyui_workflow | Manage ComfyUI workflow templates: list, view parameters, import from file, modify settings, or delete. |
| generate_image | Generate an image using AI. Supports MeiGen platform, local ComfyUI, or OpenAI-compatible APIs. Tip: get prompts from get_inspiration() or enhance_prompt(), and use gallery image URLs as referenceImages for style guidance. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |