mcp-duojie-image

v0.19.0
mcp-duojie-image Checked 3 days ago Published 25 days ago

MCP server for image generation via duojie.games

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

generate_image

Create a new image from a text prompt, optionally guided by reference images (style, identity, composition, material). To modify an existing image use edit_image. Async: returns task_id — poll with check_image_task / wait_all_tasks.

ParameterTypeDescription
output_dir *stringAbsolute output directory
output_filename *stringFilename without extension
prompt *stringWhat to render: subject, style, composition
aspect_ratiostringW:H, e.g. 1:1, 16:9, 9:21. Default 1:1; soft guidance only — aspect follows upstream, resolution upscaled to the requested tier; check saved_dimensions
asset_typestringWhere the image will be used
constraintsstringMust-keep or must-avoid rules
formatstringDefault png
input_imagesarrayStructured references; don't combine with reference_images
modelstringDefault gpt-image-2.6-flare (fastest, drafts); sunburst = best quality, slowest; 2.6 standard & 2.5 family removed
negative_promptstringContent to avoid
overwritebooleanDefault false; same-name file fails
preserve_reference_detailbooleanUpload references unresized (less stable)
reference_imagesarrayLocal image paths guiding the result; never edited in place
reference_max_sideintegerResize cap for reference uploads; default 512 (single) / 256 (multi), edit 1024
silentbooleanSkip desktop notification
sizestringDefault 1K; pixel budget — smaller upstream output is upscaled to it

edit_image

Apply a small explicit change (e.g. remove an object, recolor) to one existing image, preserving everything else; requires exactly one edit_target. For new images or restyled variants use generate_image. Async: returns task_id — poll with check_image_task / wait_all_tasks.

ParameterTypeDescription
edit_target *stringExisting image to modify
output_dir *stringAbsolute output directory
output_filename *stringFilename without extension
prompt *stringWhat to render: subject, style, composition
aspect_ratiostringW:H, e.g. 1:1, 16:9, 9:21. Default 1:1; soft guidance only — aspect follows upstream, resolution upscaled to the requested tier; check saved_dimensions
asset_typestringWhere the image will be used
constraintsstringMust-keep or must-avoid rules
formatstringDefault png
input_imagesarrayStructured references; don't combine with reference_images
modelstringDefault gpt-image-2.6-flare (fastest, drafts); sunburst = best quality, slowest; 2.6 standard & 2.5 family removed
negative_promptstringContent to avoid
overwritebooleanDefault false; same-name file fails
preserve_reference_detailbooleanUpload references unresized (less stable)
reference_imagesarrayLocal image paths guiding the result; never edited in place
reference_max_sideintegerResize cap for reference uploads; default 512 (single) / 256 (multi), edit 1024
silentbooleanSkip desktop notification
sizestringDefault 1K; pixel budget — smaller upstream output is upscaled to it

check_image_task

Poll an image task until terminal: done → saved_path; failed → error.

ParameterTypeDescription
task_id *stringTask id from generate_image/edit_image

wait_all_tasks

Wait for all in-flight image tasks and return all results at once. Immediate when none are running; on timeout returns partial results — call again.

ParameterTypeDescription
timeout_secondsintegerBlock at most this long, default 300, max 600