ultimate-gemini-mcp 1.0.10__py3-none-any.whl → 1.0.12__py3-none-any.whl

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.

Potentially problematic release.


This version of ultimate-gemini-mcp might be problematic. Click here for more details.

src/__init__.py CHANGED
@@ -7,7 +7,7 @@ A unified MCP server that combines the best features from:
7
7
  - Advanced features: batch processing, editing, templates, and more
8
8
  """
9
9
 
10
- __version__ = "1.0.10"
10
+ __version__ = "1.0.12"
11
11
  __author__ = "Ultimate Gemini MCP"
12
12
 
13
13
  from .config import get_settings
@@ -131,10 +131,13 @@ def register_batch_generate_tool(mcp_server: Any) -> None:
131
131
  output_format: Image format for all images (default: png)
132
132
  batch_size: Parallel batch size (default: from config)
133
133
  negative_prompt: Negative prompt for Imagen models (optional)
134
- save_to_disk: Save images to output directory (default: True, cloud-safe)
134
+ save_to_disk: Save images to disk and return file paths (default: True).
135
+ When True: Returns file paths only (efficient for MCP clients).
136
+ When False: Returns base64 image data (for cloud/serverless).
135
137
 
136
138
  Returns:
137
- JSON string with batch results including base64 image data and file paths (if saved)
139
+ JSON string with batch results and either file paths (save_to_disk=True)
140
+ or base64 image data (save_to_disk=False)
138
141
  """
139
142
  try:
140
143
  result = await batch_generate_images(
@@ -150,8 +150,6 @@ async def generate_image_tool(
150
150
  "index": result.index,
151
151
  "size": result.get_size(),
152
152
  "timestamp": result.timestamp.isoformat(),
153
- # Always include base64 data for cloud/HTTP deployments
154
- "image_base64": result.image_data,
155
153
  }
156
154
 
157
155
  if save_to_disk:
@@ -164,6 +162,10 @@ async def generate_image_tool(
164
162
  except Exception as e:
165
163
  logger.warning(f"Failed to save image to disk: {e}")
166
164
  image_info["save_error"] = str(e)
165
+ else:
166
+ # Only include base64 data when not saving to disk (cloud/serverless scenarios)
167
+ # This prevents token overflow for MCP clients with file system access
168
+ image_info["image_base64"] = result.image_data
167
169
 
168
170
  # Add enhanced prompt info
169
171
  if "enhanced_prompt" in result.metadata:
@@ -216,7 +218,9 @@ def register_generate_image_tool(mcp_server: Any) -> None:
216
218
  use_world_knowledge: Use real-world knowledge (Gemini only)
217
219
  negative_prompt: What to avoid in the image (Imagen only)
218
220
  seed: Random seed for reproducibility (NOT SUPPORTED - will be ignored)
219
- save_to_disk: Save images to output directory (default: True, cloud-safe)
221
+ save_to_disk: Save images to disk and return file paths (default: True).
222
+ When True: Returns file paths only (efficient for MCP clients).
223
+ When False: Returns base64 image data (for cloud/serverless).
220
224
 
221
225
  Available models:
222
226
  - gemini-2.5-flash-image (default)
@@ -225,7 +229,8 @@ def register_generate_image_tool(mcp_server: Any) -> None:
225
229
  - imagen-4-ultra
226
230
 
227
231
  Returns:
228
- JSON string with generation results, base64 image data, and file paths (if saved)
232
+ JSON string with generation results and either file paths (save_to_disk=True)
233
+ or base64 image data (save_to_disk=False)
229
234
  """
230
235
  try:
231
236
  result = await generate_image_tool(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ultimate-gemini-mcp
3
- Version: 1.0.10
3
+ Version: 1.0.12
4
4
  Summary: Ultimate image generation MCP server unifying Gemini 2.5 Flash Image and Imagen 4/Fast/Ultra with advanced features
5
5
  Project-URL: Homepage, https://github.com/anand-92/ultimate-image-gen-mcp
6
6
  Project-URL: Repository, https://github.com/anand-92/ultimate-image-gen-mcp
@@ -1,4 +1,4 @@
1
- src/__init__.py,sha256=72qNfq7aA0QTYW9OihXmU5AKwoeZzjH_KKQiLlvGjAo,436
1
+ src/__init__.py,sha256=1d4LeNYgfUGqine_AZgx25EoFZs8DcKKiZDi1M9QMBo,436
2
2
  src/server.py,sha256=nZI63qIDL3JWv3dyyFk6lIXStZuHe1MTdZqZSrqK56k,5862
3
3
  src/config/__init__.py,sha256=hL0recV_ycXBEGCym7BqwyaPCnQHy8o429pBirnBeiA,704
4
4
  src/config/constants.py,sha256=ue4dT6wFwCzAgDWvSt8RnbdaoaGHY8c7SViNxI-P73w,1870
@@ -14,11 +14,11 @@ src/services/image_service.py,sha256=ovYsxDMwqsSiG1YbwBcTBrgmGTA7bdhDF6_jPs9XV_k
14
14
  src/services/imagen_client.py,sha256=mvwbmtYQHqpKKM36tp8JPZTjxav5eeeist37lRJsv4k,6122
15
15
  src/services/prompt_enhancer.py,sha256=J_0s1EVmXdPAhjZPM4hL1vk9YiawqfH_ogF89VrFkW8,4776
16
16
  src/tools/__init__.py,sha256=zBfAjFT51LvvD7WXTfDYiyJstRdphr2ChddAmGMZxkI,346
17
- src/tools/batch_generate.py,sha256=WjmzjgWMcjizEV2-lWTGgADinmAFee0qqI1erl8M3-I,5189
18
- src/tools/generate_image.py,sha256=F-xIyXpnbWE6feSC7Tc0tnk5UINbfa72eVI-U33wypo,9072
17
+ src/tools/batch_generate.py,sha256=ESAUkHX5TOKPlHCzgY2jMLyAvSmInN2Jwm5-51EeWwg,5406
18
+ src/tools/generate_image.py,sha256=M8jvqEdcPQpKgnMQqIhlCy7i9yO3hMVdsWR6l1pd8G8,9438
19
19
  src/utils/__init__.py,sha256=T2UShY0j2kiu63YPOsTACrzOfWTTq4PmC0flzcgeCl0,55
20
- ultimate_gemini_mcp-1.0.10.dist-info/METADATA,sha256=8wY7QRh7SsKkYdRgwxUbg4LLFvTzFU_T3gpriKwSMzw,16131
21
- ultimate_gemini_mcp-1.0.10.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
22
- ultimate_gemini_mcp-1.0.10.dist-info/entry_points.txt,sha256=-BeRTT4oR05e-YnF1ZNbNxlaekD4LsWhD-Zy_1dyRnc,56
23
- ultimate_gemini_mcp-1.0.10.dist-info/licenses/LICENSE,sha256=ilyzUnN0QHYtYGJks-NFUwiniNu08IedLmn_muRqa0o,1480
24
- ultimate_gemini_mcp-1.0.10.dist-info/RECORD,,
20
+ ultimate_gemini_mcp-1.0.12.dist-info/METADATA,sha256=_t82-7QNFK7Ke6URrDUFpbQH533Kwl29nTEwiTwAaXM,16131
21
+ ultimate_gemini_mcp-1.0.12.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
22
+ ultimate_gemini_mcp-1.0.12.dist-info/entry_points.txt,sha256=-BeRTT4oR05e-YnF1ZNbNxlaekD4LsWhD-Zy_1dyRnc,56
23
+ ultimate_gemini_mcp-1.0.12.dist-info/licenses/LICENSE,sha256=ilyzUnN0QHYtYGJks-NFUwiniNu08IedLmn_muRqa0o,1480
24
+ ultimate_gemini_mcp-1.0.12.dist-info/RECORD,,