
Imageat
io.github.incendiesv0.4.0更新於 Oct 6, 2026
Generate and edit images and videos with imageat.
概覽
讓助理透過 ImageAT 生成與編輯圖片和影片,回傳 CDN 連結並可查詢帳戶額度。
- 功能
- 把 ImageAT 的生成與編輯功能包裝成 MCP 工具。工具包含用於文生圖與圖生圖的 imageat_generate_image、用於文生影片與圖生影片的 imageat_generate_video,以及查詢目前額度餘額的 imageat_check_credits。每個編輯功能會註冊一個工具,例如 remove-background、object-eraser、relight、virtual-try-on、city-teleport 與 ai-edit-pro,並在啟動時即時取得;若無法取得該功能目錄,則改為註冊一個帶 feature 參數的通用 imageat_edit_image 工具。產生的媒體以 CDN 圖片或 mp4 連結回傳。
- 適用情境
- 適合需要助理依需求產生或修改視覺素材的情境,例如依提示詞生成圖片或短影片、去除背景、擦除物件、重新打光或進行虛擬試穿。也適合結果以託管連結而非本機檔案形式使用的工作流程。
- 執行需求
- 需要 ImageAT 帳戶,以及在 ImageAT 專案頁面建立的 API 金鑰。本機 npm 套件 @imageat/mcp(需 Node.js,透過 npx 執行)以環境變數 IMAGEAT_API_KEY 提供金鑰;遠端 Streamable HTTP 端點則以 Authorization Bearer 標頭提供。選用變數包括 IMAGEAT_BASE_URL、PORT、MCP_OAUTH_SECRET 與 MCP_PUBLIC_URL。需要能連線至 ImageAT 的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Imageat,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"imageat": {
"type": "http",
"url": "https://mcp.imageat.com/mcp"
}
}
}README
@imageat/mcp
Model Context Protocol (MCP) server for ImageAT. Gives any MCP client (Claude Desktop, Cursor, etc.) tools to generate images, generate video, and run ImageAT's image-edit features — billed against your ImageAT account credits.
Tools
If the feature catalog can't be reached at startup, a single generic imageat_edit_image tool
(taking a feature id parameter) is registered instead, so the server still works.
Setup
- Create an API key on your ImageAT Projects page (starts with
iat_live_). - Add the server to your MCP client config:
- Restart the client. The
imageat_*tools will be available.
Environment variables
Remote server (claude.ai, ChatGPT, other web clients)
The npx setup above is stdio — it works in desktop apps that launch a local process
(Claude Desktop, Cursor, Claude Code). Browser clients like claude.ai and chatgpt.com
instead connect to a remote MCP endpoint over Streamable HTTP.
The same tools are served over HTTP by dist/http.js. Each MCP session carries the user's
own API key via the Authorization: Bearer iat_live_... header (multi-user), so this is what
you point a hosted connector at.
Deploy it (e.g. on Dokploy as mcp.imageat.com) with the included Dockerfile, then add it as
a custom connector:
- claude.ai — Settings → Connectors → Add custom connector → URL
https://mcp.imageat.com/mcp. - ChatGPT — Connectors / Developer mode → add server URL
https://mcp.imageat.com/mcp.
Browser clients run the OAuth flow: after adding the connector they open a consent page
served by this server where you paste your iat_live_ key, and the client receives a short-lived
access token bound to it. Non-browser clients (mcp-remote, MCP Inspector, curl) can still send
a raw iat_live_ key directly as Authorization: Bearer iat_live_....
The OAuth layer (src/oauth.ts) is a minimal, stateless authorization server: it exposes the
RFC 8414/9728 discovery docs, RFC 7591 dynamic client registration, and PKCE /authorize +
/token. Access/refresh tokens are the API key encrypted (AES-256-GCM) under MCP_OAUTH_SECRET,
so there is no session store.
Local development
Auth roadmap
Today the server authenticates with a static iat_live_ API key (the remote server reads it
per-session from the Authorization header). Auth is isolated behind an AuthProvider interface
(src/auth.ts), so a future "Sign in with ImageAT" OAuth provider can be dropped in without
changing the tools, the HTTP client, or the backend /v1 routes.
來源:README.md,提交 a0adf12
工具
0版本歷史
1- v0.4.0最新Sep 16, 2026


