@a1-x-tech/mcp-google-sheets 1.1.1 → 1.1.2
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/dist/telemetry.js +6 -2
- package/dist/tools/auth.js +3 -0
- package/package.json +2 -2
package/dist/telemetry.js
CHANGED
|
@@ -135,10 +135,10 @@ const OUTCOME_PATTERNS = [
|
|
|
135
135
|
["error_timeout", /timed?[ _-]?out|таймаут|ETIMEDOUT|AbortError|не был готов|not ready/i],
|
|
136
136
|
["error_network", /ECONNRESET|ECONNREFUSED|ENOTFOUND|EAI_AGAIN|EPIPE|fetch failed|socket hang up/i],
|
|
137
137
|
["error_rate_limit", /\b429\b|rate[ _-]?limit|too many requests|quota|квот|лимит|\[(?:56|152|506|9000)\]/i],
|
|
138
|
-
["error_permission", /нет доступа к кабинету|не подключ[её]н к
|
|
138
|
+
["error_permission", /нет доступа к кабинету|не подключ[её]н к аккаунту|accessNotConfigured|SERVICE_DISABLED/i],
|
|
139
139
|
[
|
|
140
140
|
"error_auth",
|
|
141
|
-
/\b401\b|unauthori[sz]ed|unauthenticated|invalid[ _-]?(?:token|grant|credentials)|token (?:expired|revoked)|login required|AuthRequired|авториз|не подключ|\[53\]/i,
|
|
141
|
+
/\b401\b|unauthori[sz]ed|unauthenticated|invalid[ _-]?(?:token|grant|credentials)|token (?:expired|revoked)|login required|AuthRequired|OAuthError|авториз|не подключ|\[53\]/i,
|
|
142
142
|
],
|
|
143
143
|
["error_permission", /\b403\b|forbidden|access[ _-]?denied|permission|insufficient[ _-]?scope|нет доступа|\[(?:54|3228)\]/i],
|
|
144
144
|
["error_not_found", /\b404\b|not[ _-]?found|не найден|не существует|\[8800\]/i],
|
|
@@ -248,6 +248,10 @@ function jsBug(err) {
|
|
|
248
248
|
function errorText(err) {
|
|
249
249
|
if (!(err instanceof Error) || "errno" in err || "syscall" in err)
|
|
250
250
|
return undefined;
|
|
251
|
+
// OAuthError's code is a fixed OAuth/Google vocabulary (invalid_grant, accessNotConfigured), not user data.
|
|
252
|
+
const code = err.code;
|
|
253
|
+
if (err.name === "OAuthError" && typeof code === "string" && /^[A-Za-z_]{2,40}$/.test(code))
|
|
254
|
+
return `OAuthError ${code}`;
|
|
251
255
|
return /^[A-Z][A-Za-z0-9]*(?:Error|Exception)$/.test(err.name) && err.name !== "Error" ? err.name : undefined;
|
|
252
256
|
}
|
|
253
257
|
/**
|
package/dist/tools/auth.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { registerGoogleAuth, TokenProvider, unconfiguredPrefix, } from "@a1-x-tech/mcp-google-auth";
|
|
2
|
+
import { fail } from "./util.js";
|
|
2
3
|
/**
|
|
3
4
|
* The scopes an in-chat login requests (the per-task table lives in
|
|
4
5
|
* docs/TOOLS.md). The component always adds the identity scopes on top.
|
|
@@ -17,6 +18,8 @@ export const AUTH_OPTIONS = {
|
|
|
17
18
|
serverName: "sheets",
|
|
18
19
|
envPrefix: "GOOGLE_SHEETS",
|
|
19
20
|
scopes: LOGIN_SCOPES,
|
|
21
|
+
// Login-tool failures go through the server's own renderer, so telemetry gets their origin.
|
|
22
|
+
fail,
|
|
20
23
|
};
|
|
21
24
|
/**
|
|
22
25
|
* Registers the six onboarding tools (auth_status, setup_instructions,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@a1-x-tech/mcp-google-sheets",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "MCP server for the Google Sheets API — search spreadsheets, read and write ranges, manage sheets, formatting, validation, protected ranges, tables, charts and sharing. For Claude, Cursor, Codex and other AI clients.",
|
|
5
5
|
"mcpName": "io.github.A1-x-Tech/mcp-google-sheets",
|
|
6
6
|
"type": "module",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"url": "https://github.com/A1-x-Tech/mcp-google-sheets/issues"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@a1-x-tech/mcp-google-auth": "^0.1.
|
|
55
|
+
"@a1-x-tech/mcp-google-auth": "^0.1.2",
|
|
56
56
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
57
57
|
"zod": "^3.25.0"
|
|
58
58
|
},
|