
cascade-img
io.github.laffeyp由 GitHub 账号 laffeyp 发布v0.1.1更新于 Oct 24, 2026
LLM-operable Midjourney pipeline: 21 MCP tools to compose, generate, curate with vision, and log.
发布方自己的服务:Ephemeris Time-Series Forecasting
概览
让助手编写 Midjourney 提示词、通过 Discord 提交生成、用视觉检查返回的网格图、裁剪并清理最佳象限,并记录有效做法。
- 可以做什么
- cascade-img 提供约 23 个 MCP 工具,覆盖完整图像流程:结构化提示词组合、提交 imagine 与视频任务、轮询状态、触发 Midjourney 操作(放大、变体、平移),以及接管用户在 Discord 中手动完成的结果。策展类工具可裁剪网格象限、去除背景、裁边、量化调色板、生成联系表和精灵表、用视觉为网格打分,并把优胜结果提升为最终输出。仅追加的提示词日志可跨会话保留,使每次运行都能读取此前尝试。所有调用都返回结构化的 ok/error 信封和稳定错误码。
- 适用场景
- 适合希望助手端到端完成 Midjourney 出图、而不是自己手写提示词并挑选象限的场景,尤其是重复批量、图标或精灵图制作,以及需要代理从早前尝试中学习的工作流。没有 Midjourney 订阅或希望使用官方受支持 API 的用户不适用。
- 运行要求
- 本地 Python 3.12+ 环境(从 PyPI 安装,用 uvx 运行),以及持续运行的 cascade-mj-bridge 守护进程,由它维持 Discord 连接。需要付费 Midjourney 订阅、一个已把 Midjourney 机器人加入频道的 Discord 账号,以及四个采集值:CASCADE_BRIDGE_URL、DISCORD_USER_TOKEN、MJ_CHANNEL_ID 和 MJ_IMAGINE_VERSION。仅支持桌面端;MCP 服务器本身未声明认证。
安装
在 SourceWeft 中
- 打开 控制台中的 cascade-img,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
[CI] [PyPI] [License: Apache 2.0] [Python 3.12+] [MCP Tools: 23]
Generate Midjourney images by conversation instead of by hand. You describe what you want; your AI assistant composes the prompt, fires it, inspects the grid with vision, crops the best quadrant, cleans it up, and logs what worked.
cascade-img is an MCP server with 23 tools that plugs into Claude, Cursor, Codex, or anything that speaks MCP. Midjourney is the first backend; Flux, DALL-E, and Imagen are on the roadmap. There's also a CLI.
Not a programmer? Open an AI assistant that can run commands (Claude Code, Cursor, or Cline), point it at this repo, and say: "Read RUNBOOK.md and set up cascade-img on this machine, then let me make images by describing them to you." It does the technical parts. You just need a Midjourney subscription and to copy a few values from Discord.
Quick Start
You need: a paid Midjourney subscription, a Discord account with the MJ bot in a channel, and Python 3.12 or newer.
Or from source:
This puts three commands for operating cascade-img on your PATH: cascade-mj-bridge (the daemon), cascade-mcp (the MCP server), and cascade-mj (the CLI). Installing also adds a fourth command, cascade-trace-check — a diagnostics validator (not part of the generation loop) that replays a recorded event log and checks it against the vocabulary's declared event ordering and timing rules.
Configure — you need four values from the Discord desktop app (channel ID, server ID, imagine version, and your user token). Takes about five minutes. RUNBOOK.md walks through each one step by step.
Start the daemon in one terminal, then connect from another:
Connect your AI assistant — add to your MCP config (Claude Desktop, Cursor, Cline):
Or point your assistant at this repo and ask it to read AGENTS.md — it'll wire everything up.
Or use the CLI:
The 23 Tools
Every call returns {ok, result} or {ok: false, error: {code, remediation}}. Branch on the stable code, not the message. Full tool reference in AGENTS.md.
How This Differs
Other open-source Midjourney tools focus on the generation step — fire the prompt, hand back the image. cascade-img does the work around that:
- Vision-based self-curation — the agent inspects its own output and picks the best quadrant
- Structured prompt composition — prompts built from parts (subject, style, identity, constraints), not raw strings
- Working memory — append-only log persists across sessions; each run reads what came before
- Curation pipeline — crop grids, remove backgrounds, build sprite sheets, promote winners
- MCP-native — 23 tools that plug into Claude, Cursor, Codex, or anything that speaks MCP
- Pluggable backends — Midjourney now, Flux/DALL-E/Imagen on the roadmap
How It Works
One daemon, two stateless clients, all over local HTTP:
cascade-mj-bridge— the daemon. Only process that talks to Discord. Holds the live connection and tracks in-flight jobs. Must stay running.cascade-mcp— the MCP server. Stdio by default (Claude Desktop / Cursor / Cline);--http <port>for HTTP. Stateless — start and stop freely.cascade-mj— the CLI. Takes an asset ID and a registry, composes the prompt, fires, waits, writes to the log.
Prompts are composed from structured parts, not written as raw strings:
All three entry points emit structured JSON and follow the same {ok, result | error: {code, remediation}} envelope. Every failure carries a stable error code (e.g. DISCORD_401, MJ_UUID_MISSING, UPSCALE_BUTTON_FAILED) with a machine-readable remediation — so a caller branches on the code, not the message. The full catalog of log events and error codes is in vocabulary/0.1.json, and a trace checker (cascade-trace-check) enforces event ordering over recorded runs.
Midjourney terminology
prompt — the text + flags you send Midjourney. grid — the 2x2 set of four candidates returned per prompt. quadrant / U1-U4 — the four cells; "U2" means upscale the second. upscale — render one cell at full resolution. aspect ratio (--ar) — output shape. sref — an image whose style to borrow. oref — an image whose subject identity to keep across poses. moodboard (--p) — a saved personalization profile. stylize (--s) — how strongly MJ applies its own aesthetic.
Documentation
Roadmap
Every backend implements one interface, so a later release can chain them — generate on one provider, refine on a second (e.g. Flux Kontext), upscale on a third.
Repository Layout
Disclaimer
This tool automates Midjourney through a Discord user account. A paid Midjourney subscription is required. Both Discord and Midjourney's Terms of Service prohibit user-account automation. This is the same mechanism used by every open-source MJ tool (midjourney-proxy, midjourney-api, etc.) — there is no public Midjourney API. Use at your own risk.
The backend interface is pluggable — Flux, DALL-E, and Imagen are on the roadmap.
License
Apache-2.0. See LICENSE.
来源:README.md,提交 7c87496
工具
0版本历史
1- v0.1.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
其他 Cascade 集成

Ephemeris Time-Series Forecasting
industries.cascade官方发布者
让助手使用托管的时间序列基础模型对数值序列进行带预测区间的预测,并解读、绘图和追踪结果。
SCRIPTMASTERLABS — Cascade Graph
com.scriptmasterlabs
远程 MCP 服务器,提供确定性的宏观市场分析、SHA256 决策胶囊,以及可选的 Jev 评审团复核,基于哈希链校准日志。

SigRank SignalAF — AI Operator Cascade & Leaderboard
由 GitHub 账号 SunrisesIllNeverSee 发布
本地 SigRank 扫描器,让助手读取你的 AI token 用量、计算级联指标、查看公开排行榜,并可选择发布经签名的快照。

Forge Cascade MCP Memory Server
由 GitHub 账号 SunFlash12 发布
返回 Forge/Froggit 的公开购买路径、定价与付费结账链接,让助手根据买家情况推荐购买方案。