@plur-ai/mcp 0.9.4 → 0.9.6
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.6";
|
|
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-X7JKNGYK.js");
|
|
281
281
|
runStdio().catch((err) => {
|
|
282
282
|
console.error("Failed to start PLUR MCP server:", err);
|
|
283
283
|
process.exit(1);
|
|
@@ -1053,24 +1053,38 @@ Include at least one engram_suggestion if ANYTHING was learned. An empty suggest
|
|
|
1053
1053
|
},
|
|
1054
1054
|
{
|
|
1055
1055
|
name: "plur_stores_add",
|
|
1056
|
-
description: "Register an additional engram store
|
|
1056
|
+
description: "Register an additional engram store. Either filesystem (path) or remote (url+token, e.g. PLUR Enterprise).",
|
|
1057
1057
|
annotations: { title: "Add store", destructiveHint: false, idempotentHint: true },
|
|
1058
1058
|
inputSchema: {
|
|
1059
1059
|
type: "object",
|
|
1060
1060
|
properties: {
|
|
1061
|
-
path: { type: "string", description: "Filesystem path to engrams.yaml" },
|
|
1062
|
-
|
|
1063
|
-
|
|
1061
|
+
path: { type: "string", description: "Filesystem path to engrams.yaml (omit if registering a remote store)" },
|
|
1062
|
+
url: { type: "string", description: "Remote store base URL, e.g. https://plur.datafund.io/sse \u2014 pair with token" },
|
|
1063
|
+
token: { type: "string", description: "Bearer token (JWT or plur_sk_... API key) for remote stores" },
|
|
1064
|
+
scope: { type: "string", description: "Scope identifier (e.g. space:1-datafund, group:plur/plur-ai/engineering)" },
|
|
1065
|
+
shared: { type: "boolean", description: "Whether this store is git-committed / team-visible (remote stores default true)" },
|
|
1064
1066
|
readonly: { type: "boolean", description: "Whether this store is read-only (e.g. purchased packs)" }
|
|
1065
1067
|
},
|
|
1066
|
-
required: ["
|
|
1068
|
+
required: ["scope"]
|
|
1067
1069
|
},
|
|
1068
1070
|
handler: async (args, plur) => {
|
|
1069
|
-
|
|
1071
|
+
const path = args.path;
|
|
1072
|
+
const url = args.url;
|
|
1073
|
+
const token = args.token;
|
|
1074
|
+
if (!path && !url) return { error: "Either path or url must be provided" };
|
|
1075
|
+
if (path && url) return { error: "Provide path OR url, not both" };
|
|
1076
|
+
plur.addStore(path ?? "", args.scope, {
|
|
1070
1077
|
shared: args.shared,
|
|
1071
|
-
readonly: args.readonly
|
|
1078
|
+
readonly: args.readonly,
|
|
1079
|
+
url,
|
|
1080
|
+
token
|
|
1072
1081
|
});
|
|
1073
|
-
return {
|
|
1082
|
+
return {
|
|
1083
|
+
success: true,
|
|
1084
|
+
...path ? { path } : { url },
|
|
1085
|
+
scope: args.scope,
|
|
1086
|
+
kind: url ? "remote" : "filesystem"
|
|
1087
|
+
};
|
|
1074
1088
|
}
|
|
1075
1089
|
},
|
|
1076
1090
|
{
|
|
@@ -1405,7 +1419,7 @@ Include at least one engram_suggestion if ANYTHING was learned. An empty suggest
|
|
|
1405
1419
|
|
|
1406
1420
|
// src/server.ts
|
|
1407
1421
|
import { z } from "zod";
|
|
1408
|
-
var VERSION = "0.9.
|
|
1422
|
+
var VERSION = "0.9.6";
|
|
1409
1423
|
var INSTRUCTIONS = `PLUR is your persistent memory. Corrections, preferences, and conventions persist across sessions as engrams.
|
|
1410
1424
|
|
|
1411
1425
|
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.6",
|
|
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.6"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@types/node": "^25.5.0"
|