gogcli-mcp-drive 2.18.3 → 2.19.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/dist/index.js +278 -3
- package/manifest.json +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
- package/src/index.ts +6 -1
|
@@ -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.
|
|
10
|
+
"version": "2.19.0"
|
|
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
|
+
"version": "2.19.0",
|
|
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.
|
|
4
|
+
"version": "2.19.0",
|
|
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
|
@@ -3644,7 +3644,12 @@ var require_fast_uri = __commonJS({
|
|
|
3644
3644
|
}
|
|
3645
3645
|
function resolve(baseURI, relativeURI, options) {
|
|
3646
3646
|
const schemelessOptions = options ? Object.assign({ scheme: "null" }, options) : { scheme: "null" };
|
|
3647
|
-
const
|
|
3647
|
+
const { parsed: baseParsed, malformedAuthorityOrPort: baseMalformed } = parseWithStatus(baseURI, schemelessOptions);
|
|
3648
|
+
const { parsed: relativeParsed, malformedAuthorityOrPort: relativeMalformed } = parseWithStatus(relativeURI, schemelessOptions);
|
|
3649
|
+
if (baseMalformed || relativeMalformed) {
|
|
3650
|
+
throw new Error(baseParsed.error || relativeParsed.error || "URI is malformed.");
|
|
3651
|
+
}
|
|
3652
|
+
const resolved = resolveComponent(baseParsed, relativeParsed, schemelessOptions, true);
|
|
3648
3653
|
schemelessOptions.skipEscape = true;
|
|
3649
3654
|
return serialize(resolved, schemelessOptions);
|
|
3650
3655
|
}
|
|
@@ -3770,6 +3775,7 @@ var require_fast_uri = __commonJS({
|
|
|
3770
3775
|
}
|
|
3771
3776
|
var URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
|
|
3772
3777
|
var AUTHORITY_PREFIX = /^(?:[^#/:?]+:)?\/\/([^/?#]*)/;
|
|
3778
|
+
var AUTHORITY_INTRODUCER_REGION = /^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;
|
|
3773
3779
|
function getParseError(parsed, matches) {
|
|
3774
3780
|
if (matches[2] !== void 0 && parsed.path && parsed.path[0] !== "/") {
|
|
3775
3781
|
return 'URI path must start with "/" when authority is present.';
|
|
@@ -3804,6 +3810,20 @@ var require_fast_uri = __commonJS({
|
|
|
3804
3810
|
parsed.error = "URI authority must not contain a literal backslash.";
|
|
3805
3811
|
malformedAuthorityOrPort = true;
|
|
3806
3812
|
}
|
|
3813
|
+
const introducerMatch = uri.match(AUTHORITY_INTRODUCER_REGION);
|
|
3814
|
+
if (introducerMatch !== null) {
|
|
3815
|
+
const region = introducerMatch[1];
|
|
3816
|
+
const normalizedRegion = region.replace(/[\t\n\r]/g, "");
|
|
3817
|
+
if (normalizedRegion.length >= 2) {
|
|
3818
|
+
if (normalizedRegion.slice(0, 2) !== "//") {
|
|
3819
|
+
parsed.error = parsed.error || "URI authority must not contain a literal backslash.";
|
|
3820
|
+
malformedAuthorityOrPort = true;
|
|
3821
|
+
} else if (region.length !== normalizedRegion.length) {
|
|
3822
|
+
parsed.error = parsed.error || "URI authority introducer must not contain whitespace.";
|
|
3823
|
+
malformedAuthorityOrPort = true;
|
|
3824
|
+
}
|
|
3825
|
+
}
|
|
3826
|
+
}
|
|
3807
3827
|
const matches = uri.match(URI_PARSE);
|
|
3808
3828
|
if (matches) {
|
|
3809
3829
|
parsed.scheme = matches[1];
|
|
@@ -31285,6 +31305,198 @@ async function runBinary(args, options = {}) {
|
|
|
31285
31305
|
return spawnExecutor(fullArgs, { timeout, interactive: false, spawner, binary: true });
|
|
31286
31306
|
}
|
|
31287
31307
|
|
|
31308
|
+
// ../gogcli-mcp/src/timestamps.ts
|
|
31309
|
+
var DEFAULT_DISPLAY_TZ = "America/New_York";
|
|
31310
|
+
function isValidTimeZone(tz) {
|
|
31311
|
+
try {
|
|
31312
|
+
new Intl.DateTimeFormat("en-US", { timeZone: tz });
|
|
31313
|
+
return true;
|
|
31314
|
+
} catch {
|
|
31315
|
+
return false;
|
|
31316
|
+
}
|
|
31317
|
+
}
|
|
31318
|
+
function displayTimeZone() {
|
|
31319
|
+
const configured = readEnvVar("DISPLAY_TZ");
|
|
31320
|
+
if (configured && isValidTimeZone(configured)) return configured;
|
|
31321
|
+
return DEFAULT_DISPLAY_TZ;
|
|
31322
|
+
}
|
|
31323
|
+
function naiveSourceTimeZone() {
|
|
31324
|
+
const configured = readEnvVar("GOG_TIMEZONE");
|
|
31325
|
+
if (configured && isValidTimeZone(configured)) return configured;
|
|
31326
|
+
return displayTimeZone();
|
|
31327
|
+
}
|
|
31328
|
+
function offsetAt(instant, tz) {
|
|
31329
|
+
const w = wallPartsIn(instant, tz);
|
|
31330
|
+
const asUTC = Date.UTC(w.year, w.month - 1, w.day, w.hour, w.minute, w.second, instant.getUTCMilliseconds());
|
|
31331
|
+
const minutes = Math.round((asUTC - instant.getTime()) / 6e4);
|
|
31332
|
+
const sign = minutes < 0 ? "-" : "+";
|
|
31333
|
+
const abs = Math.abs(minutes);
|
|
31334
|
+
return `${sign}${pad(Math.floor(abs / 60))}:${pad(abs % 60)}`;
|
|
31335
|
+
}
|
|
31336
|
+
function wallPartsIn(instant, tz) {
|
|
31337
|
+
const parts = new Intl.DateTimeFormat("en-US", {
|
|
31338
|
+
timeZone: tz,
|
|
31339
|
+
year: "numeric",
|
|
31340
|
+
month: "2-digit",
|
|
31341
|
+
day: "2-digit",
|
|
31342
|
+
hour: "2-digit",
|
|
31343
|
+
minute: "2-digit",
|
|
31344
|
+
second: "2-digit",
|
|
31345
|
+
// h23 pins midnight to hour 00; without it some ICU builds render hour 24.
|
|
31346
|
+
hourCycle: "h23"
|
|
31347
|
+
}).formatToParts(instant);
|
|
31348
|
+
const out = {};
|
|
31349
|
+
for (const p of parts) {
|
|
31350
|
+
if (p.type !== "literal") out[p.type] = Number(p.value);
|
|
31351
|
+
}
|
|
31352
|
+
return out;
|
|
31353
|
+
}
|
|
31354
|
+
function wallTimeToInstant(y, mo, d, h, mi, s, ms, tz) {
|
|
31355
|
+
let guess = Date.UTC(y, mo - 1, d, h, mi, s, ms);
|
|
31356
|
+
for (let i = 0; i < 2; i += 1) {
|
|
31357
|
+
const seen = wallPartsIn(new Date(guess), tz);
|
|
31358
|
+
const seenUTC = Date.UTC(seen.year, seen.month - 1, seen.day, seen.hour, seen.minute, seen.second, ms);
|
|
31359
|
+
const drift = Date.UTC(y, mo - 1, d, h, mi, s, ms) - seenUTC;
|
|
31360
|
+
if (drift === 0) break;
|
|
31361
|
+
guess += drift;
|
|
31362
|
+
}
|
|
31363
|
+
return new Date(guess);
|
|
31364
|
+
}
|
|
31365
|
+
function pad(n, width = 2) {
|
|
31366
|
+
return String(n).padStart(width, "0");
|
|
31367
|
+
}
|
|
31368
|
+
function isoWithOffset(instant, tz, offset) {
|
|
31369
|
+
const w = wallPartsIn(instant, tz);
|
|
31370
|
+
const msPart = instant.getUTCMilliseconds();
|
|
31371
|
+
const frac = msPart ? `.${pad(msPart, 3)}` : "";
|
|
31372
|
+
return `${pad(w.year, 4)}-${pad(w.month)}-${pad(w.day)}T${pad(w.hour)}:${pad(w.minute)}:${pad(w.second)}${frac}${offset}`;
|
|
31373
|
+
}
|
|
31374
|
+
function formatInstant(instant, tz = displayTimeZone()) {
|
|
31375
|
+
const offset = offsetAt(instant, tz);
|
|
31376
|
+
const display = new Intl.DateTimeFormat("en-US", {
|
|
31377
|
+
timeZone: tz,
|
|
31378
|
+
weekday: "short",
|
|
31379
|
+
month: "short",
|
|
31380
|
+
day: "numeric",
|
|
31381
|
+
year: "numeric",
|
|
31382
|
+
hour: "numeric",
|
|
31383
|
+
minute: "2-digit",
|
|
31384
|
+
timeZoneName: "short"
|
|
31385
|
+
}).format(instant);
|
|
31386
|
+
return { iso: isoWithOffset(instant, tz, offset), display };
|
|
31387
|
+
}
|
|
31388
|
+
var TIMESTAMP_KEYS = /* @__PURE__ */ new Set([
|
|
31389
|
+
"date",
|
|
31390
|
+
// gog gmail message/thread listings ("2026-07-28 03:36")
|
|
31391
|
+
"dateTime",
|
|
31392
|
+
// Calendar event start/end
|
|
31393
|
+
"internalDate",
|
|
31394
|
+
// Gmail, epoch milliseconds (authoritative)
|
|
31395
|
+
"modifiedTime",
|
|
31396
|
+
// Drive
|
|
31397
|
+
"createdTime",
|
|
31398
|
+
// Drive
|
|
31399
|
+
"createTime",
|
|
31400
|
+
"updateTime",
|
|
31401
|
+
"updated",
|
|
31402
|
+
"originalStartTime",
|
|
31403
|
+
"expirationTime",
|
|
31404
|
+
"lastModified",
|
|
31405
|
+
"sentAt",
|
|
31406
|
+
"viewedAt",
|
|
31407
|
+
"modifiedAt",
|
|
31408
|
+
"fetchedBodyAt",
|
|
31409
|
+
"asOf"
|
|
31410
|
+
]);
|
|
31411
|
+
var ZONE_NAME_KEYS = /* @__PURE__ */ new Set(["timeZone", "timezone"]);
|
|
31412
|
+
var RFC3339_WITH_OFFSET = /^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2})(?::(\d{2}))?(?:\.(\d{1,9}))?(Z|[+-]\d{2}:?\d{2})$/;
|
|
31413
|
+
var NAIVE_DATE_TIME = /^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2})(?::(\d{2}))?(?:\.(\d{1,9}))?$/;
|
|
31414
|
+
var EPOCH_MILLIS = /^\d{13}$/;
|
|
31415
|
+
var DATE_ONLY = /^\d{4}-\d{2}-\d{2}$/;
|
|
31416
|
+
function isRealCalendarDate(p) {
|
|
31417
|
+
const utc = new Date(Date.UTC(p.year, p.month - 1, p.day, p.hour, p.minute, p.second));
|
|
31418
|
+
return utc.getUTCFullYear() === p.year && utc.getUTCMonth() === p.month - 1 && utc.getUTCDate() === p.day && utc.getUTCHours() === p.hour && utc.getUTCMinutes() === p.minute && utc.getUTCSeconds() === p.second;
|
|
31419
|
+
}
|
|
31420
|
+
function parseTimestampValue(key, value, assumeNaiveIn) {
|
|
31421
|
+
if (typeof value !== "string") return null;
|
|
31422
|
+
const raw = value.trim();
|
|
31423
|
+
if (raw === "" || DATE_ONLY.test(raw)) return null;
|
|
31424
|
+
if (key === "internalDate" && EPOCH_MILLIS.test(raw)) {
|
|
31425
|
+
return new Date(Number(raw));
|
|
31426
|
+
}
|
|
31427
|
+
if (RFC3339_WITH_OFFSET.test(raw)) {
|
|
31428
|
+
const parsed = new Date(raw.replace(" ", "T"));
|
|
31429
|
+
return Number.isNaN(parsed.getTime()) ? null : parsed;
|
|
31430
|
+
}
|
|
31431
|
+
const naive = NAIVE_DATE_TIME.exec(raw);
|
|
31432
|
+
if (naive) {
|
|
31433
|
+
const [, y, mo, d, h, mi, s, frac] = naive;
|
|
31434
|
+
const ms = frac ? Number(frac.padEnd(3, "0").slice(0, 3)) : 0;
|
|
31435
|
+
const parts = {
|
|
31436
|
+
year: Number(y),
|
|
31437
|
+
month: Number(mo),
|
|
31438
|
+
day: Number(d),
|
|
31439
|
+
hour: Number(h),
|
|
31440
|
+
minute: Number(mi),
|
|
31441
|
+
second: Number(s ?? "0")
|
|
31442
|
+
};
|
|
31443
|
+
if (!isRealCalendarDate(parts)) return null;
|
|
31444
|
+
return wallTimeToInstant(
|
|
31445
|
+
parts.year,
|
|
31446
|
+
parts.month,
|
|
31447
|
+
parts.day,
|
|
31448
|
+
parts.hour,
|
|
31449
|
+
parts.minute,
|
|
31450
|
+
parts.second,
|
|
31451
|
+
ms,
|
|
31452
|
+
assumeNaiveIn
|
|
31453
|
+
);
|
|
31454
|
+
}
|
|
31455
|
+
return null;
|
|
31456
|
+
}
|
|
31457
|
+
function walk(node, tz, naiveTz) {
|
|
31458
|
+
let changed = false;
|
|
31459
|
+
if (Array.isArray(node)) {
|
|
31460
|
+
for (const item of node) {
|
|
31461
|
+
if (walk(item, tz, naiveTz)) changed = true;
|
|
31462
|
+
}
|
|
31463
|
+
return changed;
|
|
31464
|
+
}
|
|
31465
|
+
if (node === null || typeof node !== "object") return false;
|
|
31466
|
+
const obj = node;
|
|
31467
|
+
for (const key of Object.keys(obj)) {
|
|
31468
|
+
const value = obj[key];
|
|
31469
|
+
if (value !== null && typeof value === "object") {
|
|
31470
|
+
if (walk(value, tz, naiveTz)) changed = true;
|
|
31471
|
+
continue;
|
|
31472
|
+
}
|
|
31473
|
+
if (ZONE_NAME_KEYS.has(key) || !TIMESTAMP_KEYS.has(key)) continue;
|
|
31474
|
+
const instant = parseTimestampValue(key, value, naiveTz);
|
|
31475
|
+
if (!instant) continue;
|
|
31476
|
+
const { iso, display } = formatInstant(instant, tz);
|
|
31477
|
+
obj[key] = iso;
|
|
31478
|
+
obj[`${key}Display`] = display;
|
|
31479
|
+
changed = true;
|
|
31480
|
+
}
|
|
31481
|
+
return changed;
|
|
31482
|
+
}
|
|
31483
|
+
function detectIndent(text) {
|
|
31484
|
+
const match = /\n(\s+)\S/.exec(text);
|
|
31485
|
+
return match ? match[1].replace(/\t/g, " ").length : 0;
|
|
31486
|
+
}
|
|
31487
|
+
function normalizeTimestamps(text, tz = displayTimeZone(), naiveTz = naiveSourceTimeZone()) {
|
|
31488
|
+
const trimmed = text.trim();
|
|
31489
|
+
if (trimmed === "" || !/^[[{]/.test(trimmed)) return text;
|
|
31490
|
+
let parsed;
|
|
31491
|
+
try {
|
|
31492
|
+
parsed = JSON.parse(trimmed);
|
|
31493
|
+
} catch {
|
|
31494
|
+
return text;
|
|
31495
|
+
}
|
|
31496
|
+
if (!walk(parsed, tz, naiveTz)) return text;
|
|
31497
|
+
return JSON.stringify(parsed, null, detectIndent(text));
|
|
31498
|
+
}
|
|
31499
|
+
|
|
31288
31500
|
// ../gogcli-mcp/src/tools/utils.ts
|
|
31289
31501
|
var accountParam = external_exports.string().optional().describe(
|
|
31290
31502
|
"Google account email to use, e.g. you@gmail.com \u2014 must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account."
|
|
@@ -31383,7 +31595,8 @@ ${accounts || "(none)"}${hint}`);
|
|
|
31383
31595
|
}
|
|
31384
31596
|
async function runOrDiagnose(args, options) {
|
|
31385
31597
|
try {
|
|
31386
|
-
|
|
31598
|
+
const raw = await run(args, options);
|
|
31599
|
+
return rawTextResult(options.lossless ? raw : normalizeTimestamps(raw));
|
|
31387
31600
|
} catch (err) {
|
|
31388
31601
|
return diagnose(err);
|
|
31389
31602
|
}
|
|
@@ -31777,7 +31990,68 @@ var failIfNotEmptyParam = external_exports.boolean().optional().describe(
|
|
|
31777
31990
|
);
|
|
31778
31991
|
|
|
31779
31992
|
// ../gogcli-mcp/src/server.ts
|
|
31780
|
-
var VERSION = true ? "2.
|
|
31993
|
+
var VERSION = true ? "2.19.0" : "0.0.0";
|
|
31994
|
+
|
|
31995
|
+
// ../gogcli-mcp/src/connector-runtime.ts
|
|
31996
|
+
var DEFAULT_TIMEOUT_MS = 3e4;
|
|
31997
|
+
var DEADLINE_GRACE_MS = 5e3;
|
|
31998
|
+
var RUNNER_GOG_FAILED = 422;
|
|
31999
|
+
var RUNNER_DRAINING = 503;
|
|
32000
|
+
function makeFlyExecutor(endpoint, key) {
|
|
32001
|
+
return async (args, opts) => {
|
|
32002
|
+
const deadlineMs = (opts?.timeout ?? DEFAULT_TIMEOUT_MS) + DEADLINE_GRACE_MS;
|
|
32003
|
+
let res;
|
|
32004
|
+
try {
|
|
32005
|
+
res = await fetch(endpoint + "/run", {
|
|
32006
|
+
method: "POST",
|
|
32007
|
+
headers: {
|
|
32008
|
+
Authorization: "Bearer " + key,
|
|
32009
|
+
"Content-Type": "application/json"
|
|
32010
|
+
},
|
|
32011
|
+
body: JSON.stringify({ args }),
|
|
32012
|
+
signal: AbortSignal.timeout(deadlineMs)
|
|
32013
|
+
});
|
|
32014
|
+
} catch (err) {
|
|
32015
|
+
const name = err instanceof Error ? err.name : "";
|
|
32016
|
+
if (name === "TimeoutError" || name === "AbortError") {
|
|
32017
|
+
throw new Error(
|
|
32018
|
+
`gog-runner did not respond within ${deadlineMs}ms (${endpoint}) \u2014 the Fly backend may be cold or wedged`
|
|
32019
|
+
);
|
|
32020
|
+
}
|
|
32021
|
+
throw err;
|
|
32022
|
+
}
|
|
32023
|
+
if (!res.ok) {
|
|
32024
|
+
const body = await res.json().catch(() => null);
|
|
32025
|
+
const detail = body && typeof body.error === "string" ? body.stderr && body.stderr.trim() && body.stderr.trim() !== body.error.trim() ? `${body.error}
|
|
32026
|
+
${body.stderr}` : body.error : "";
|
|
32027
|
+
if (res.status === RUNNER_GOG_FAILED) {
|
|
32028
|
+
throw new Error(detail || "gog failed on the runner (no detail supplied)");
|
|
32029
|
+
}
|
|
32030
|
+
if (res.status === RUNNER_DRAINING || body?.retryable === true) {
|
|
32031
|
+
throw new Error(
|
|
32032
|
+
`gog-runner is restarting; retry this call.${detail ? ` ${detail}` : ""}`
|
|
32033
|
+
);
|
|
32034
|
+
}
|
|
32035
|
+
if (detail) {
|
|
32036
|
+
throw new Error(detail);
|
|
32037
|
+
}
|
|
32038
|
+
throw new Error(
|
|
32039
|
+
`gog-runner HTTP ${res.status}: the response did not come from the runner, so the request never reached gog. The backend Machine was most likely starting or shutting down \u2014 this is transient, retry the same call.`
|
|
32040
|
+
);
|
|
32041
|
+
}
|
|
32042
|
+
const { stdout } = await res.json();
|
|
32043
|
+
return stdout;
|
|
32044
|
+
};
|
|
32045
|
+
}
|
|
32046
|
+
|
|
32047
|
+
// ../gogcli-mcp/src/remote-runner.ts
|
|
32048
|
+
function useRemoteGogRunner(env = process.env) {
|
|
32049
|
+
const endpoint = readEnvVar("GOG_RUNNER_URL", { env });
|
|
32050
|
+
const key = readEnvVar("GOG_RUNNER_KEY", { env });
|
|
32051
|
+
if (!endpoint || !key) return false;
|
|
32052
|
+
runExecutor.enterWith({ executor: makeFlyExecutor(endpoint.replace(/\/+$/, ""), key) });
|
|
32053
|
+
return true;
|
|
32054
|
+
}
|
|
31781
32055
|
|
|
31782
32056
|
// src/tools/drive-extra.ts
|
|
31783
32057
|
function registerExtraDriveTools(server) {
|
|
@@ -32281,6 +32555,7 @@ function registerExtraDriveTools(server) {
|
|
|
32281
32555
|
}
|
|
32282
32556
|
|
|
32283
32557
|
// src/index.ts
|
|
32558
|
+
useRemoteGogRunner();
|
|
32284
32559
|
await runMcp({
|
|
32285
32560
|
name: "gogcli-drive",
|
|
32286
32561
|
version: VERSION,
|
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.
|
|
6
|
+
"version": "2.19.0",
|
|
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.
|
|
3
|
+
"version": "2.19.0",
|
|
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.
|
|
10
|
+
"version": "2.19.0",
|
|
11
11
|
"packages": [
|
|
12
12
|
{
|
|
13
13
|
"registryType": "npm",
|
|
14
14
|
"identifier": "gogcli-mcp-drive",
|
|
15
|
-
"version": "2.
|
|
15
|
+
"version": "2.19.0",
|
|
16
16
|
"transport": {
|
|
17
17
|
"type": "stdio"
|
|
18
18
|
},
|
package/src/index.ts
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { runMcp } from '@chrischall/mcp-utils';
|
|
3
|
-
import { VERSION, authToolsFor, registerDriveTools } from '../../gogcli-mcp/src/lib.js';
|
|
3
|
+
import { VERSION, authToolsFor, registerDriveTools, useRemoteGogRunner } from '../../gogcli-mcp/src/lib.js';
|
|
4
4
|
import { registerExtraDriveTools } from './tools/drive-extra.js';
|
|
5
5
|
|
|
6
|
+
|
|
7
|
+
// Execute `gog` on the Fly backend when the host points us at one; without
|
|
8
|
+
// it, nothing changes and we spawn the local binary as before.
|
|
9
|
+
useRemoteGogRunner();
|
|
10
|
+
|
|
6
11
|
await runMcp({
|
|
7
12
|
name: 'gogcli-drive',
|
|
8
13
|
version: VERSION,
|