zola-mcp 1.3.0 → 1.3.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/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/dist/auth.js +4 -21
- package/dist/bundle.js +2458 -1214
- package/dist/client.js +11 -54
- package/dist/index.js +19 -18
- package/dist/types.js +13 -6
- package/package.json +4 -3
- package/server.json +2 -2
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
},
|
|
8
8
|
"metadata": {
|
|
9
9
|
"description": "Zola wedding planning tools for Claude Code",
|
|
10
|
-
"version": "1.3.
|
|
10
|
+
"version": "1.3.2"
|
|
11
11
|
},
|
|
12
12
|
"plugins": [
|
|
13
13
|
{
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"displayName": "Zola",
|
|
16
16
|
"source": "./",
|
|
17
17
|
"description": "Zola wedding planning tools for Claude — vendors, budget, guests, seating, events, registry, inquiries, and more via MCP",
|
|
18
|
-
"version": "1.3.
|
|
18
|
+
"version": "1.3.2",
|
|
19
19
|
"author": {
|
|
20
20
|
"name": "Chris Chall"
|
|
21
21
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zola",
|
|
3
3
|
"displayName": "Zola",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.2",
|
|
5
5
|
"description": "Zola wedding planning tools for Claude — vendors, budget, guests, seating, events, registry, inquiries, and more via MCP",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Chris Chall",
|
package/dist/auth.js
CHANGED
|
@@ -45,29 +45,12 @@
|
|
|
45
45
|
// returns the JWT plus the source — callers (the client) treat the
|
|
46
46
|
// return value as opaque credentials.
|
|
47
47
|
import { bootstrap } from '@fetchproxy/bootstrap';
|
|
48
|
-
import { classifyBridgeError } from '@fetchproxy
|
|
48
|
+
import { classifyBridgeError } from '@chrischall/mcp-utils/fetchproxy';
|
|
49
|
+
import { readEnvVar } from '@chrischall/mcp-utils';
|
|
49
50
|
import pkg from '../package.json' with { type: 'json' };
|
|
50
|
-
/**
|
|
51
|
-
* Read an env var, trim, and treat blank / `${UNEXPANDED}` placeholders as
|
|
52
|
-
* unset. Defends against MCP hosts that pass `.mcp.json` env blocks through
|
|
53
|
-
* without variable expansion.
|
|
54
|
-
*/
|
|
55
|
-
function readEnv(key) {
|
|
56
|
-
const raw = process.env[key];
|
|
57
|
-
if (typeof raw !== 'string')
|
|
58
|
-
return undefined;
|
|
59
|
-
const trimmed = raw.trim();
|
|
60
|
-
if (trimmed.length === 0)
|
|
61
|
-
return undefined;
|
|
62
|
-
if (trimmed === 'undefined' || trimmed === 'null')
|
|
63
|
-
return undefined;
|
|
64
|
-
if (/^\$\{[^}]*\}$/.test(trimmed))
|
|
65
|
-
return undefined;
|
|
66
|
-
return trimmed;
|
|
67
|
-
}
|
|
68
51
|
/** True if the user has explicitly disabled the fetchproxy fallback. */
|
|
69
52
|
function fetchproxyDisabled() {
|
|
70
|
-
const raw =
|
|
53
|
+
const raw = readEnvVar('ZOLA_DISABLE_FETCHPROXY');
|
|
71
54
|
if (raw === undefined)
|
|
72
55
|
return false;
|
|
73
56
|
return ['1', 'true', 'yes', 'on'].includes(raw.toLowerCase());
|
|
@@ -82,7 +65,7 @@ function fetchproxyDisabled() {
|
|
|
82
65
|
*/
|
|
83
66
|
export async function resolveRefreshToken() {
|
|
84
67
|
// ── Path 1: env-var refresh token (unchanged from pre-fetchproxy behavior).
|
|
85
|
-
const envToken =
|
|
68
|
+
const envToken = readEnvVar('ZOLA_REFRESH_TOKEN');
|
|
86
69
|
if (envToken) {
|
|
87
70
|
return { token: envToken, source: 'env' };
|
|
88
71
|
}
|