gogcli-mcp-slides 2.21.1 → 2.22.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 +119 -8
- package/manifest.json +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
},
|
|
8
8
|
"metadata": {
|
|
9
9
|
"description": "Extended Google Slides for Claude via gogcli — auth + full Slides support (create, edit, export, templates, markdown)",
|
|
10
|
-
"version": "2.
|
|
10
|
+
"version": "2.22.0"
|
|
11
11
|
},
|
|
12
12
|
"plugins": [
|
|
13
13
|
{
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"displayName": "gogcli (Slides)",
|
|
16
16
|
"source": "./",
|
|
17
17
|
"description": "Extended Google Slides for Claude via gogcli — auth + full Slides support (create, edit, export, templates, markdown)",
|
|
18
|
-
"version": "2.
|
|
18
|
+
"version": "2.22.0",
|
|
19
19
|
"author": {
|
|
20
20
|
"name": "Chris Hall"
|
|
21
21
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gogcli-mcp-slides",
|
|
3
3
|
"displayName": "gogcli (Slides)",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.22.0",
|
|
5
5
|
"description": "Extended Google Slides for Claude via gogcli — auth + full Slides support (create, edit, export, templates, markdown)",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Chris Hall",
|
package/dist/index.js
CHANGED
|
@@ -31430,6 +31430,13 @@ var TIMESTAMP_KEYS = /* @__PURE__ */ new Set([
|
|
|
31430
31430
|
// Calendar event start/end
|
|
31431
31431
|
"internalDate",
|
|
31432
31432
|
// Gmail, epoch milliseconds (authoritative)
|
|
31433
|
+
// gog >= 0.35.0 Gmail message AND thread listings. Already offset-bearing
|
|
31434
|
+
// (RFC3339 from internalDate), so it needs no offset repair — it is
|
|
31435
|
+
// allowlisted purely to gain a Display sibling, and to be re-rendered in
|
|
31436
|
+
// DISPLAY_TZ like every other instant. Separately sourced from the sibling
|
|
31437
|
+
// `date`, which is a naive re-format of the sender's Date header; the two may
|
|
31438
|
+
// legitimately disagree. See docs/timestamps.md.
|
|
31439
|
+
"internalDateIso",
|
|
31433
31440
|
"modifiedTime",
|
|
31434
31441
|
// Drive
|
|
31435
31442
|
"createdTime",
|
|
@@ -31666,8 +31673,8 @@ function formatOneAccountHealth(a, now) {
|
|
|
31666
31673
|
const age = ageInDays(a.created_at, now);
|
|
31667
31674
|
const ageStr = age === null ? "" : ` Authorized ${age.toFixed(1)} day(s) ago.`;
|
|
31668
31675
|
if (a.valid === false) {
|
|
31669
|
-
const
|
|
31670
|
-
return `\u2717 ${email3}: NEEDS RE-AUTH \u2014 ${
|
|
31676
|
+
const cause2 = INVALID_GRANT_PATTERN.test(a.error ?? "") ? 'refresh token expired or revoked \u2014 commonly the 7-day limit on OAuth consent screens still in "Testing" mode' : a.error?.trim() || "unknown error";
|
|
31677
|
+
return `\u2717 ${email3}: NEEDS RE-AUTH \u2014 ${cause2}.${ageStr} Re-authorize with gog_auth_add (browser) or gog_auth_add_url + gog_auth_add_complete (remote/headless).`;
|
|
31671
31678
|
}
|
|
31672
31679
|
if (a.valid === true) {
|
|
31673
31680
|
let line = `\u2713 ${email3}: token valid.${ageStr}`;
|
|
@@ -31709,7 +31716,7 @@ function registerAuthToolsWith(server, defaultServices) {
|
|
|
31709
31716
|
}
|
|
31710
31717
|
});
|
|
31711
31718
|
server.registerTool("gog_auth_status", {
|
|
31712
|
-
description: "Show gogcli auth
|
|
31719
|
+
description: "Show gogcli auth CONFIGURATION: keyring backend, credential files, and auth setup. Despite the name this is not a health check \u2014 it reads local setup and does not contact Google, so it says nothing about whether an account can still authenticate. Use gog_auth_health for that.",
|
|
31713
31720
|
annotations: { readOnlyHint: true },
|
|
31714
31721
|
inputSchema: {}
|
|
31715
31722
|
}, async () => {
|
|
@@ -31720,7 +31727,7 @@ function registerAuthToolsWith(server, defaultServices) {
|
|
|
31720
31727
|
}
|
|
31721
31728
|
});
|
|
31722
31729
|
server.registerTool("gog_auth_health", {
|
|
31723
|
-
description: 'Check the LIVE health of each stored Google account. Unlike gog_auth_status (which only reports keyring/config setup), this performs a real token refresh against Google, so it detects expired or revoked (invalid_grant) refresh tokens \u2014 the account-wide sign-out that blocks every service. Reports per account: whether the token is currently valid, the mapped cause when it is not, how long ago it was authorized, and a warning as it approaches the 7-day refresh-token limit that applies to OAuth apps whose consent screen is still in "Testing" mode. Run it proactively to re-authorize on your own schedule instead of mid-task.',
|
|
31730
|
+
description: 'Check the LIVE health of each stored Google account. Unlike gog_auth_status (which only reports keyring/config setup), this performs a real token refresh against Google, so it detects expired or revoked (invalid_grant) refresh tokens \u2014 the account-wide sign-out that blocks every service. Reports per account: whether the token is currently valid, the mapped cause when it is not, how long ago it was authorized, and a warning as it approaches the 7-day refresh-token limit that applies to OAuth apps whose consent screen is still in "Testing" mode. Run it proactively to re-authorize on your own schedule instead of mid-task. On the hosted connector this is the ONLY check that measures Google: a connector showing "connected" or "refreshed" has verified the connector key that reaches the gog machine, and nothing else \u2014 the Google credential lives on that machine and can be dead while the connection looks perfectly healthy.',
|
|
31724
31731
|
annotations: { readOnlyHint: true },
|
|
31725
31732
|
inputSchema: {}
|
|
31726
31733
|
}, async () => {
|
|
@@ -31911,14 +31918,29 @@ function registerSlidesTools(server) {
|
|
|
31911
31918
|
}
|
|
31912
31919
|
|
|
31913
31920
|
// ../gogcli-mcp/src/server.ts
|
|
31914
|
-
var VERSION = true ? "2.
|
|
31921
|
+
var VERSION = true ? "2.22.0" : "0.0.0";
|
|
31915
31922
|
|
|
31916
31923
|
// ../gogcli-mcp/src/auth-log.ts
|
|
31917
31924
|
var FAILURES = /* @__PURE__ */ new Set([
|
|
31918
31925
|
"token.mint-failed",
|
|
31919
31926
|
"grant.dead",
|
|
31920
31927
|
"replay.failed",
|
|
31921
|
-
"runner.auth-failed"
|
|
31928
|
+
"runner.auth-failed",
|
|
31929
|
+
"connect.key-rejected",
|
|
31930
|
+
// An enrolment that could not proceed is a failure even though nobody is at
|
|
31931
|
+
// fault: it is the only trace a half-enrolled connector leaves behind, and
|
|
31932
|
+
// the absence of exactly this record is why DEFECT 4 could not be explained.
|
|
31933
|
+
"connect.runner-unreachable",
|
|
31934
|
+
"connect.google-unhealthy",
|
|
31935
|
+
"refusal.google-unhealthy",
|
|
31936
|
+
// The loudest record on this branch, and the only one that means "we cannot
|
|
31937
|
+
// explain this". Google refused a real call while a live check of the same
|
|
31938
|
+
// credential, taken seconds later, succeeded — so neither the 7-day cliff nor
|
|
31939
|
+
// a revoked grant accounts for it. It is filed as a failure precisely because
|
|
31940
|
+
// it is the record nobody may scroll past: it is the only evidence that could
|
|
31941
|
+
// ever justify building something on the hosted path, and its absence over
|
|
31942
|
+
// time is what retires that theory for good.
|
|
31943
|
+
"refusal.google-ok"
|
|
31922
31944
|
]);
|
|
31923
31945
|
var PREFIX = "gog-auth ";
|
|
31924
31946
|
var TAG_CHARS = 12;
|
|
@@ -32065,10 +32087,39 @@ async function exchange(refreshToken, clientId, clientSecret) {
|
|
|
32065
32087
|
return { accessToken: body.access_token, expiresAt: Date.now() + expiresInMs };
|
|
32066
32088
|
}
|
|
32067
32089
|
|
|
32090
|
+
// ../gogcli-mcp/src/google-probe.ts
|
|
32091
|
+
var bool = (value) => typeof value === "boolean" ? value : void 0;
|
|
32092
|
+
var cause = (value) => typeof value === "string" && value.length > 0 ? value : void 0;
|
|
32093
|
+
function readGoogleProbe(body) {
|
|
32094
|
+
const record2 = typeof body === "object" && body !== null ? body : {};
|
|
32095
|
+
const measured = bool(record2.measured);
|
|
32096
|
+
const reported = cause(record2.error);
|
|
32097
|
+
if (measured === false) {
|
|
32098
|
+
return {
|
|
32099
|
+
kind: "unmeasured",
|
|
32100
|
+
reason: reported ?? "the runner reported it could not measure the Google layer"
|
|
32101
|
+
};
|
|
32102
|
+
}
|
|
32103
|
+
if (measured === true) {
|
|
32104
|
+
if (bool(record2.ok) === true) return { kind: "ok" };
|
|
32105
|
+
return {
|
|
32106
|
+
kind: "unhealthy",
|
|
32107
|
+
reason: reported ?? "the runner reported the Google layer unhealthy with no cause"
|
|
32108
|
+
};
|
|
32109
|
+
}
|
|
32110
|
+
return {
|
|
32111
|
+
kind: "unmeasured",
|
|
32112
|
+
reason: reported ? `the runner did not report whether it measured the Google layer; it said: ${reported}` : "the runner did not report whether it measured the Google layer"
|
|
32113
|
+
};
|
|
32114
|
+
}
|
|
32115
|
+
|
|
32068
32116
|
// ../gogcli-mcp/src/connector-runtime.ts
|
|
32069
32117
|
var DEFAULT_TIMEOUT_MS = 3e4;
|
|
32070
32118
|
var DEADLINE_GRACE_MS = 5e3;
|
|
32071
32119
|
var MIN_REPLAY_BUDGET_MS = 1e3;
|
|
32120
|
+
var REFUSAL_PROBE_TIMEOUT_MS = 4e3;
|
|
32121
|
+
var MIN_PROBE_BUDGET_MS = 1e3;
|
|
32122
|
+
var PROBE_INTERVAL_MS = 6e4;
|
|
32072
32123
|
var RUNNER_GOG_FAILED = 422;
|
|
32073
32124
|
var RUNNER_DRAINING = 503;
|
|
32074
32125
|
var RUNNER_BAD_REQUEST = 400;
|
|
@@ -32115,7 +32166,7 @@ function gogTarget(args) {
|
|
|
32115
32166
|
}
|
|
32116
32167
|
return { service };
|
|
32117
32168
|
}
|
|
32118
|
-
async function remintAfterGoogleRejection(err, used, args, readAccessToken, deadlineAt) {
|
|
32169
|
+
async function remintAfterGoogleRejection(err, used, args, readAccessToken, deadlineAt, probeGoogle) {
|
|
32119
32170
|
if (!(err instanceof GogFailedError)) return void 0;
|
|
32120
32171
|
const grantDead = REFRESH_TOKEN_DEAD_PATTERN.test(err.stderr);
|
|
32121
32172
|
if (!grantDead && !GOOGLE_TOKEN_REJECTED_PATTERN.test(err.stderr)) return void 0;
|
|
@@ -32130,6 +32181,7 @@ async function remintAfterGoogleRejection(err, used, args, readAccessToken, dead
|
|
|
32130
32181
|
return void 0;
|
|
32131
32182
|
}
|
|
32132
32183
|
if (!used) {
|
|
32184
|
+
await probeGoogle(where);
|
|
32133
32185
|
logAuthTransition("replay.declined", {
|
|
32134
32186
|
...where,
|
|
32135
32187
|
reason: "no access token was supplied with the call, so gog acted as the backend volume\u2019s own identity"
|
|
@@ -32177,6 +32229,64 @@ async function remintAfterGoogleRejection(err, used, args, readAccessToken, dead
|
|
|
32177
32229
|
return { token: fresh, budgetMs, invalidate: readAccessToken.invalidate, ...where };
|
|
32178
32230
|
}
|
|
32179
32231
|
function makeFlyExecutor(endpoint, key, readAccessToken) {
|
|
32232
|
+
let lastProbeAt = Number.NEGATIVE_INFINITY;
|
|
32233
|
+
const probeGoogleAfterRefusal = async (where, deadlineAt) => {
|
|
32234
|
+
const record2 = { ...where, endpoint };
|
|
32235
|
+
const now = Date.now();
|
|
32236
|
+
const remainingMs = deadlineAt - now;
|
|
32237
|
+
if (remainingMs < MIN_PROBE_BUDGET_MS) {
|
|
32238
|
+
logAuthTransition("refusal.google-unmeasured", {
|
|
32239
|
+
...record2,
|
|
32240
|
+
reason: `only ${remainingMs}ms of the call\u2019s deadline remained, so the Google layer was not measured rather than delay the caller\u2019s own error`
|
|
32241
|
+
});
|
|
32242
|
+
return;
|
|
32243
|
+
}
|
|
32244
|
+
if (now - lastProbeAt < PROBE_INTERVAL_MS) {
|
|
32245
|
+
logAuthTransition("refusal.google-unmeasured", {
|
|
32246
|
+
...record2,
|
|
32247
|
+
// "attempted", not "measured". `lastProbeAt` is stamped before the
|
|
32248
|
+
// fetch and is deliberately NOT reset when the probe comes back with no
|
|
32249
|
+
// verdict (a 404 from a runner too old to have the endpoint, a timeout,
|
|
32250
|
+
// a dead socket) — the backend cost this throttle exists to bound was
|
|
32251
|
+
// paid either way, and resetting it would let a retry loop storm a
|
|
32252
|
+
// runner that is already unwell. So the timestamp stays and the sentence
|
|
32253
|
+
// has to be the true one: on this branch a log line may not assert a
|
|
32254
|
+
// measurement that never happened, and the previous probe may well have
|
|
32255
|
+
// measured nothing at all.
|
|
32256
|
+
reason: "a Google probe was attempted recently, so another was not sent: this probe spawns gog on the backend and takes the keyring\u2019s exclusive lock"
|
|
32257
|
+
});
|
|
32258
|
+
return;
|
|
32259
|
+
}
|
|
32260
|
+
lastProbeAt = now;
|
|
32261
|
+
let event;
|
|
32262
|
+
let reason;
|
|
32263
|
+
try {
|
|
32264
|
+
const res = await fetch(`${endpoint}/health/google`, {
|
|
32265
|
+
headers: { Authorization: `Bearer ${key}` },
|
|
32266
|
+
// Never more than the probe's own budget, never more than the call has
|
|
32267
|
+
// left. `Math.min` rather than a plain constant because the second
|
|
32268
|
+
// bound is the caller's, and it outranks ours.
|
|
32269
|
+
signal: AbortSignal.timeout(Math.min(REFUSAL_PROBE_TIMEOUT_MS, remainingMs))
|
|
32270
|
+
});
|
|
32271
|
+
if (!res.ok) {
|
|
32272
|
+
event = "refusal.google-unmeasured";
|
|
32273
|
+
reason = `the runner did not answer the Google probe (HTTP ${res.status})`;
|
|
32274
|
+
} else {
|
|
32275
|
+
const verdict = readGoogleProbe(await res.json());
|
|
32276
|
+
if (verdict.kind === "ok") {
|
|
32277
|
+
event = "refusal.google-ok";
|
|
32278
|
+
reason = "Google refused this call, yet a live token check on the same volume succeeded \u2014 so a dead or expired refresh token does not explain this refusal";
|
|
32279
|
+
} else {
|
|
32280
|
+
event = verdict.kind === "unhealthy" ? "refusal.google-unhealthy" : "refusal.google-unmeasured";
|
|
32281
|
+
reason = verdict.reason;
|
|
32282
|
+
}
|
|
32283
|
+
}
|
|
32284
|
+
} catch (err) {
|
|
32285
|
+
event = "refusal.google-unmeasured";
|
|
32286
|
+
reason = err instanceof Error ? err.message : String(err);
|
|
32287
|
+
}
|
|
32288
|
+
logAuthTransition(event, { ...record2, reason });
|
|
32289
|
+
};
|
|
32180
32290
|
return async (args, opts) => {
|
|
32181
32291
|
const deadlineMs = (opts?.timeout ?? DEFAULT_TIMEOUT_MS) + DEADLINE_GRACE_MS;
|
|
32182
32292
|
const accessToken = await readAccessToken?.();
|
|
@@ -32189,7 +32299,8 @@ function makeFlyExecutor(endpoint, key, readAccessToken) {
|
|
|
32189
32299
|
accessToken,
|
|
32190
32300
|
args,
|
|
32191
32301
|
readAccessToken,
|
|
32192
|
-
deadlineAt
|
|
32302
|
+
deadlineAt,
|
|
32303
|
+
(where2) => probeGoogleAfterRefusal(where2, deadlineAt)
|
|
32193
32304
|
);
|
|
32194
32305
|
if (replay === void 0) throw err;
|
|
32195
32306
|
const where = { credential: replay.credential, service: replay.service, endpoint };
|
package/manifest.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"manifest_version": "0.3",
|
|
4
4
|
"name": "gogcli-mcp-slides",
|
|
5
5
|
"display_name": "gogcli (Slides)",
|
|
6
|
-
"version": "2.
|
|
6
|
+
"version": "2.22.0",
|
|
7
7
|
"description": "Extended Google Slides for Claude via gogcli — auth + full Slides support (create, edit, export, templates, markdown)",
|
|
8
8
|
"author": {
|
|
9
9
|
"name": "Chris Hall",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gogcli-mcp-slides",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.22.0",
|
|
4
4
|
"mcpName": "io.github.chrischall/gogcli-mcp-slides",
|
|
5
5
|
"description": "Extended Google Slides MCP server via gogcli — auth + full Slides support",
|
|
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-slides"
|
|
9
9
|
},
|
|
10
|
-
"version": "2.
|
|
10
|
+
"version": "2.22.0",
|
|
11
11
|
"packages": [
|
|
12
12
|
{
|
|
13
13
|
"registryType": "npm",
|
|
14
14
|
"identifier": "gogcli-mcp-slides",
|
|
15
|
-
"version": "2.
|
|
15
|
+
"version": "2.22.0",
|
|
16
16
|
"transport": {
|
|
17
17
|
"type": "stdio"
|
|
18
18
|
},
|