@chrischall/gemini-mcp 1.6.0 → 1.6.1

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.
@@ -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": "1.6.0"
10
+ "version": "1.6.1"
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": "1.6.0",
18
+ "version": "1.6.1",
19
19
  "author": {
20
20
  "name": "Chris Hall"
21
21
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gemini-mcp",
3
3
  "displayName": "Gemini Images",
4
- "version": "1.6.0",
4
+ "version": "1.6.1",
5
5
  "description": "MCP server for Google Gemini image generation and editing — generate and edit images via the Gemini API",
6
6
  "author": {
7
7
  "name": "Chris Hall",
package/dist/bundle.js CHANGED
@@ -32920,7 +32920,7 @@ async function loadStdioDotenv() {
32920
32920
  }
32921
32921
 
32922
32922
  // src/version.ts
32923
- var VERSION = "1.6.0";
32923
+ var VERSION = "1.6.1";
32924
32924
 
32925
32925
  // src/tools/models.ts
32926
32926
  init_dist();
@@ -35317,7 +35317,7 @@ function hostedStorage() {
35317
35317
  mediaSink: createR2Sink(blob.bucket, {
35318
35318
  signedBaseUrl: blob.baseUrl,
35319
35319
  sign: blob.signRead,
35320
- urlTtlMs: MEDIA_URL_TTL_MS2,
35320
+ urlTtlMs: BLOB_URL_TTL_MS,
35321
35321
  // Hard ceiling on any PER-PERSIST override. `gemini_image_set` asks for
35322
35322
  // a 7-day link (SET_URL_TTL_MS) — reasonable against a bucket we own,
35323
35323
  // but the blob store refuses any signature over 24h, so without this
@@ -35334,7 +35334,7 @@ function hostedStorage() {
35334
35334
  uploadUrls: createUploadUrlMinter({ baseUrl: blob.baseUrl, sign: blob.signWrite, tenant })
35335
35335
  };
35336
35336
  }
35337
- var MEDIA_URL_TTL_MS2 = 60 * 60 * 1e3;
35337
+ var BLOB_URL_TTL_MS = 24 * 60 * 60 * 1e3;
35338
35338
  var BLOB_MAX_TTL_MS = 24 * 60 * 60 * 1e3;
35339
35339
  var client = new GeminiClient(hostedStorage());
35340
35340
 
package/dist/client.js CHANGED
@@ -778,7 +778,7 @@ function hostedStorage() {
778
778
  mediaSink: createR2Sink(blob.bucket, {
779
779
  signedBaseUrl: blob.baseUrl,
780
780
  sign: blob.signRead,
781
- urlTtlMs: MEDIA_URL_TTL_MS,
781
+ urlTtlMs: BLOB_URL_TTL_MS,
782
782
  // Hard ceiling on any PER-PERSIST override. `gemini_image_set` asks for
783
783
  // a 7-day link (SET_URL_TTL_MS) — reasonable against a bucket we own,
784
784
  // but the blob store refuses any signature over 24h, so without this
@@ -795,13 +795,27 @@ function hostedStorage() {
795
795
  uploadUrls: createUploadUrlMinter({ baseUrl: blob.baseUrl, sign: blob.signWrite, tenant }),
796
796
  };
797
797
  }
798
- /** An hour, well inside the ceiling below. */
799
- const MEDIA_URL_TTL_MS = 60 * 60 * 1000;
798
+ /**
799
+ * How long a freshly-minted media link lives.
800
+ *
801
+ * Named for the blob store, NOT `MEDIA_URL_TTL_MS` — `media-url.ts` already
802
+ * exports a constant by that name with a different value (48h, the retired
803
+ * connector's window), and having two of them in one repo is how a reader ends
804
+ * up reasoning about the wrong number.
805
+ *
806
+ * Set to the ceiling rather than something shorter, because the ceiling is not
807
+ * ours to raise: the store refuses any signature over 24h, so this is simply
808
+ * the longest a link can legally live. The re-host therefore shortens links
809
+ * — 48h defaults and the 7-day `gemini_image_set` window are both impossible
810
+ * now — and `gemini_sign_media` is the answer to an expired one, which is what
811
+ * it was built for.
812
+ */
813
+ const BLOB_URL_TTL_MS = 24 * 60 * 60 * 1000;
800
814
  /**
801
815
  * The blob store's own limit on how far ahead a signature may expire
802
816
  * (mcp-host docs/BLOB-STORE.md). Keep in step with it: signing past this is
803
817
  * refused at the door, so a longer link is not a longer link — it is a broken
804
- * one.
818
+ * one. Clamps any PER-PERSIST override, notably `gemini_image_set`'s 7 days.
805
819
  */
806
820
  const BLOB_MAX_TTL_MS = 24 * 60 * 60 * 1000;
807
821
  /** Module-level singleton shared by every tool module (deferred-config-error). */
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /** Single source of the server version. release-please bumps the literal below. */
2
- export const VERSION = '1.6.0'; // x-release-please-version
2
+ export const VERSION = '1.6.1'; // x-release-please-version
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrischall/gemini-mcp",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "mcpName": "io.github.chrischall/gemini-mcp",
5
5
  "description": "Gemini image-generation MCP server for Claude — developed and maintained by AI (Claude Code)",
6
6
  "author": "Claude Code (AI) <https://www.anthropic.com/claude>",
package/server.json CHANGED
@@ -6,12 +6,12 @@
6
6
  "url": "https://github.com/chrischall/gemini-mcp",
7
7
  "source": "github"
8
8
  },
9
- "version": "1.6.0",
9
+ "version": "1.6.1",
10
10
  "packages": [
11
11
  {
12
12
  "registryType": "npm",
13
13
  "identifier": "@chrischall/gemini-mcp",
14
- "version": "1.6.0",
14
+ "version": "1.6.1",
15
15
  "transport": {
16
16
  "type": "stdio"
17
17
  },