About Qiaomu Codex Imagegen
Qiaomu Codex Imagegen is an MCP server published by joeseesun in the Blockchain category: 让任何 Agent 调用 Codex 内置生图(MCP + CLI + Skill),内置小红书、视频封面、Mondo 海报技巧 · Codex image generation for any agent. Conduid read 7 tools from its source: build_prompt, compose_prompt, generate_image, get_prompt, list_catalog, search_prompts and 1 more. No package is published for it, so it installs from a source checkout.
The repository has 143 stars and 9 forks, is licensed MIT, and its last commit was on 4 Oct 2026. The latest release is v0.3.0 (4 Oct 2026). The release before it was v0.2.0 (4 Oct 2026). It passes 3 of the 4 static checks Conduid ran on the repository; it does not pass Dependencies pinned. Its topics include image-generation, poster-design and xiaohongshu.
Install
git clone https://github.com/joeseesun/qiaomu-codex-imagegenTools (7)
build_promptCompose the simple-route prompt (description + style + scenario preset) WITHOUT generating. Free and instant.compose_promptExpand a chosen template + preset with variables into the final natural-language prompt, with avoid list, acceptance checks, assumptions and missing required inputs. If the preset has a structural_override, rewrite the prompt by hand as instructed and pass the result to generate_image as raw_prompt. Free and instant.| Parameter | Type | Description |
|---|---|---|
| ratio | string |
generate_imageGenerate (or edit, when reference_images are given) an image with Codex's built-in image generation and save it to disk. Returns absolute file path(s), pixel size and a JSON sidecar with the exact prompt. Takes 30–180 s. Three ways to describe the image: (1) template_id/preset_id + variables from suggest_directions; (2) raw_prompt, a finished prompt used verbatim; (3) prompt + preset + style for the simple scenario route. To view the result, Read the returned path.| Parameter | Type | Description |
|---|---|---|
| background | string | Hex colour used to flatten transparency, default #ffffff. |
| count | number | Variants to make in parallel, 1–4 (each costs quota). Default 1. |
| file_name | string | Base file name without extension. |
| include_image | boolean | Also return the image inline (large). Default false. |
| model | string | Optional Codex model override for the driving turn. |
| out_dir | string | Directory to save into. Default ~/Pictures/qiaomu-codex-imagegen/<date>. |
| raw_prompt | string | A finished prompt, sent verbatim (nothing is added). Use after rewriting a structural_override. |
| reference_images | array | Absolute paths of local images: style reference, identity/product reference, or the image to edit. |
| timeout_seconds | number | Default ${DEFAULT_TIMEOUT_S}. |
| transparent_background | boolean | Keep transparent regions (stickers, cut-outs). Default false: the prompt asks for an opaque full-bleed background and any transparency is flattened onto `background`. |
get_promptReturn the full original prompt of one corpus record (by its number from search_prompts / suggest_directions) with style, channels, source link and preview image path. Use it to study a mechanism; do not paste it unchanged as the user's prompt.| Parameter | Type | Description |
|---|---|---|
| record * | number |
list_catalogList scenario presets, styles, the 24 templates with their presets, and whether the local corpus pack is installed.search_promptsSearch the local corpus of 689 reference prompts (titles, style names, channels, prompt text) and get matching cases with preview image paths. Needs the local data pack (see README); otherwise says so.| Parameter | Type | Description |
|---|---|---|
| channel | string | Channel filter, e.g. 咖啡, 节气, 电影海报, 社媒封面. |
| limit | number | Default 8. |
| query * | string |
suggest_directionsFIRST STEP for any image request. Returns at least four divergent style directions for the topic (different visual mechanisms, from the 24-template library plus a Mondo poster-artist option), each with its mechanism, style locks, what you must supply, and reference cases. Show them to the user and let them choose before generating. Free and instant.| Parameter | Type | Description |
|---|---|---|
| audience | string | |
| count | number | Number of directions, 4–8. Default 5. |
| deliverable | string | What it is for: 视频封面, 海报, 小红书配图, 头像, 公众号头图, PPT … |
| exclude | array | Template ids to leave out (ask for more options). |
| headline | string | Exact title text if the user gave one. |
| ratio | string | |
| subject | string | |
| text_mode | string | |
| topic * | string | The subject of the image, in the user's words. |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.4K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- !Dependencies pinnedNo lockfile anywhere in the repository. Installs can pull different code over time.
2 checks have not been run yet.
Releases
README
The repository's README runs to about 1.4K words, fetched a month ago. The original in the repository is authoritative.
Read full README