gogcli-mcp-docs 2.23.2 → 2.24.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 +33 -26
- 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 Docs for Claude via gogcli — auth + full Docs and comments support",
|
|
10
|
-
"version": "2.
|
|
10
|
+
"version": "2.24.0"
|
|
11
11
|
},
|
|
12
12
|
"plugins": [
|
|
13
13
|
{
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"displayName": "gogcli (Docs)",
|
|
16
16
|
"source": "./",
|
|
17
17
|
"description": "Extended Google Docs for Claude via gogcli — auth + full Docs and comments support",
|
|
18
|
-
"version": "2.
|
|
18
|
+
"version": "2.24.0",
|
|
19
19
|
"author": {
|
|
20
20
|
"name": "Chris Hall"
|
|
21
21
|
},
|
package/dist/index.js
CHANGED
|
@@ -31740,6 +31740,7 @@ function formatAuthHealth(raw, now) {
|
|
|
31740
31740
|
// ../gogcli-mcp/src/tools/auth.ts
|
|
31741
31741
|
function registerAuthToolsWith(server, defaultServices) {
|
|
31742
31742
|
const servicesDescribe = `Services to authorize: "all" or comma-separated list (e.g. "sheets,gmail,calendar"). Default: "${defaultServices}". Prefer the narrowest set you need \u2014 requesting a service whose Google API is not enabled on the OAuth client's project makes Google reject the WHOLE request with invalid_scope.`;
|
|
31743
|
+
const extraScopesDescribe = "Additional raw OAuth scope URIs to request, comma-separated, on top of the ones `services` implies. Use for scopes no service covers \u2014 e.g. https://www.googleapis.com/auth/bigquery.readonly, required before gog_sheets_datasource_* can read BigQuery-backed Connected Sheets. Leave unset otherwise: an extra scope whose API is not enabled on the OAuth client project makes Google reject the WHOLE authorization with invalid_scope.";
|
|
31743
31744
|
server.registerTool("gog_auth_list", {
|
|
31744
31745
|
description: "List the Google accounts stored in gogcli, with their scopes. This reads local configuration only \u2014 it does not contact Google and does NOT tell you whether an account still works: a signed-out account whose refresh token expired or was revoked is listed here exactly like a healthy one, scopes and all. Use gog_auth_health to check whether an account can actually authenticate.",
|
|
31745
31746
|
annotations: { readOnlyHint: true },
|
|
@@ -31789,11 +31790,14 @@ function registerAuthToolsWith(server, defaultServices) {
|
|
|
31789
31790
|
annotations: { destructiveHint: true },
|
|
31790
31791
|
inputSchema: {
|
|
31791
31792
|
email: external_exports.string().describe("Google account email to authorize"),
|
|
31792
|
-
services: external_exports.string().optional().default(defaultServices).describe(servicesDescribe)
|
|
31793
|
+
services: external_exports.string().optional().default(defaultServices).describe(servicesDescribe),
|
|
31794
|
+
extraScopes: external_exports.string().optional().describe(extraScopesDescribe)
|
|
31793
31795
|
}
|
|
31794
|
-
}, async ({ email: email3, services = defaultServices }) => {
|
|
31796
|
+
}, async ({ email: email3, services = defaultServices, extraScopes }) => {
|
|
31795
31797
|
try {
|
|
31796
|
-
|
|
31798
|
+
const args = ["auth", "add", email3, "--services", services];
|
|
31799
|
+
if (extraScopes) args.push(`--extra-scopes=${extraScopes}`, "--force-consent");
|
|
31800
|
+
return rawTextResult(await run(args, {
|
|
31797
31801
|
interactive: true,
|
|
31798
31802
|
timeout: 3e5
|
|
31799
31803
|
}));
|
|
@@ -31805,14 +31809,14 @@ function registerAuthToolsWith(server, defaultServices) {
|
|
|
31805
31809
|
description: "Begin REMOTE/headless Google authorization (step 1 of 2). Returns a sign-in URL to open in any browser \u2014 no local server or terminal on the gogcli host is needed, so this works over the hosted connector where the interactive gog_auth_add cannot. Hand the URL to the user; after they sign in, the browser is redirected to a localhost URL that fails to load \u2014 that is expected. They copy that full redirected URL (from the address bar) and you pass it to gog_auth_add_complete. The link is valid for 10 minutes. If you pass a custom `services` here, pass the SAME value to gog_auth_add_complete or the second step will not match this one.",
|
|
31806
31810
|
inputSchema: {
|
|
31807
31811
|
email: external_exports.string().describe("Google account email to authorize"),
|
|
31808
|
-
services: external_exports.string().optional().default(defaultServices).describe(servicesDescribe)
|
|
31812
|
+
services: external_exports.string().optional().default(defaultServices).describe(servicesDescribe),
|
|
31813
|
+
extraScopes: external_exports.string().optional().describe(`${extraScopesDescribe} Pass the SAME value to gog_auth_add_complete.`)
|
|
31809
31814
|
}
|
|
31810
|
-
}, async ({ email: email3, services = defaultServices }) => {
|
|
31815
|
+
}, async ({ email: email3, services = defaultServices, extraScopes }) => {
|
|
31811
31816
|
try {
|
|
31812
|
-
|
|
31813
|
-
|
|
31814
|
-
|
|
31815
|
-
));
|
|
31817
|
+
const args = ["auth", "add", email3, "--remote", "--step", "1", "--services", services, "--force-consent"];
|
|
31818
|
+
if (extraScopes) args.push(`--extra-scopes=${extraScopes}`);
|
|
31819
|
+
return rawTextResult(await run(args, { redactMode: "tokens" }));
|
|
31816
31820
|
} catch (err) {
|
|
31817
31821
|
return errorResult(errorText(err));
|
|
31818
31822
|
}
|
|
@@ -31827,25 +31831,28 @@ function registerAuthToolsWith(server, defaultServices) {
|
|
|
31827
31831
|
),
|
|
31828
31832
|
services: external_exports.string().optional().default(defaultServices).describe(
|
|
31829
31833
|
`Services authorized \u2014 MUST match the value passed to gog_auth_add_url. Default: "${defaultServices}".`
|
|
31834
|
+
),
|
|
31835
|
+
extraScopes: external_exports.string().optional().describe(
|
|
31836
|
+
"Extra OAuth scope URIs \u2014 MUST match the value passed to gog_auth_add_url, for the same reason `services` must: the two steps have to describe the same grant."
|
|
31830
31837
|
)
|
|
31831
31838
|
}
|
|
31832
|
-
}, async ({ email: email3, redirectUrl, services = defaultServices }) => {
|
|
31839
|
+
}, async ({ email: email3, redirectUrl, services = defaultServices, extraScopes }) => {
|
|
31833
31840
|
try {
|
|
31834
|
-
|
|
31835
|
-
|
|
31836
|
-
|
|
31837
|
-
|
|
31838
|
-
|
|
31839
|
-
|
|
31840
|
-
|
|
31841
|
-
|
|
31842
|
-
|
|
31843
|
-
|
|
31844
|
-
|
|
31845
|
-
|
|
31846
|
-
|
|
31847
|
-
|
|
31848
|
-
));
|
|
31841
|
+
const args = [
|
|
31842
|
+
"auth",
|
|
31843
|
+
"add",
|
|
31844
|
+
email3,
|
|
31845
|
+
"--remote",
|
|
31846
|
+
"--step",
|
|
31847
|
+
"2",
|
|
31848
|
+
"--auth-url",
|
|
31849
|
+
redirectUrl,
|
|
31850
|
+
"--services",
|
|
31851
|
+
services,
|
|
31852
|
+
"--force-consent"
|
|
31853
|
+
];
|
|
31854
|
+
if (extraScopes) args.push(`--extra-scopes=${extraScopes}`);
|
|
31855
|
+
return rawTextResult(await run(args));
|
|
31849
31856
|
} catch (err) {
|
|
31850
31857
|
return errorResult(errorText(err));
|
|
31851
31858
|
}
|
|
@@ -31970,7 +31977,7 @@ var failIfNotEmptyParam = external_exports.boolean().optional().describe(
|
|
|
31970
31977
|
);
|
|
31971
31978
|
|
|
31972
31979
|
// ../gogcli-mcp/src/server.ts
|
|
31973
|
-
var VERSION = true ? "2.
|
|
31980
|
+
var VERSION = true ? "2.24.0" : "0.0.0";
|
|
31974
31981
|
|
|
31975
31982
|
// ../gogcli-mcp/src/auth-log.ts
|
|
31976
31983
|
var FAILURES = /* @__PURE__ */ new Set([
|
package/manifest.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"manifest_version": "0.3",
|
|
4
4
|
"name": "gogcli-mcp-docs",
|
|
5
5
|
"display_name": "gogcli (Docs)",
|
|
6
|
-
"version": "2.
|
|
6
|
+
"version": "2.24.0",
|
|
7
7
|
"description": "Extended Google Docs for Claude via gogcli — auth + full Docs and comments support",
|
|
8
8
|
"author": {
|
|
9
9
|
"name": "Chris Hall",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gogcli-mcp-docs",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.24.0",
|
|
4
4
|
"mcpName": "io.github.chrischall/gogcli-mcp-docs",
|
|
5
5
|
"description": "Extended Google Docs MCP server via gogcli — all base tools plus full Docs 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-docs"
|
|
9
9
|
},
|
|
10
|
-
"version": "2.
|
|
10
|
+
"version": "2.24.0",
|
|
11
11
|
"packages": [
|
|
12
12
|
{
|
|
13
13
|
"registryType": "npm",
|
|
14
14
|
"identifier": "gogcli-mcp-docs",
|
|
15
|
-
"version": "2.
|
|
15
|
+
"version": "2.24.0",
|
|
16
16
|
"transport": {
|
|
17
17
|
"type": "stdio"
|
|
18
18
|
},
|