setup

setup is a command for Claude Code from jau123/MeiGen-AI-Design-MCP. It costs 60 tokens per session (3,263 once invoked), scanned D, original, MIT.

An interactive setup guide for connecting the MeiGen image-generation plugin to an image provider such as MeiGen, ComfyUI, or an OpenAI-compatible API.

In plain words
What is it for?
Use it to configure an image-generation provider, add an API key, and create the plugin's configuration file.
Why use it?
It helps resolve the configuration steps and platform-specific commands needed before image generation can work.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code.

Part of the meigen plugin — 3 skills, 4 commands shipped together

Good fit Use it to configure an image-generation provider, add an API key, and create the plugin's configuration file.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/jau123/meigen-ai-design-mcp/setup
About the project

MeiGen AI Design MCP is an MCP server that lets AI coding tools generate images and videos through cloud models, OpenAI-compatible APIs, or local ComfyUI, an interface for running image-generation workflows. It is for creating designs such as logos, product images, animations, and batches of visual variations from coding-agent environments. Its catalogue entries provide skills, commands, agents, a plugin, and a hook for using the server's design workflow.

jau123/MeiGen-AI-Design-MCP · 1,745 stars · on GitHub · meigen.ai

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/jau123/MeiGen-AI-Design-MCP

Made for: Claude Code.

Or install meigen, the plugin that ships this one along with the rest of its 3 skills, 4 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/jau123/meigen-ai-design-mcp/setup.svg)](https://agentmods.dev/commands/jau123/meigen-ai-design-mcp/setup)
Your own site
<a href="https://agentmods.dev/commands/jau123/meigen-ai-design-mcp/setup"><img src="https://agentmods.dev/badge/commands/jau123/meigen-ai-design-mcp/setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 60 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,263 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 3 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00060 $0.03263
Opus 5 $0.00030 $0.01631
Sonnet 5 $0.00012 $0.00653
Haiku 4.5 $0.00006 $0.00326

Measured 8d ago against content hash 230f367549f9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade D, and why

setup scanned grade D with 3 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Harvests environment variableshighData exfiltration

Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.

- We'll automatically extract the API key, base URL, and model name

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- **Skip `chmod 600`** — NTFS has no chmod, and Windows file permissions are inherited from the parent directory.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **For curl health checks** (Step 3B-1, 3C): Windows 10+ has curl but lacks `head -c`; truncate with `Select-Object -First 5` (PowerShell) or omit the truncation.
plugin/commands/setup.md · 363 lines

How it starts

The opening of the file, as written. The whole thing — 363 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MeiGen Plugin Setup

You are guiding the user through configuring the MeiGen plugin for image generation. Follow this flow step by step.

Step 0: Detect Platform

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)"
  • darwin / linux → Unix shell, use the commands as written
  • win32 → Windows. Adjustments:
    • For 2>/dev/null in Step 1 (e.g. cat ... 2>/dev/null, ls ... 2>/dev/null): replace with 2>NUL in cmd or 2>$null in PowerShell. Or simpler: use a Node check instead, e.g. node -e "try{console.log(require('fs').readFileSync(require('os').homedir()+'/.config/meigen/config.json','utf8'))}catch{}"
    • For mkdir -p ~/.config/meigen: in PowerShell use New-Item -ItemType Directory -Force ~/.config/meigen. Or skip mkdir entirely — when you later call the Write tool with file_path: ~/.config/meigen/config.json, Claude Code's harness creates the parent directory automatically (Write creates the file, the parent dir is a side-effect).
    • Skip chmod 600 — NTFS has no chmod, and Windows file permissions are inherited from the parent directory.
    • For curl health checks (Step 3B-1, 3C): Windows 10+ has curl but lacks head -c; truncate with Select-Object -First 5 (PowerShell) or omit the truncation.
    • The config file lives at %USERPROFILE%\.config\meigen\config.json — Node's os.homedir() resolves ~ correctly when reading at runtime, so the config path in code works fine.

Step 1: Welcome

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:

Read the full file on GitHub · 363 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 363 lines · 60 tokens per session scan D 230f367549f9

Subscribe to this mod's changes

setup is a command published in the GitHub repository jau123/MeiGen-AI-Design-MCP (1,745 stars, last pushed 1mo ago), licensed MIT. It adds 60 tokens to every session and 3,263 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it D with 3 findings (harvests environment variables, asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.