
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 的公開購買路徑、定價與付費結帳連結,讓助理依買方情況推薦購買方案。