@plur-ai/mcp 0.9.7 → 0.9.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
|
@@ -5,7 +5,7 @@ import { existsSync, readFileSync, writeFileSync, mkdirSync, readdirSync, statSy
|
|
|
5
5
|
import { join } from "path";
|
|
6
6
|
import { fileURLToPath } from "url";
|
|
7
7
|
import { homedir } from "os";
|
|
8
|
-
var VERSION = "0.9.
|
|
8
|
+
var VERSION = "0.9.8";
|
|
9
9
|
var HELP = `plur-mcp v${VERSION} \u2014 persistent memory for AI agents
|
|
10
10
|
|
|
11
11
|
Usage:
|
|
@@ -277,7 +277,7 @@ if (arg === "init") {
|
|
|
277
277
|
process.exit(0);
|
|
278
278
|
}
|
|
279
279
|
if (arg === "serve" || arg === void 0) {
|
|
280
|
-
const { runStdio } = await import("./server-
|
|
280
|
+
const { runStdio } = await import("./server-4IHAOMXN.js");
|
|
281
281
|
runStdio().catch((err) => {
|
|
282
282
|
console.error("Failed to start PLUR MCP server:", err);
|
|
283
283
|
process.exit(1);
|
|
@@ -146,20 +146,25 @@ function getToolDefinitions() {
|
|
|
146
146
|
llm
|
|
147
147
|
};
|
|
148
148
|
try {
|
|
149
|
-
const
|
|
149
|
+
const engram = await plur.learnRouted(args.statement, context);
|
|
150
150
|
return {
|
|
151
|
-
id:
|
|
152
|
-
statement:
|
|
153
|
-
scope:
|
|
154
|
-
type:
|
|
155
|
-
pinned:
|
|
156
|
-
decision:
|
|
157
|
-
existing_id: result.existing_id,
|
|
158
|
-
tensions: result.tensions
|
|
151
|
+
id: engram.id,
|
|
152
|
+
statement: engram.statement,
|
|
153
|
+
scope: engram.scope,
|
|
154
|
+
type: engram.type,
|
|
155
|
+
pinned: engram.pinned === true,
|
|
156
|
+
decision: "ADD"
|
|
159
157
|
};
|
|
160
|
-
} catch {
|
|
158
|
+
} catch (err) {
|
|
161
159
|
const engram = plur.learn(args.statement, context);
|
|
162
|
-
return {
|
|
160
|
+
return {
|
|
161
|
+
id: engram.id,
|
|
162
|
+
statement: engram.statement,
|
|
163
|
+
scope: engram.scope,
|
|
164
|
+
type: engram.type,
|
|
165
|
+
decision: "ADD",
|
|
166
|
+
warning: `Remote write failed (${err.message}); fell back to local. The id above is the local placeholder \u2014 the canonical engram is NOT on the server.`
|
|
167
|
+
};
|
|
163
168
|
}
|
|
164
169
|
}
|
|
165
170
|
},
|
|
@@ -1419,7 +1424,7 @@ Include at least one engram_suggestion if ANYTHING was learned. An empty suggest
|
|
|
1419
1424
|
|
|
1420
1425
|
// src/server.ts
|
|
1421
1426
|
import { z } from "zod";
|
|
1422
|
-
var VERSION = "0.9.
|
|
1427
|
+
var VERSION = "0.9.8";
|
|
1423
1428
|
var INSTRUCTIONS = `PLUR is your persistent memory. Corrections, preferences, and conventions persist across sessions as engrams.
|
|
1424
1429
|
|
|
1425
1430
|
PLUR is a GLOBAL tool \u2014 one MCP server, one engram store (~/.plur/), available in every project. Multi-project scoping uses domain/scope fields on engrams, not separate installations.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plur-ai/mcp",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.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.9.
|
|
16
|
+
"@plur-ai/core": "0.9.8"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@types/node": "^25.5.0"
|