gogcli-mcp-drive 2.18.1 → 2.18.3

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": "Extended Google Drive for Claude via gogcli — auth + full Drive support (upload, download, permissions, comments, shared drives)",
10
- "version": "2.18.1"
10
+ "version": "2.18.3"
11
11
  },
12
12
  "plugins": [
13
13
  {
@@ -15,7 +15,7 @@
15
15
  "displayName": "gogcli (Drive)",
16
16
  "source": "./",
17
17
  "description": "Extended Google Drive for Claude via gogcli — auth + full Drive support (upload, download, permissions, comments, shared drives)",
18
- "version": "2.18.1",
18
+ "version": "2.18.3",
19
19
  "author": {
20
20
  "name": "Chris Hall"
21
21
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gogcli-mcp-drive",
3
3
  "displayName": "gogcli (Drive)",
4
- "version": "2.18.1",
4
+ "version": "2.18.3",
5
5
  "description": "Extended Google Drive for Claude via gogcli — auth + full Drive support (upload, download, permissions, comments, shared drives)",
6
6
  "author": {
7
7
  "name": "Chris Hall",
package/dist/index.js CHANGED
@@ -31271,7 +31271,7 @@ async function run(args, options = {}) {
31271
31271
  }
31272
31272
  return redact(output);
31273
31273
  } catch (err) {
31274
- throw new Error(redact(err.message));
31274
+ throw new Error(redact(err instanceof Error ? err.message : String(err)));
31275
31275
  }
31276
31276
  }
31277
31277
  async function runBinary(args, options = {}) {
@@ -31700,7 +31700,9 @@ function registerDriveTools(server) {
31700
31700
  `--params=${params}`,
31701
31701
  `--body=${body}`
31702
31702
  ],
31703
- { account }
31703
+ // OCR on a large scanned PDF routinely outruns the default 30s.
31704
+ // Same precedent as the interactive auth flow in tools/auth.ts.
31705
+ { account, timeout: 3e5 }
31704
31706
  ));
31705
31707
  tempDocId = copied.id ?? copied.result?.id;
31706
31708
  if (!tempDocId) throw new Error("OCR conversion did not return a document id");
@@ -31743,14 +31745,16 @@ function registerDriveTools(server) {
31743
31745
  const { name, mimeType } = fileMeta(await run(["drive", "get", fileId], { account }));
31744
31746
  const params = JSON.stringify({ fileId, alt: "media" });
31745
31747
  const blob = await runBinary(["api", "call", "drive", "v3", "files.get", `--params=${params}`], { account });
31748
+ const type = mimeType ?? "application/octet-stream";
31749
+ const unrenderableHint = type.startsWith("image/") ? "" : ` If your client does not render a ${type} resource, gog_drive_extract_text returns the same file as text (PDFs included, via OCR).`;
31746
31750
  return {
31747
31751
  content: [
31748
- { type: "text", text: `${name ?? fileId} (${mimeType ?? "application/octet-stream"}) \u2014 ${Buffer.from(blob, "base64").length} bytes, base64 resource below.` },
31752
+ { type: "text", text: `${name ?? fileId} (${type}) \u2014 ${Buffer.from(blob, "base64").length} bytes, base64 resource below.${unrenderableHint}` },
31749
31753
  {
31750
31754
  type: "resource",
31751
31755
  resource: {
31752
31756
  uri: `gogdrive://${fileId}/${encodeURIComponent(name ?? "file")}`,
31753
- mimeType: mimeType ?? "application/octet-stream",
31757
+ mimeType: type,
31754
31758
  blob
31755
31759
  }
31756
31760
  }
@@ -31773,7 +31777,7 @@ var failIfNotEmptyParam = external_exports.boolean().optional().describe(
31773
31777
  );
31774
31778
 
31775
31779
  // ../gogcli-mcp/src/server.ts
31776
- var VERSION = true ? "2.18.1" : "0.0.0";
31780
+ var VERSION = true ? "2.18.3" : "0.0.0";
31777
31781
 
31778
31782
  // src/tools/drive-extra.ts
31779
31783
  function registerExtraDriveTools(server) {
package/manifest.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "manifest_version": "0.3",
4
4
  "name": "gogcli-mcp-drive",
5
5
  "display_name": "gogcli (Drive)",
6
- "version": "2.18.1",
6
+ "version": "2.18.3",
7
7
  "description": "Extended Google Drive for Claude via gogcli — auth + full Drive support (upload, download, permissions, comments, shared drives)",
8
8
  "author": {
9
9
  "name": "Chris Hall",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gogcli-mcp-drive",
3
- "version": "2.18.1",
3
+ "version": "2.18.3",
4
4
  "mcpName": "io.github.chrischall/gogcli-mcp-drive",
5
5
  "description": "Extended Google Drive MCP server via gogcli — auth + full Drive support (upload/download/permissions/comments/shared drives)",
6
6
  "author": "Claude Code (AI) <https://www.anthropic.com/claude>",
package/server.json CHANGED
@@ -7,12 +7,12 @@
7
7
  "source": "github",
8
8
  "subfolder": "packages/gogcli-mcp-drive"
9
9
  },
10
- "version": "2.18.1",
10
+ "version": "2.18.3",
11
11
  "packages": [
12
12
  {
13
13
  "registryType": "npm",
14
14
  "identifier": "gogcli-mcp-drive",
15
- "version": "2.18.1",
15
+ "version": "2.18.3",
16
16
  "transport": {
17
17
  "type": "stdio"
18
18
  },