ultimate-gemini-mcp 1.0.17__py3-none-any.whl → 1.0.18__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.17"
10
+ __version__ = "1.0.18"
11
11
  __author__ = "Ultimate Gemini MCP"
12
12
 
13
13
  from .config import get_settings
src/server.py CHANGED
@@ -58,6 +58,29 @@ def create_app() -> FastMCP:
58
58
  register_get_image_tool(mcp)
59
59
 
60
60
  # Add resources
61
+ @mcp.resource("image://latest", mime_type="image/png")
62
+ def get_latest_image() -> bytes:
63
+ """
64
+ Get the most recently generated image.
65
+
66
+ Returns:
67
+ Binary PNG image data
68
+ """
69
+ if not settings.output_dir.exists():
70
+ raise FileNotFoundError("No images have been generated yet")
71
+
72
+ # Find most recent PNG file
73
+ images = sorted(
74
+ settings.output_dir.glob("*.png"),
75
+ key=lambda p: p.stat().st_mtime,
76
+ reverse=True
77
+ )
78
+
79
+ if not images:
80
+ raise FileNotFoundError("No images found in output directory")
81
+
82
+ return images[0].read_bytes()
83
+
61
84
  @mcp.resource("models://list")
62
85
  def list_models() -> str:
63
86
  """List all available image generation models."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ultimate-gemini-mcp
3
- Version: 1.0.17
3
+ Version: 1.0.18
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,5 +1,5 @@
1
- src/__init__.py,sha256=9rQLRqhsB1_h6jbGeL4y3ShIhH1i4bnb9sE1tKaDtN8,436
2
- src/server.py,sha256=nKO88PU-8dmu1rzPmRFrTrd3xYxV6ab4ln-9Bb1g-L8,5941
1
+ src/__init__.py,sha256=rh3gu_KdsPjCNLWjsGKuZSr20I1-vugKmz1xv-wVZiM,436
2
+ src/server.py,sha256=mpzCQBE3yUqPc9gDJNvoxR2XKrN56w3yKm2l0S-dBB0,6678
3
3
  src/config/__init__.py,sha256=hL0recV_ycXBEGCym7BqwyaPCnQHy8o429pBirnBeiA,704
4
4
  src/config/constants.py,sha256=uFQJMk03vLb5YjkYMimeIz06WAVnqW3tuWQlJLYjHtc,1875
5
5
  src/config/settings.py,sha256=uTxxblnyqmglz1COd3QxjC2w3o6l51S9MTanP4HBrgE,4257
@@ -17,8 +17,8 @@ src/tools/__init__.py,sha256=idmgH7aLtnwROyqOf2-KlTutb4mmJsN-xC2ClLB1Z-Q,419
17
17
  src/tools/batch_generate.py,sha256=ESAUkHX5TOKPlHCzgY2jMLyAvSmInN2Jwm5-51EeWwg,5406
18
18
  src/tools/generate_image.py,sha256=vTwLY1v8lTZlwb9T7TKNcuYxgNpDDJKaB_NMrM_C0C0,10726
19
19
  src/utils/__init__.py,sha256=T2UShY0j2kiu63YPOsTACrzOfWTTq4PmC0flzcgeCl0,55
20
- ultimate_gemini_mcp-1.0.17.dist-info/METADATA,sha256=AD7ym2HwURwfP07yPdwBL9e_XGYtRHojADfuROwFjVY,16131
21
- ultimate_gemini_mcp-1.0.17.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
22
- ultimate_gemini_mcp-1.0.17.dist-info/entry_points.txt,sha256=-BeRTT4oR05e-YnF1ZNbNxlaekD4LsWhD-Zy_1dyRnc,56
23
- ultimate_gemini_mcp-1.0.17.dist-info/licenses/LICENSE,sha256=ilyzUnN0QHYtYGJks-NFUwiniNu08IedLmn_muRqa0o,1480
24
- ultimate_gemini_mcp-1.0.17.dist-info/RECORD,,
20
+ ultimate_gemini_mcp-1.0.18.dist-info/METADATA,sha256=uoAjdHpu3zNfUfbqpV3JCMt5t7zofS1ffrT9OVy4KW8,16131
21
+ ultimate_gemini_mcp-1.0.18.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
22
+ ultimate_gemini_mcp-1.0.18.dist-info/entry_points.txt,sha256=-BeRTT4oR05e-YnF1ZNbNxlaekD4LsWhD-Zy_1dyRnc,56
23
+ ultimate_gemini_mcp-1.0.18.dist-info/licenses/LICENSE,sha256=ilyzUnN0QHYtYGJks-NFUwiniNu08IedLmn_muRqa0o,1480
24
+ ultimate_gemini_mcp-1.0.18.dist-info/RECORD,,