suppa-mcp-2 1.23.0 → 1.23.1
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/httpClient.js +10 -5
- package/package.json +1 -1
package/dist/httpClient.js
CHANGED
|
@@ -390,13 +390,18 @@ async function readResponse(res, rc) {
|
|
|
390
390
|
// The refresh that failed knows WHY it failed; without this the sentence
|
|
391
391
|
// was the same whether the session had aged out or the endpoint had
|
|
392
392
|
// moved — and only the first of those is fixed by signing in again.
|
|
393
|
+
// Each recorded reason already ends with ITS action — sign in again, or
|
|
394
|
+
// install a newer server. Appending the generic "Run suppa_login" to a
|
|
395
|
+
// diagnosis that just said signing in will not help is how a user ends up
|
|
396
|
+
// re-authenticating every fifteen minutes.
|
|
393
397
|
const why = lastRefreshError(ctx.host);
|
|
394
|
-
throw new Error(`HTTP 401 for tenant '${ctx.host}': the session could not be refreshed ` +
|
|
398
|
+
throw new Error(`HTTP 401 for tenant '${ctx.host}': the session could not be refreshed — ` +
|
|
395
399
|
(why
|
|
396
|
-
?
|
|
397
|
-
: "
|
|
398
|
-
|
|
399
|
-
|
|
400
|
+
? why
|
|
401
|
+
: "there is no stored session to refresh, or the platform rejected the " +
|
|
402
|
+
"refresh. Run suppa_login — or, if this tenant is configured through " +
|
|
403
|
+
"SUPPA_API_KEY, set a valid key") +
|
|
404
|
+
`. ${errorBody}`);
|
|
400
405
|
}
|
|
401
406
|
throw new Error(`HTTP ${code} ${safeStatusText(res)}: ${errorBody}`);
|
|
402
407
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "suppa-mcp-2",
|
|
3
|
-
"version": "1.23.
|
|
3
|
+
"version": "1.23.1",
|
|
4
4
|
"description": "MCP server for the Suppa platform (modern.suppa.me) — Tasks, Docs/Pages, Entities & Schema, Forms, Automations, and file attachments, with multi-tenant Google auth. Node port of PyPI suppa-mcp.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|