- 文生图仍走 /images/generations,图生图改走 /images/edits(原先错发到 generations 的 images 数组) - X-Image-Task-Base-Url 统一剥离末尾 /images/generations 或 /images/edits,端点由模式决定 - 参考图先下载成字节再以 multipart 上传:60s 独立超时、20MB 流式上限、校验 image/* - 同步 README / mcp README / package.json 说明
15 lines
473 B
JSON
15 lines
473 B
JSON
{
|
|
"name": "mcp_image_task",
|
|
"version": "1.0.0",
|
|
"description": "MCP server for image generation and editing via any OpenAI-compatible images API (/images/generations and /images/edits), single tool image_task with op=create/get",
|
|
"type": "module",
|
|
"main": "src/mcp-server.js",
|
|
"scripts": {
|
|
"start": "node src/mcp-server.js --http --port 3000 --host 0.0.0.0"
|
|
},
|
|
"dependencies": {
|
|
"@modelcontextprotocol/sdk": "^1.0.4",
|
|
"express": "^4.21.0"
|
|
}
|
|
}
|