@systemdox/mcp-server 0.1.27 → 0.1.28
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 +7 -9
- package/dist/http.js +1 -1
- package/dist/index.js +6 -8
- package/dist/lib/config.d.ts +6 -3
- package/dist/lib/config.js +5 -7
- package/package.json +1 -1
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
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
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
|
|
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.
|
|
2003
|
+
SERVER_VERSION = true ? "0.1.28" : "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.
|
|
1828
|
+
var SERVER_VERSION = true ? "0.1.28" : "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
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
|
|
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.
|
|
1829
|
+
var SERVER_VERSION = true ? "0.1.28" : "0.0.0-dev";
|
|
1832
1830
|
function createServer(apiClient2) {
|
|
1833
1831
|
const server2 = new McpServer({
|
|
1834
1832
|
name: "systemdox-mcp-server",
|
package/dist/lib/config.d.ts
CHANGED
|
@@ -10,9 +10,12 @@ export declare const API_URL_DEFAULT = "https://api.puglieseweb.com/systemdox";
|
|
|
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
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
13
|
+
* The pin has NO exceptions, loopback included. A carve-out was tried and
|
|
14
|
+
* removed: it existed only because the release gate stood up a plain-http stub,
|
|
15
|
+
* and #1044 gave that stub TLS, so nothing in CI needs it. Local development
|
|
16
|
+
* against a local API should point at an https origin — the gate's per-run
|
|
17
|
+
* self-signed cert is a worked example. An exception in the shipped product to
|
|
18
|
+
* spare a dev a certificate is not a trade worth making.
|
|
16
19
|
*/
|
|
17
20
|
export declare function requireHttpsApiUrl(apiUrl: string): string;
|
|
18
21
|
export declare function loadConfig(): ServerConfig;
|
package/dist/lib/config.js
CHANGED
|
@@ -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
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
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.
|
|
3
|
+
"version": "0.1.28",
|
|
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",
|