From 11a0e8b5f43c7c58722b8ddb64ef72f88480beb2 Mon Sep 17 00:00:00 2001 From: hermes Date: Fri, 10 Jul 2026 03:29:15 +0200 Subject: [PATCH] fix: remove default:[] from image_urls, short descriptions --- server.mjs | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/server.mjs b/server.mjs index d61dd8a..fde2180 100644 --- a/server.mjs +++ b/server.mjs @@ -408,8 +408,7 @@ function registerHandlers(srv) { description: 'Optional reference images. Each item is an http(s):// URL OR ' + 'a data:image/... URL. Up to ~4 references recommended for best ' + - 'compatibility. Empty array = no refs.', - default: [], + 'compatibility.', }, }, required: ['prompt'], @@ -419,17 +418,14 @@ function registerHandlers(srv) { name: 'generate_image_transparent', description: 'Generate an image with a TRANSPARENT background (alpha channel PNG). ' + - 'Only works with models that support background removal natively: ' + - 'recraft/recraft-v3, openai/gpt-image-1, openai/gpt-image-1-mini, ' + - 'openai/gpt-image-2, openai/gpt-5-image, openai/gpt-5-image-mini. ' + - 'Other models will return an error from the upstream. ' + + 'Supported models: recraft/recraft-v3, openai/gpt-image-1, gpt-image-1-mini, ' + + 'gpt-image-2, gpt-5-image, gpt-5-image-mini. ' + 'Aspect: square|landscape|portrait. ' + - 'Optional image_urls — use to apply style from reference images while ' + - 'keeping transparent background.', + 'Optional image_urls for style references.', inputSchema: { type: 'object', properties: { - prompt: { type: 'string', description: 'Text prompt (mention "isolated on transparent background" for best results)' }, + prompt: { type: 'string', description: 'Text prompt' }, model: { type: 'string', enum: TRANSPARENT_MODELS, @@ -443,11 +439,7 @@ function registerHandlers(srv) { image_urls: { type: 'array', items: { type: 'string' }, - description: - 'Optional reference images. Each item is an http(s):// URL OR ' + - 'a data:image/... URL. For Recraft v3: single reference. ' + - 'For GPT-Image: up to ~4 references recommended.', - default: [], + description: 'Optional reference image URLs.', }, }, required: ['prompt'],