aidada-image
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| OPENAI_ORG_ID | No | Optional OpenAI organization request header. | |
| OPENAI_API_KEY | No | Your own OpenAI API key; takes precedence over Magpie. | |
| OPENAI_BASE_URL | No | OpenAI-compatible API base URL; compatible endpoints must use HTTPS except local test addresses. | https://api.openai.com/v1 |
| OPENAI_PROJECT_ID | No | Optional OpenAI project request header. | |
| AIDADA_IMAGE_MODEL | No | Default image model; can be overridden for each request. | gpt-image-2.6-sunburst |
| AIDADA_IMAGE_HTTP_TOKEN | No | Access token for HTTP mode; must be at least 16 characters. | |
| AIDADA_IMAGE_OUTPUT_DIR | No | Directory for generated images and task data; defaults to generated/ under the project directory. An absolute path is recommended. | generated/ |
| AIDADA_IMAGE_TIMEOUT_MS | No | Per-task timeout in milliseconds. | 1200000 |
| AIDADA_IMAGE_INPUT_ROOTS | No | Optional input directory scope, separated by the system PATH separator. | |
| AIDADA_IMAGE_MAGPIE_CONFIG | No | Optional path to providers.json; defaults to the current user's Magpie configuration. | |
| AIDADA_IMAGE_MAX_CONCURRENT | No | Maximum concurrency per server process. | 2 |
| AIDADA_IMAGE_MAGPIE_PROVIDER | No | Enable Magpie credential reading; the dedicated launcher defaults to openai. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
完整控制 OpenAI Images API。model 可自由指定,aidada_image_models 查询账户模型;先看 aidada_image_capabilities。generate/edit 一次提交后用返回的 job_id 查询结果,禁止因 MCP 等待结束而重复提交。需要预览时 include_preview=true。生图涉及 API 计费;默认不重试。
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| aidada_image_capabilitiesA | 查看模型能力、默认值、参数边界、凭据是否已配置和使用流程;不发送生图请求。 |
| aidada_image_generateA | 使用指定 model 生成图片、SVG 或 GIF。complexity/quality/size/background 等参数原样发往 OpenAI;可用参数取决于模型。返回 job_id;running 时调用 aidada_image_result。 |
| aidada_image_editA | 使用指定 model 编辑/扩图/多图合成。支持最多 16 张参考图、mask、markup、本地文件、HTTPS/data URL、file_id。纯本地走 multipart;混合输入中的本地文件临时上传并自动清理。 |
| aidada_image_resultA | 查询已提交任务,不重新生成。可等待最多 20 秒,并读取预览、最终图片、usage、请求 ID、出站参数记录。 |
| aidada_image_cancelA | 终止本地正在进行的上游请求并保存已收到图片;不能保证上游停止计算或退款。 |
| aidada_image_jobsB | 列出最近的本地任务,便于恢复 job_id。不会重新提交。 |
| aidada_image_uploadA | 将本地参考图片持久上传到 OpenAI Files API(purpose=vision),返回可重复编辑使用的 file_id;此工具上传的文件不会自动删除。 |
| aidada_image_modelsA | 查询当前 API Key 可见的 OpenAI 图片模型,包括快照;不进行图片生成。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| capabilities | 公开参数与默认行为 |
TDQS
Scored across 8 tools
Each tool maps to a distinct stage of the image lifecycle: discovery (capabilities, models), creation (generate, edit), and job management (jobs, result, cancel, upload). The only mild overlaps are capabilities vs. models (both describe models) and jobs vs. result (both surface job data), but the descriptions explicitly differentiate them (static capability metadata vs. key-visible model list; local job index vs. live job status).
All tools share the predictable 'aidada_image_' namespace prefix in snake_case with terse, readable suffixes. The suffix style mixes action verbs (generate, edit, cancel, upload) with resource nouns (capabilities, jobs, result, models), but this split follows a sensible action-vs-query convention rather than being chaotic.
Eight tools is well within the ideal 3-15 range and each one earns its place: two discovery tools, two generation tools, and four job/file management tools. There is no obvious filler or redundant entry.
The surface covers the full working loop: inspect capabilities/models, generate or edit, poll results, list jobs, and cancel. The notable gap is file lifecycle management — upload explicitly notes files are not auto-deleted, yet there is no delete/cleanup tool for persistent file_ids or local job history, forcing agents to work around orphaned assets.