@chrischall/gemini-mcp 0.7.2 → 0.8.0
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/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/README.md +12 -0
- package/dist/bundle.js +309 -82
- package/dist/client.js +55 -29
- package/dist/images.js +42 -1
- package/dist/tools/_confirm.js +39 -0
- package/dist/tools/generate.js +48 -28
- package/dist/tools/interact.js +44 -8
- package/dist/tools/set.js +39 -27
- package/dist/tools/shared.js +60 -8
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/server.json +2 -2
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
},
|
|
8
8
|
"metadata": {
|
|
9
9
|
"description": "MCP server for Google Gemini image generation and editing — generate and edit images via the Gemini API",
|
|
10
|
-
"version": "0.
|
|
10
|
+
"version": "0.8.0"
|
|
11
11
|
},
|
|
12
12
|
"plugins": [
|
|
13
13
|
{
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"displayName": "Gemini Images",
|
|
16
16
|
"source": "./",
|
|
17
17
|
"description": "Generate and edit images with Google Gemini image models (Nano Banana / Nano Banana Pro) via natural language prompts",
|
|
18
|
-
"version": "0.
|
|
18
|
+
"version": "0.8.0",
|
|
19
19
|
"author": {
|
|
20
20
|
"name": "Chris Hall"
|
|
21
21
|
},
|
package/README.md
CHANGED
|
@@ -16,6 +16,18 @@ Developed and maintained by AI (Claude Code).
|
|
|
16
16
|
| `GEMINI_IMAGE_MODEL` | No | Override the default image model (default: `gemini-3.1-flash-image`) |
|
|
17
17
|
| `GEMINI_OUTPUT_DIR` | No | Default directory for generated images (default: current working directory) |
|
|
18
18
|
| `GEMINI_INPUT_DIR` | No | Directory to resolve bare input-image filenames against (so `images: ["foo.jpg"]` works) |
|
|
19
|
+
| `GEMINI_TIMEOUT_MS` | No | Upstream request timeout in ms (default: `60000`, or `120000` for `image_size: "4K"`); each generation tool also takes a per-call `timeout_ms` |
|
|
20
|
+
| `GEMINI_HEARTBEAT_MS` | No | Progress-notification cadence in ms while a generation runs (default: `10000`; `0` disables) — keeps MCP hosts that reset their timeout on progress from timing out long generations |
|
|
21
|
+
|
|
22
|
+
### Long generations and client timeouts
|
|
23
|
+
|
|
24
|
+
4K / Pro-model generations can outrun an MCP host's own `tools/call` timeout (error `-32001`).
|
|
25
|
+
The server sends `notifications/progress` heartbeats so hosts that reset their timeout on
|
|
26
|
+
progress wait it out. If the host still gives up, the server-side generation usually completes
|
|
27
|
+
anyway: the image is written to the output dir, `gemini_interact` also writes an
|
|
28
|
+
`<image>.json` sidecar recording the `interaction_id`, and `continue_last: true` resumes the
|
|
29
|
+
interaction the lost response belonged to — check the output dir before re-issuing a call
|
|
30
|
+
(a re-issue is a second billable generation).
|
|
19
31
|
|
|
20
32
|
## Tools
|
|
21
33
|
|