@pairsystems/goodmem-mcp 0.1.16 → 0.1.17
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/index.js +9 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -20988,7 +20988,7 @@ var StdioServerTransport = class {
|
|
|
20988
20988
|
// dist/index.js
|
|
20989
20989
|
var goodmemBaseUrl = process.env.GOODMEM_BASE_URL || "";
|
|
20990
20990
|
var goodmemApiKey = process.env.GOODMEM_API_KEY || "";
|
|
20991
|
-
var BASED_ON_GOODMEM_COMMIT = "
|
|
20991
|
+
var BASED_ON_GOODMEM_COMMIT = "d15028640e4a884f3a648db9b25aee4cdfab719d";
|
|
20992
20992
|
function isConfigured() {
|
|
20993
20993
|
return goodmemBaseUrl !== "";
|
|
20994
20994
|
}
|
|
@@ -21876,7 +21876,7 @@ function autoInferFromRegistry(registryType, args) {
|
|
|
21876
21876
|
}
|
|
21877
21877
|
var server = new McpServer({
|
|
21878
21878
|
name: "goodmem",
|
|
21879
|
-
version: "0.1.
|
|
21879
|
+
version: "0.1.17"
|
|
21880
21880
|
});
|
|
21881
21881
|
server.tool("goodmem_configure", "Configure GoodMem server connection. Call this before using other GoodMem tools if GOODMEM_BASE_URL and GOODMEM_API_KEY environment variables are not set. Session credentials override environment variables. For bootstrap workflows that need to call /v1/system/info or /v1/system/init before keys exist, api_key may be omitted; most other tools will return AuthenticationException until a real key is provided.", {
|
|
21882
21882
|
base_url: external_exports.string().describe("GoodMem server URL (e.g., https://your-server.example.com)"),
|
|
@@ -21958,7 +21958,7 @@ ${allModels.join("\n")}` }] };
|
|
|
21958
21958
|
});
|
|
21959
21959
|
server.tool("goodmem_client_info", "Return the MCP client package version and the goodmem server commit it was built against. No server connection required.", {}, async () => {
|
|
21960
21960
|
return { content: [{ type: "text", text: JSON.stringify({
|
|
21961
|
-
mcp_version: "0.1.
|
|
21961
|
+
mcp_version: "0.1.17",
|
|
21962
21962
|
based_on_goodmem_commit: BASED_ON_GOODMEM_COMMIT
|
|
21963
21963
|
}, null, 2) }] };
|
|
21964
21964
|
});
|
|
@@ -23296,14 +23296,18 @@ async function healthCheck() {
|
|
|
23296
23296
|
}
|
|
23297
23297
|
try {
|
|
23298
23298
|
const url = _buildUrl(goodmemBaseUrl, "/v1/system/info");
|
|
23299
|
+
const healthHeaders = {};
|
|
23300
|
+
if (goodmemApiKey !== "") {
|
|
23301
|
+
healthHeaders["x-api-key"] = goodmemApiKey;
|
|
23302
|
+
}
|
|
23299
23303
|
const resp = await fetch(url.toString(), {
|
|
23300
|
-
headers:
|
|
23304
|
+
headers: healthHeaders,
|
|
23301
23305
|
signal: AbortSignal.timeout(1e4),
|
|
23302
23306
|
// See callApi for the redirect-policy rationale.
|
|
23303
23307
|
redirect: "error"
|
|
23304
23308
|
});
|
|
23305
23309
|
if (resp.ok) {
|
|
23306
|
-
const info = await resp.json();
|
|
23310
|
+
const info = await resp.json().catch(() => ({}));
|
|
23307
23311
|
console.error(`[goodmem-mcp] Connected to ${goodmemBaseUrl} (server ${info.version ?? "unknown"}).`);
|
|
23308
23312
|
} else {
|
|
23309
23313
|
const text = await resp.text();
|