@llmnesia/mcp 0.1.9 → 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,8 +2613,9 @@ 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) {
|
|
2617
|
-
|
|
2616
|
+
function stdioEntry(serve, includeTransportType) {
|
|
2617
|
+
const entry = { command: serve.command, args: serve.args, env: {} };
|
|
2618
|
+
return includeTransportType ? { type: "stdio", ...entry } : entry;
|
|
2618
2619
|
}
|
|
2619
2620
|
async function commandOnPath(name) {
|
|
2620
2621
|
try {
|
|
@@ -2881,7 +2882,7 @@ async function registerClaudeCode(serve, cli, configPath, confirm, now, prepareM
|
|
|
2881
2882
|
if (!prepareMissing) {
|
|
2882
2883
|
return { client: "Claude Code", action: "skipped", detail: "`claude` not found on PATH." };
|
|
2883
2884
|
}
|
|
2884
|
-
return registerJsonClient("Claude Code", configPath, serve, confirm, now, prepareMissing, true);
|
|
2885
|
+
return registerJsonClient("Claude Code", configPath, serve, confirm, now, prepareMissing, true, true);
|
|
2885
2886
|
}
|
|
2886
2887
|
let existing;
|
|
2887
2888
|
try {
|
|
@@ -3080,7 +3081,7 @@ codex mcp add ${SERVER_NAME} -- ${serve.command} ${serve.args.join(" ")}`
|
|
|
3080
3081
|
detail: `Ran: codex mcp add ${SERVER_NAME} -- ${serve.command} ${serve.args.join(" ")}`
|
|
3081
3082
|
};
|
|
3082
3083
|
}
|
|
3083
|
-
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) {
|
|
3084
3085
|
const configDirExists = await clientDirExists(configPath);
|
|
3085
3086
|
if (!configDirExists && !prepareMissing) {
|
|
3086
3087
|
return {
|
|
@@ -3111,7 +3112,7 @@ async function registerJsonClient(clientLabel, configPath, serve, confirm, now,
|
|
|
3111
3112
|
return { client: clientLabel, action: "error", detail: errorMessage(err) };
|
|
3112
3113
|
}
|
|
3113
3114
|
const already = servers[SERVER_NAME];
|
|
3114
|
-
const nextEntry = stdioEntry(serve);
|
|
3115
|
+
const nextEntry = stdioEntry(serve, includeTransportType);
|
|
3115
3116
|
if (already && JSON.stringify(already) === JSON.stringify(nextEntry)) {
|
|
3116
3117
|
return { client: clientLabel, action: "skipped", detail: `Already registered at ${configPath}.` };
|
|
3117
3118
|
}
|
|
@@ -3224,7 +3225,7 @@ async function writeCodexConfig(configPath, serve, now) {
|
|
|
3224
3225
|
}
|
|
3225
3226
|
function genericBlock(serve) {
|
|
3226
3227
|
return JSON.stringify(
|
|
3227
|
-
{ mcpServers: { [SERVER_NAME]: stdioEntry(serve) } },
|
|
3228
|
+
{ mcpServers: { [SERVER_NAME]: stdioEntry(serve, true) } },
|
|
3228
3229
|
null,
|
|
3229
3230
|
2
|
|
3230
3231
|
);
|
|
@@ -3260,7 +3261,7 @@ async function registerClients(options) {
|
|
|
3260
3261
|
results.push(
|
|
3261
3262
|
await safe(
|
|
3262
3263
|
"Claude Desktop",
|
|
3263
|
-
() => registerJsonClient("Claude Desktop", claudeDesktop, options.serve, options.confirm, now, prepareMissing)
|
|
3264
|
+
() => registerJsonClient("Claude Desktop", claudeDesktop, options.serve, options.confirm, now, prepareMissing, false, false)
|
|
3264
3265
|
)
|
|
3265
3266
|
);
|
|
3266
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.",
|