@llmnesia/mcp 0.1.8 → 0.1.10
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.
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
__commonJS,
|
|
16
16
|
__require,
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-LA3BU5ZR.js";
|
|
19
19
|
|
|
20
20
|
// ../node_modules/isexe/windows.js
|
|
21
21
|
var require_windows = __commonJS({
|
|
@@ -2613,6 +2613,10 @@ import { promisify as promisify2 } from "util";
|
|
|
2613
2613
|
var execFileAsync2 = promisify2(execFile2);
|
|
2614
2614
|
var SERVER_NAME = "llmnesia";
|
|
2615
2615
|
var CODEX_APPROVAL_MODE = "writes";
|
|
2616
|
+
function stdioEntry(serve, includeTransportType) {
|
|
2617
|
+
const entry = { command: serve.command, args: serve.args, env: {} };
|
|
2618
|
+
return includeTransportType ? { type: "stdio", ...entry } : entry;
|
|
2619
|
+
}
|
|
2616
2620
|
async function commandOnPath(name) {
|
|
2617
2621
|
try {
|
|
2618
2622
|
const { stdout } = await execFileAsync2(process.platform === "win32" ? "where" : "which", [name]);
|
|
@@ -2878,7 +2882,7 @@ async function registerClaudeCode(serve, cli, configPath, confirm, now, prepareM
|
|
|
2878
2882
|
if (!prepareMissing) {
|
|
2879
2883
|
return { client: "Claude Code", action: "skipped", detail: "`claude` not found on PATH." };
|
|
2880
2884
|
}
|
|
2881
|
-
return registerJsonClient("Claude Code", configPath, serve, confirm, now, prepareMissing, true);
|
|
2885
|
+
return registerJsonClient("Claude Code", configPath, serve, confirm, now, prepareMissing, true, true);
|
|
2882
2886
|
}
|
|
2883
2887
|
let existing;
|
|
2884
2888
|
try {
|
|
@@ -3077,7 +3081,7 @@ codex mcp add ${SERVER_NAME} -- ${serve.command} ${serve.args.join(" ")}`
|
|
|
3077
3081
|
detail: `Ran: codex mcp add ${SERVER_NAME} -- ${serve.command} ${serve.args.join(" ")}`
|
|
3078
3082
|
};
|
|
3079
3083
|
}
|
|
3080
|
-
async function registerJsonClient(clientLabel, configPath, serve, confirm, now, prepareMissing = false, prepareWhenConfigAbsent = false) {
|
|
3084
|
+
async function registerJsonClient(clientLabel, configPath, serve, confirm, now, prepareMissing = false, prepareWhenConfigAbsent = false, includeTransportType = true) {
|
|
3081
3085
|
const configDirExists = await clientDirExists(configPath);
|
|
3082
3086
|
if (!configDirExists && !prepareMissing) {
|
|
3083
3087
|
return {
|
|
@@ -3108,7 +3112,7 @@ async function registerJsonClient(clientLabel, configPath, serve, confirm, now,
|
|
|
3108
3112
|
return { client: clientLabel, action: "error", detail: errorMessage(err) };
|
|
3109
3113
|
}
|
|
3110
3114
|
const already = servers[SERVER_NAME];
|
|
3111
|
-
const nextEntry =
|
|
3115
|
+
const nextEntry = stdioEntry(serve, includeTransportType);
|
|
3112
3116
|
if (already && JSON.stringify(already) === JSON.stringify(nextEntry)) {
|
|
3113
3117
|
return { client: clientLabel, action: "skipped", detail: `Already registered at ${configPath}.` };
|
|
3114
3118
|
}
|
|
@@ -3221,7 +3225,7 @@ async function writeCodexConfig(configPath, serve, now) {
|
|
|
3221
3225
|
}
|
|
3222
3226
|
function genericBlock(serve) {
|
|
3223
3227
|
return JSON.stringify(
|
|
3224
|
-
{ mcpServers: { [SERVER_NAME]:
|
|
3228
|
+
{ mcpServers: { [SERVER_NAME]: stdioEntry(serve, true) } },
|
|
3225
3229
|
null,
|
|
3226
3230
|
2
|
|
3227
3231
|
);
|
|
@@ -3257,7 +3261,7 @@ async function registerClients(options) {
|
|
|
3257
3261
|
results.push(
|
|
3258
3262
|
await safe(
|
|
3259
3263
|
"Claude Desktop",
|
|
3260
|
-
() => registerJsonClient("Claude Desktop", claudeDesktop, options.serve, options.confirm, now, prepareMissing)
|
|
3264
|
+
() => registerJsonClient("Claude Desktop", claudeDesktop, options.serve, options.confirm, now, prepareMissing, false, false)
|
|
3261
3265
|
)
|
|
3262
3266
|
);
|
|
3263
3267
|
}
|
package/dist/cli.js
CHANGED
|
@@ -3,7 +3,7 @@ import { createRequire as __llmnesiaCreateRequire } from "node:module";
|
|
|
3
3
|
const require = __llmnesiaCreateRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
VERSION
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LA3BU5ZR.js";
|
|
7
7
|
|
|
8
8
|
// src/nodeDownload.ts
|
|
9
9
|
var NODE_DOWNLOAD_URLS = {
|
|
@@ -141,7 +141,7 @@ async function bootstrap() {
|
|
|
141
141
|
await guideUnsupportedNodeVersion(process.versions.node);
|
|
142
142
|
return 1;
|
|
143
143
|
}
|
|
144
|
-
const { main } = await import("./cli-
|
|
144
|
+
const { main } = await import("./cli-VUTW2WGY.js");
|
|
145
145
|
return main();
|
|
146
146
|
}
|
|
147
147
|
bootstrap().then((code) => {
|
package/dist/mcp.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@llmnesia/mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"comment:mcpName": "The MCP Registry's ownership marker: it must equal server.json's `name`, and the namespace must match how you authenticate with mcp-publisher. `com.llmnesia/...` requires DNS auth (a TXT record on llmnesia.com) — see docs/MCP_INSTALLER_BOARD.md.",
|