find
Quick gallery search. Use when user runs /meigen:find with keywords to browse inspiration.
Interactive provider configuration wizard. Use when the user runs /meigen:setup, says "configure meigen", "set up image generation", "add API key", or otherwise needs help wiring up an image generation provider (MeiGen platform, ComfyUI, or any OpenAI-compatible API).
> /plugin marketplace add jau123/MeiGen-AI-Design-MCP > /plugin install meigen@meigen-marketplace
How it fires
How this command gets triggered: by you, by Claude, or both.
/setupContext preview
What this command does when you run it.
Interactive provider configuration wizard. Use when the user runs /meigen:setup, says "configure meigen", "set up image generation", "add API key", or otherwise needs help wiring up an image generation provider (MeiGen platform, ComfyUI, or any OpenAI-compatible API).
description: >- Interactive provider configuration wizard. Use when the user runs /meigen:setup, says "configure meigen", "set up image generation", "add API key", or otherwise needs help wiring up an image generation provider (MeiGen platform, ComfyUI, or any OpenAI-compatible API).
You are guiding the user through configuring the MeiGen plugin for image generation. Follow this flow step by step.
Before running any shell commands, detect whether you're on Windows. Many of the commands below assume a Unix shell (macOS / Linux / Git Bash). Quick check:
node -e "console.log(process.platform)"
First, check if a config file already exists:
cat ~/.config/meigen/config.json 2>/dev/null
Also check for existing ComfyUI workflows:
ls ~/.config/meigen/workflows/*.json 2>/dev/null
If config exists, show the current configuration (mask API keys: show first 10 chars + "...") and any saved workflows. Ask if they want to reconfigure.
If no config exists, present this introduction:
> **MeiGen Plugin Configuration** > > This is optional. Without configuration, you can still use free features: > - Search gallery for inspiration and prompts > - Enhance simple ideas into professional prompts > - Browse available AI models > > Configuring a provider unlocks **image generation**.
Then proceed to Step 2.
Present these options to the user:
If user chooses **Skip**, say goodbye and exit. Otherwise continue to the appropriate Step 3.
Ask the user:
> Do you already have a MeiGen API token, or do you need to create one?
Provide these instructions:
1. Go to **https://www.meigen.ai** 2. Sign in or create an account 3. Navigate to **Settings** (click your avatar) → **API Keys** 4. Click **Create API Key**, give it a name 5. Copy the token (starts with `meigen_sk_`)
Then ask them to paste the token.
Ask them to paste their `meigen_sk_...` token.
If valid, proceed to **Step 4** with this config:
{
"meigenApiToken": "<the token>"
}Ask the user for their ComfyUI server URL:
> What is your ComfyUI server URL? (default: `http://localhost:8188`)
Test the connection:
curl -s <URL>/system_stats | head -c 200
> Cannot connect to ComfyUI at `<URL>`. Please make sure: > 1. ComfyUI is running (start it with `python main.py` or your launcher) > 2. The URL and port are correct > 3. No firewall is blocking the connection
Explain the workflow export process to the user:
> To use ComfyUI with this plugin, you need to export a workflow in **API format**: > > 1. Open ComfyUI in your browser (usually `http://localhost:8188`) > 2. Load or create your preferred workflow > 3. Click **⚙️ Settings** → enable **"Enable Dev mode options"** > 4. Click the **"Save (API Format)"** button that appears > 5. Save the downloaded `.json` file somewhere convenient
Then ask them to provide the file path:
> Please provide the path to your exported workflow JSON file: > Example: `~/Downloads/workflow_api.json`
Use the `comfyui_workflow` tool with action `import` to import the workflow:
Supports GPT Image 2, Seedance & ComfyUI, with a 1,400+ prompt library, carefully crafted hooks and a multi-task orchestration system
Repo: jau123/MeiGen-AI-Design-MCP
Quick gallery search. Use when user runs /meigen:find with keywords to browse inspiration.
Quick image generation. Use when user runs /meigen:gen with a prompt. Skips intent assessment, generates directly.