Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GEMINI_API_KEY | Yes | The Google Gemini API key required for image generation. | |
| MCP_FALLBACK_OUTPUT | No | Optional: Set a custom fallback directory for write failures. |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
| logging | {} |
| completions | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| generate_image | Generate image assets using Gemini AI with optional transparency and reference images. [Model Guidance]
[Aspect Ratios & Pixel Sizes] Gemini supports the following aspect ratios (model-dependent):
To avoid cropping or padding, set width and height to match a supported aspect ratio. If the requested size does not match, the image will be center-cropped or padded after generation. If you intentionally want to control the resizing/cropping behavior, use the 'resizeMode' parameter: 'crop' (default, center crop), 'letterbox' (fit with padding), 'contain' (trim transparent margins then fit), or 'stretch' (distort to fit). [IMPORTANT] Always preserve the user's prompt as-is, including language and nuance. Do not translate or summarize. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |