@plur-ai/mcp 0.2.7 → 0.2.8
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// src/index.ts
|
|
4
|
-
var VERSION = "0.2.
|
|
4
|
+
var VERSION = "0.2.8";
|
|
5
5
|
var HELP = `plur-mcp v${VERSION} \u2014 persistent memory for AI agents
|
|
6
6
|
|
|
7
7
|
Usage:
|
|
@@ -37,15 +37,21 @@ if (arg === "--version" || arg === "-v") {
|
|
|
37
37
|
if (arg === "init") {
|
|
38
38
|
const { detectPlurStorage } = await import("@plur-ai/core");
|
|
39
39
|
const paths = detectPlurStorage();
|
|
40
|
+
let embeddingsAvailable = false;
|
|
41
|
+
try {
|
|
42
|
+
const mod = "@huggingface/transformers";
|
|
43
|
+
await import(
|
|
44
|
+
/* @vite-ignore */
|
|
45
|
+
mod
|
|
46
|
+
);
|
|
47
|
+
embeddingsAvailable = true;
|
|
48
|
+
} catch {
|
|
49
|
+
}
|
|
50
|
+
const searchMode = embeddingsAvailable ? "hybrid (BM25 + embeddings)" : "BM25 keyword search (embeddings not installed \u2014 install @huggingface/transformers for hybrid search)";
|
|
40
51
|
process.stdout.write(`PLUR initialized.
|
|
41
52
|
|
|
42
53
|
Storage: ${paths.root}
|
|
43
|
-
|
|
44
|
-
Files created:
|
|
45
|
-
${paths.engrams}
|
|
46
|
-
${paths.episodes}
|
|
47
|
-
${paths.config}
|
|
48
|
-
${paths.packs}/
|
|
54
|
+
Search: ${searchMode}
|
|
49
55
|
|
|
50
56
|
Next step \u2014 add to your MCP config:
|
|
51
57
|
|
|
@@ -69,7 +75,7 @@ if (arg === "init") {
|
|
|
69
75
|
process.exit(0);
|
|
70
76
|
}
|
|
71
77
|
if (arg === "serve" || arg === void 0) {
|
|
72
|
-
const { runStdio } = await import("./server-
|
|
78
|
+
const { runStdio } = await import("./server-QXWHRZ4G.js");
|
|
73
79
|
runStdio().catch((err) => {
|
|
74
80
|
console.error("Failed to start PLUR MCP server:", err);
|
|
75
81
|
process.exit(1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plur-ai/mcp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"plur-mcp": "dist/index.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@modelcontextprotocol/sdk": "^1.12.0",
|
|
15
15
|
"zod": "^3.23.0",
|
|
16
|
-
"@plur-ai/core": "0.2.
|
|
16
|
+
"@plur-ai/core": "0.2.8"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@types/node": "^25.5.0"
|