You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -178,6 +178,7 @@ The MCP server exposes a single tool for all image operations. Internally, it us
178
178
|`maintainCharacterConsistency`| boolean | - | Maintain character appearance consistency across different poses and scenes |
179
179
|`useWorldKnowledge`| boolean | - | Use real-world knowledge for accurate context (recommended for historical figures, landmarks, or factual scenarios) |
180
180
|`useGoogleSearch`| boolean | - | Enable Google Search grounding to access real-time web information for factually accurate image generation. Use when prompt requires current or time-sensitive data that may have changed since the model's knowledge cutoff. Leave disabled for creative, fictional, historical, or timeless content. |
181
+
|`purpose`| string | - | Intended use for the image (e.g., "cookbook cover", "social media post", "presentation slide"). Helps tailor visual style, quality level, and details to match the purpose. |
constSYSTEM_PROMPT=`You are an expert at crafting prompts for image generation models. Your role is to transform user requests into rich, detailed prompts that maximize image generation quality.
16
17
18
+
Structure your enhancement around three core elements:
Your output should be a single, vivid, coherent description that an image generation model can interpret unambiguously. Make it engaging, specific, and clear.`
41
+
Your output should weave these elements into a single, natural flowing description - not a structured list. Make it vivid, engaging, and unambiguous.`
32
42
33
43
/**
34
44
* Additional system prompt for image editing mode (when input image is provided)
@@ -140,10 +158,16 @@ export class StructuredPromptGeneratorImpl implements StructuredPromptGenerator
140
158
? `\nNOTE: An input image has been provided. Focus on preserving its original characteristics while applying the requested modifications. Maintain consistency with the source image's style, colors, and atmosphere.\n`
141
159
: ''
142
160
161
+
// Add purpose context if provided
162
+
constpurposeContext=purpose
163
+
? `\nINTENDED USE: ${purpose}\nTailor the visual style, quality level, and details to match this purpose.\n`
164
+
: ''
165
+
143
166
return`Transform this image generation request into a detailed, vivid prompt that will produce high-quality results:
Copy file name to clipboardExpand all lines: src/server/mcpServer.ts
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -135,6 +135,11 @@ export class MCPServerImpl {
135
135
'Image resolution for high-quality output. Specify "2K" or "4K" when you need higher resolution images with better text rendering and fine details. Leave unspecified for standard quality.',
136
136
enum: ['2K','4K'],
137
137
},
138
+
purpose: {
139
+
type: 'string'asconst,
140
+
description:
141
+
'Intended use for the image (e.g., cookbook cover, social media post, presentation slide). Helps tailor visual style, quality level, and details to match the purpose.',
0 commit comments