verso-mcp 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +7 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -193,7 +193,7 @@ async function handleMessage(message) {
|
|
|
193
193
|
|
|
194
194
|
if (toolName === 'generate_image') {
|
|
195
195
|
try {
|
|
196
|
-
const result = await apiRequest('POST', '/api/generate-image', { prompt: toolArgs.prompt, size: toolArgs.size })
|
|
196
|
+
const result = await apiRequest('POST', '/api/generate-image', { prompt: toolArgs.prompt, size: toolArgs.size, transparent: toolArgs.transparent })
|
|
197
197
|
if (result.url) {
|
|
198
198
|
return { jsonrpc: '2.0', id, result: { content: [{ type: 'text', text: result.url }] } }
|
|
199
199
|
}
|
|
@@ -550,6 +550,8 @@ Use this instead of picsum.photos/unsplash for contextual images like:
|
|
|
550
550
|
- Backgrounds, patterns, mascots, characters
|
|
551
551
|
- Any image that should match the app's specific theme/context
|
|
552
552
|
|
|
553
|
+
Set transparent=true for mascots, characters, stickers, icons, or any image that needs to be overlaid on a UI (no background). Keep transparent=false for full backgrounds, photos, and scenes.
|
|
554
|
+
|
|
553
555
|
Do NOT use for: maps, screenshots, icons, UI elements, text-heavy graphics.
|
|
554
556
|
Write detailed prompts: "flat illustration of a cozy coffee shop interior, warm tones, minimal style" not "coffee shop".`,
|
|
555
557
|
inputSchema: {
|
|
@@ -564,6 +566,10 @@ Write detailed prompts: "flat illustration of a cozy coffee shop interior, warm
|
|
|
564
566
|
enum: ['square', 'landscape', 'portrait'],
|
|
565
567
|
description: 'Image aspect ratio. square=512x512, landscape=768x512, portrait=512x768. Default: square.',
|
|
566
568
|
},
|
|
569
|
+
transparent: {
|
|
570
|
+
type: 'boolean',
|
|
571
|
+
description: 'Remove background to get a transparent PNG. Use for mascots, characters, stickers, or any element overlaid on UI. Default: false.',
|
|
572
|
+
},
|
|
567
573
|
},
|
|
568
574
|
required: ['prompt'],
|
|
569
575
|
},
|