@ziggs-ai/ziggs-mcp 0.14.2 → 0.14.3
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/config.js +9 -2
- package/dist/index.js +0 -0
- package/package.json +2 -2
package/dist/config.js
CHANGED
|
@@ -32,7 +32,7 @@ function parseBoolFlag(raw) {
|
|
|
32
32
|
export function loadConfig() {
|
|
33
33
|
const raw = {
|
|
34
34
|
ZIGGS_API_URL: process.env.ZIGGS_API_URL,
|
|
35
|
-
HTTP_URL: process.env.
|
|
35
|
+
HTTP_URL: process.env.ZIGGS_API_URL ?? process.env.HTTP_URL,
|
|
36
36
|
ZIGGS_WEB_URL: process.env.ZIGGS_WEB_URL,
|
|
37
37
|
ZIGGS_OPERATOR_KEY: process.env.ZIGGS_OPERATOR_KEY,
|
|
38
38
|
ZIGGS_AGENT_ID: process.env.ZIGGS_AGENT_ID,
|
|
@@ -54,7 +54,14 @@ export function loadConfig() {
|
|
|
54
54
|
}
|
|
55
55
|
// api-client reads injected config, not the environment. This
|
|
56
56
|
// server owns its process, so it hands over whichever base URL it resolved.
|
|
57
|
-
|
|
57
|
+
//
|
|
58
|
+
// ZIGGS_API_URL beats HTTP_URL: the specific name wins over the generic one.
|
|
59
|
+
// dotenv loads whatever .env sits in the cwd, and a dev repo's
|
|
60
|
+
// HTTP_URL=http://localhost:3000 silently redirected a connector that was
|
|
61
|
+
// handed an explicit prod key — the caller who set ZIGGS_API_URL (or the
|
|
62
|
+
// hand-off block that does) is naming THIS server's target, and a bystander
|
|
63
|
+
// file must not override it.
|
|
64
|
+
const httpUrl = parsed.data.ZIGGS_API_URL || process.env.HTTP_URL;
|
|
58
65
|
if (httpUrl) {
|
|
59
66
|
process.env.HTTP_URL = httpUrl;
|
|
60
67
|
configureApiClient({ httpUrl });
|
package/dist/index.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ziggs-ai/ziggs-mcp",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.3",
|
|
4
4
|
"description": "MCP server for Claude Code, Cursor, and other MCP hosts — act as your Ziggs delegate agent",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
|
-
"build": "tsc -p tsconfig.json",
|
|
29
|
+
"build": "tsc -p tsconfig.json && chmod +x dist/index.js",
|
|
30
30
|
"prepack": "rm -rf dist && npm run build",
|
|
31
31
|
"start": "node dist/index.js",
|
|
32
32
|
"dev": "tsx src/index.ts",
|