@systemdox/mcp-server 0.1.25 → 0.1.26

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/cli.js CHANGED
@@ -19,13 +19,12 @@ function requireHttpsApiUrl(apiUrl) {
19
19
  `SYSTEMDOX_API_URL is not a valid URL: ${apiUrl}`
20
20
  );
21
21
  }
22
- if (parsed.protocol === "https:") return apiUrl;
23
- if (parsed.protocol === "http:" && LOOPBACK_HOSTS.has(parsed.hostname)) {
24
- return apiUrl;
22
+ if (parsed.protocol !== "https:") {
23
+ throw new Error(
24
+ `SYSTEMDOX_API_URL must use https:// \u2014 refusing to send the API key over ${parsed.protocol}// in cleartext. Got: ${apiUrl}`
25
+ );
25
26
  }
26
- throw new Error(
27
- `SYSTEMDOX_API_URL must use https:// \u2014 refusing to send the API key over ${parsed.protocol}// in cleartext. Got: ${apiUrl}`
28
- );
27
+ return apiUrl;
29
28
  }
30
29
  function loadConfig() {
31
30
  const apiKey = process.env.SYSTEMDOX_API_KEY;
@@ -44,12 +43,11 @@ function loadConfig() {
44
43
  defaultOrg: process.env.SYSTEMDOX_DEFAULT_ORG
45
44
  };
46
45
  }
47
- var API_URL_DEFAULT, LOOPBACK_HOSTS;
46
+ var API_URL_DEFAULT;
48
47
  var init_config = __esm({
49
48
  "src/lib/config.ts"() {
50
49
  "use strict";
51
50
  API_URL_DEFAULT = "https://api.puglieseweb.com/systemdox";
52
- LOOPBACK_HOSTS = /* @__PURE__ */ new Set(["localhost", "127.0.0.1", "[::1]", "::1"]);
53
51
  }
54
52
  });
55
53
 
@@ -2002,7 +2000,7 @@ var init_server = __esm({
2002
2000
  init_create_project_rule();
2003
2001
  init_get_prompt_templates();
2004
2002
  init_create_prompt_template();
2005
- SERVER_VERSION = true ? "0.1.25" : "0.0.0-dev";
2003
+ SERVER_VERSION = true ? "0.1.26" : "0.0.0-dev";
2006
2004
  }
2007
2005
  });
2008
2006
 
package/dist/http.js CHANGED
@@ -1825,7 +1825,7 @@ function registerCreatePromptTemplate(server, apiClient) {
1825
1825
  }
1826
1826
 
1827
1827
  // src/server.ts
1828
- var SERVER_VERSION = true ? "0.1.25" : "0.0.0-dev";
1828
+ var SERVER_VERSION = true ? "0.1.26" : "0.0.0-dev";
1829
1829
  function createServer(apiClient) {
1830
1830
  const server = new McpServer({
1831
1831
  name: "systemdox-mcp-server",
package/dist/index.js CHANGED
@@ -5,7 +5,6 @@ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"
5
5
 
6
6
  // src/lib/config.ts
7
7
  var API_URL_DEFAULT = "https://api.puglieseweb.com/systemdox";
8
- var LOOPBACK_HOSTS = /* @__PURE__ */ new Set(["localhost", "127.0.0.1", "[::1]", "::1"]);
9
8
  function requireHttpsApiUrl(apiUrl) {
10
9
  let parsed;
11
10
  try {
@@ -15,13 +14,12 @@ function requireHttpsApiUrl(apiUrl) {
15
14
  `SYSTEMDOX_API_URL is not a valid URL: ${apiUrl}`
16
15
  );
17
16
  }
18
- if (parsed.protocol === "https:") return apiUrl;
19
- if (parsed.protocol === "http:" && LOOPBACK_HOSTS.has(parsed.hostname)) {
20
- return apiUrl;
17
+ if (parsed.protocol !== "https:") {
18
+ throw new Error(
19
+ `SYSTEMDOX_API_URL must use https:// \u2014 refusing to send the API key over ${parsed.protocol}// in cleartext. Got: ${apiUrl}`
20
+ );
21
21
  }
22
- throw new Error(
23
- `SYSTEMDOX_API_URL must use https:// \u2014 refusing to send the API key over ${parsed.protocol}// in cleartext. Got: ${apiUrl}`
24
- );
22
+ return apiUrl;
25
23
  }
26
24
  function loadConfig() {
27
25
  const apiKey = process.env.SYSTEMDOX_API_KEY;
@@ -1828,7 +1826,7 @@ function registerCreatePromptTemplate(server2, apiClient2) {
1828
1826
  }
1829
1827
 
1830
1828
  // src/server.ts
1831
- var SERVER_VERSION = true ? "0.1.25" : "0.0.0-dev";
1829
+ var SERVER_VERSION = true ? "0.1.26" : "0.0.0-dev";
1832
1830
  function createServer(apiClient2) {
1833
1831
  const server2 = new McpServer({
1834
1832
  name: "systemdox-mcp-server",
@@ -9,10 +9,6 @@ export declare const API_URL_DEFAULT = "https://api.puglieseweb.com/systemdox";
9
9
  * Fail closed on a non-https API URL. The API key travels as a bearer token in
10
10
  * the Authorization header on every request, so an http:// URL would leak it in
11
11
  * cleartext. Reject rather than downgrade. Returns the URL unchanged when valid.
12
- *
13
- * http://localhost is allowed: see LOOPBACK_HOSTS. Local development and the
14
- * MCP release gate (scripts/mcp-release-gate.mjs, which boots the published
15
- * server against an http stub on 127.0.0.1) both depend on it.
16
12
  */
17
13
  export declare function requireHttpsApiUrl(apiUrl: string): string;
18
14
  export declare function loadConfig(): ServerConfig;
@@ -2,7 +2,6 @@
2
2
 
3
3
  // src/lib/config.ts
4
4
  var API_URL_DEFAULT = "https://api.puglieseweb.com/systemdox";
5
- var LOOPBACK_HOSTS = /* @__PURE__ */ new Set(["localhost", "127.0.0.1", "[::1]", "::1"]);
6
5
  function requireHttpsApiUrl(apiUrl) {
7
6
  let parsed;
8
7
  try {
@@ -12,13 +11,12 @@ function requireHttpsApiUrl(apiUrl) {
12
11
  `SYSTEMDOX_API_URL is not a valid URL: ${apiUrl}`
13
12
  );
14
13
  }
15
- if (parsed.protocol === "https:") return apiUrl;
16
- if (parsed.protocol === "http:" && LOOPBACK_HOSTS.has(parsed.hostname)) {
17
- return apiUrl;
14
+ if (parsed.protocol !== "https:") {
15
+ throw new Error(
16
+ `SYSTEMDOX_API_URL must use https:// \u2014 refusing to send the API key over ${parsed.protocol}// in cleartext. Got: ${apiUrl}`
17
+ );
18
18
  }
19
- throw new Error(
20
- `SYSTEMDOX_API_URL must use https:// \u2014 refusing to send the API key over ${parsed.protocol}// in cleartext. Got: ${apiUrl}`
21
- );
19
+ return apiUrl;
22
20
  }
23
21
  function loadConfig() {
24
22
  const apiKey = process.env.SYSTEMDOX_API_KEY;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@systemdox/mcp-server",
3
- "version": "0.1.25",
3
+ "version": "0.1.26",
4
4
  "mcpName": "io.github.puglieseweb/systemdox",
5
5
  "type": "module",
6
6
  "description": "Give AI coding agents your architecture context over MCP — checks, specs, ADRs, project rules, and docs from SystemDox, delivered at write time",