@systemdox/mcp-server
Advanced tools
+1
-1
@@ -1828,3 +1828,3 @@ #!/usr/bin/env node | ||
| // src/server.ts | ||
| var SERVER_VERSION = true ? "0.1.25" : "0.0.0-dev"; | ||
| var SERVER_VERSION = true ? "0.1.26" : "0.0.0-dev"; | ||
| function createServer(apiClient) { | ||
@@ -1831,0 +1831,0 @@ const server = new McpServer({ |
+6
-8
@@ -8,3 +8,2 @@ #!/usr/bin/env node | ||
| var API_URL_DEFAULT = "https://api.puglieseweb.com/systemdox"; | ||
| var LOOPBACK_HOSTS = /* @__PURE__ */ new Set(["localhost", "127.0.0.1", "[::1]", "::1"]); | ||
| function requireHttpsApiUrl(apiUrl) { | ||
@@ -19,9 +18,8 @@ let parsed; | ||
| } | ||
| if (parsed.protocol === "https:") return apiUrl; | ||
| if (parsed.protocol === "http:" && LOOPBACK_HOSTS.has(parsed.hostname)) { | ||
| return apiUrl; | ||
| if (parsed.protocol !== "https:") { | ||
| throw new Error( | ||
| `SYSTEMDOX_API_URL must use https:// \u2014 refusing to send the API key over ${parsed.protocol}// in cleartext. Got: ${apiUrl}` | ||
| ); | ||
| } | ||
| throw new Error( | ||
| `SYSTEMDOX_API_URL must use https:// \u2014 refusing to send the API key over ${parsed.protocol}// in cleartext. Got: ${apiUrl}` | ||
| ); | ||
| return apiUrl; | ||
| } | ||
@@ -1833,3 +1831,3 @@ function loadConfig() { | ||
| // src/server.ts | ||
| var SERVER_VERSION = true ? "0.1.25" : "0.0.0-dev"; | ||
| var SERVER_VERSION = true ? "0.1.26" : "0.0.0-dev"; | ||
| function createServer(apiClient2) { | ||
@@ -1836,0 +1834,0 @@ const server2 = new McpServer({ |
@@ -12,8 +12,4 @@ export interface ServerConfig { | ||
| * cleartext. Reject rather than downgrade. Returns the URL unchanged when valid. | ||
| * | ||
| * http://localhost is allowed: see LOOPBACK_HOSTS. Local development and the | ||
| * MCP release gate (scripts/mcp-release-gate.mjs, which boots the published | ||
| * server against an http stub on 127.0.0.1) both depend on it. | ||
| */ | ||
| export declare function requireHttpsApiUrl(apiUrl: string): string; | ||
| export declare function loadConfig(): ServerConfig; |
@@ -5,3 +5,2 @@ #!/usr/bin/env node | ||
| var API_URL_DEFAULT = "https://api.puglieseweb.com/systemdox"; | ||
| var LOOPBACK_HOSTS = /* @__PURE__ */ new Set(["localhost", "127.0.0.1", "[::1]", "::1"]); | ||
| function requireHttpsApiUrl(apiUrl) { | ||
@@ -16,9 +15,8 @@ let parsed; | ||
| } | ||
| if (parsed.protocol === "https:") return apiUrl; | ||
| if (parsed.protocol === "http:" && LOOPBACK_HOSTS.has(parsed.hostname)) { | ||
| return apiUrl; | ||
| if (parsed.protocol !== "https:") { | ||
| throw new Error( | ||
| `SYSTEMDOX_API_URL must use https:// \u2014 refusing to send the API key over ${parsed.protocol}// in cleartext. Got: ${apiUrl}` | ||
| ); | ||
| } | ||
| throw new Error( | ||
| `SYSTEMDOX_API_URL must use https:// \u2014 refusing to send the API key over ${parsed.protocol}// in cleartext. Got: ${apiUrl}` | ||
| ); | ||
| return apiUrl; | ||
| } | ||
@@ -25,0 +23,0 @@ function loadConfig() { |
+1
-1
| { | ||
| "name": "@systemdox/mcp-server", | ||
| "version": "0.1.25", | ||
| "version": "0.1.26", | ||
| "mcpName": "io.github.puglieseweb/systemdox", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is too big to display
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
245874
-0.31%7285
-0.14%17
6.25%