@xuanling-rs/xuanling-mcp 0.2.10 → 0.3.1
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/README-ZH.md +2 -2
- package/README.md +2 -2
- package/lib/launcher.js +8 -0
- package/package.json +5 -5
package/README-ZH.md
CHANGED
|
@@ -11,7 +11,7 @@ proposal-first SQLite Memory。
|
|
|
11
11
|
启动器要求 Node.js 18.17 或更高版本。
|
|
12
12
|
|
|
13
13
|
```sh
|
|
14
|
-
npm install --global @xuanling-rs/xuanling-mcp@0.
|
|
14
|
+
npm install --global @xuanling-rs/xuanling-mcp@0.3.1
|
|
15
15
|
xuanling-mcp --version
|
|
16
16
|
```
|
|
17
17
|
|
|
@@ -24,7 +24,7 @@ MCP Client 也可以使用 `npx` 固定版本:
|
|
|
24
24
|
"command": "npx",
|
|
25
25
|
"args": [
|
|
26
26
|
"-y",
|
|
27
|
-
"@xuanling-rs/xuanling-mcp@0.
|
|
27
|
+
"@xuanling-rs/xuanling-mcp@0.3.1",
|
|
28
28
|
"--workspace-root",
|
|
29
29
|
"/absolute/path/to/project",
|
|
30
30
|
"--tool-profile",
|
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ SQLite memory.
|
|
|
12
12
|
The launcher requires Node.js 18.17 or newer.
|
|
13
13
|
|
|
14
14
|
```sh
|
|
15
|
-
npm install --global @xuanling-rs/xuanling-mcp@0.
|
|
15
|
+
npm install --global @xuanling-rs/xuanling-mcp@0.3.1
|
|
16
16
|
xuanling-mcp --version
|
|
17
17
|
```
|
|
18
18
|
|
|
@@ -25,7 +25,7 @@ MCP clients can also pin the version with `npx`:
|
|
|
25
25
|
"command": "npx",
|
|
26
26
|
"args": [
|
|
27
27
|
"-y",
|
|
28
|
-
"@xuanling-rs/xuanling-mcp@0.
|
|
28
|
+
"@xuanling-rs/xuanling-mcp@0.3.1",
|
|
29
29
|
"--workspace-root",
|
|
30
30
|
"/absolute/path/to/project",
|
|
31
31
|
"--tool-profile",
|
package/lib/launcher.js
CHANGED
|
@@ -13,6 +13,7 @@ import path from "node:path";
|
|
|
13
13
|
import { detectTarget } from "./targets.js";
|
|
14
14
|
|
|
15
15
|
const require = createRequire(import.meta.url);
|
|
16
|
+
const launcherPackage = require("../package.json");
|
|
16
17
|
|
|
17
18
|
export function resolveNativeBinary(
|
|
18
19
|
target,
|
|
@@ -20,6 +21,7 @@ export function resolveNativeBinary(
|
|
|
20
21
|
existsSync = nodeExistsSync,
|
|
21
22
|
readFileSync = nodeReadFileSync,
|
|
22
23
|
resolvePackageJson = (specifier) => require.resolve(specifier),
|
|
24
|
+
launcherVersion = launcherPackage.version,
|
|
23
25
|
} = {},
|
|
24
26
|
) {
|
|
25
27
|
let packageJsonPath;
|
|
@@ -32,6 +34,12 @@ export function resolveNativeBinary(
|
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
const packageJson = JSON.parse(readFileSync(packageJsonPath, "utf8"));
|
|
37
|
+
const expectedNativeVersion = `${launcherVersion}-${target.id ?? target.rustTarget}`;
|
|
38
|
+
if (packageJson.version !== expectedNativeVersion) {
|
|
39
|
+
throw new Error(
|
|
40
|
+
`Native package version mismatch: launcher ${launcherVersion} requires ${expectedNativeVersion}, found ${packageJson.version ?? "unknown"}`,
|
|
41
|
+
);
|
|
42
|
+
}
|
|
35
43
|
const metadata = packageJson.xuanlingBinary;
|
|
36
44
|
if (
|
|
37
45
|
metadata?.target !== target.rustTarget ||
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xuanling-rs/xuanling-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Cross-platform stdio MCP server for XuanLing typed filesystem, process, project, artifact, session, and memory tools.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "umbrella22 and XuanLing contributors",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"directory": "npm/packages/xuanling-mcp"
|
|
36
36
|
},
|
|
37
37
|
"optionalDependencies": {
|
|
38
|
-
"xuanling-mcp-darwin-arm64": "npm:@xuanling-rs/xuanling-mcp-darwin-arm64@0.
|
|
39
|
-
"xuanling-mcp-linux-x64-gnu": "npm:@xuanling-rs/xuanling-mcp-linux-x64-gnu@0.
|
|
40
|
-
"xuanling-mcp-win32-x64-msvc": "npm:@xuanling-rs/xuanling-mcp-win32-x64-msvc@0.
|
|
38
|
+
"xuanling-mcp-darwin-arm64": "npm:@xuanling-rs/xuanling-mcp-darwin-arm64@0.3.1-darwin-arm64",
|
|
39
|
+
"xuanling-mcp-linux-x64-gnu": "npm:@xuanling-rs/xuanling-mcp-linux-x64-gnu@0.3.1-linux-x64-gnu",
|
|
40
|
+
"xuanling-mcp-win32-x64-msvc": "npm:@xuanling-rs/xuanling-mcp-win32-x64-msvc@0.3.1-win32-x64-msvc"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
"registry": "https://registry.npmjs.org"
|
|
46
46
|
},
|
|
47
47
|
"xuanlingRelease": {
|
|
48
|
-
"sourceCommit": "
|
|
48
|
+
"sourceCommit": "df27d2e962d33731e4beba44f23ed1fd58adaae6"
|
|
49
49
|
}
|
|
50
50
|
}
|