@plur-ai/mcp 0.8.3 → 0.9.0

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
@@ -4,7 +4,7 @@
4
4
  import { existsSync, readFileSync, writeFileSync, mkdirSync } from "fs";
5
5
  import { join } from "path";
6
6
  import { homedir } from "os";
7
- var VERSION = "0.8.3";
7
+ var VERSION = "0.9.0";
8
8
  var HELP = `plur-mcp v${VERSION} \u2014 persistent memory for AI agents
9
9
 
10
10
  Usage:
@@ -212,7 +212,7 @@ if (arg === "init") {
212
212
  process.exit(0);
213
213
  }
214
214
  if (arg === "serve" || arg === void 0) {
215
- const { runStdio } = await import("./server-YEWTBXTD.js");
215
+ const { runStdio } = await import("./server-4HO6UAY3.js");
216
216
  runStdio().catch((err) => {
217
217
  console.error("Failed to start PLUR MCP server:", err);
218
218
  process.exit(1);
@@ -1203,6 +1203,55 @@ Include at least one engram_suggestion if ANYTHING was learned. An empty suggest
1203
1203
  };
1204
1204
  }
1205
1205
  },
1206
+ {
1207
+ name: "plur_similarity_search",
1208
+ description: "Search engrams by cosine similarity, returning scores. Used for dedup classification \u2014 scores > 0.9 indicate duplicates, 0.7-0.9 related, < 0.7 new.",
1209
+ annotations: { title: "Similarity search", readOnlyHint: true, idempotentHint: true },
1210
+ inputSchema: {
1211
+ type: "object",
1212
+ properties: {
1213
+ query: { type: "string", description: "Search query to find similar engrams" },
1214
+ limit: { type: "number", description: "Max results to return (default 20)" },
1215
+ scope: { type: "string", description: "Filter by scope (also includes global)" }
1216
+ },
1217
+ required: ["query"]
1218
+ },
1219
+ handler: async (args, plur) => {
1220
+ const results = await plur.similaritySearch(args.query, {
1221
+ limit: args.limit,
1222
+ scope: args.scope
1223
+ });
1224
+ return {
1225
+ results: results.map((r) => ({
1226
+ engram_id: r.engram.id,
1227
+ statement: r.engram.statement,
1228
+ scope: r.engram.scope,
1229
+ cosine_score: Math.round(r.score * 1e3) / 1e3,
1230
+ type: r.engram.type,
1231
+ polarity: r.engram.polarity,
1232
+ tags: r.engram.tags
1233
+ })),
1234
+ count: results.length
1235
+ };
1236
+ }
1237
+ },
1238
+ {
1239
+ name: "plur_batch_decay",
1240
+ description: "Apply ACT-R decay to all engrams. Run weekly. Returns status transitions only.",
1241
+ annotations: { title: "Batch decay", destructiveHint: false, idempotentHint: false },
1242
+ inputSchema: {
1243
+ type: "object",
1244
+ properties: {
1245
+ context_scope: { type: "string", description: "Scope to skip during decay (engrams in active scope are not decayed)" }
1246
+ }
1247
+ },
1248
+ handler: async (args, plur) => {
1249
+ const result = plur.batchDecay({
1250
+ contextScope: args.context_scope
1251
+ });
1252
+ return result;
1253
+ }
1254
+ },
1206
1255
  {
1207
1256
  name: "plur_profile",
1208
1257
  description: "Generate or retrieve a cognitive profile \u2014 a narrative summary synthesized from stored engrams. Cached for 24h.",
@@ -1241,7 +1290,7 @@ Include at least one engram_suggestion if ANYTHING was learned. An empty suggest
1241
1290
 
1242
1291
  // src/server.ts
1243
1292
  import { z } from "zod";
1244
- var VERSION = "0.8.3";
1293
+ var VERSION = "0.9.0";
1245
1294
  var INSTRUCTIONS = `PLUR is your persistent memory. Corrections, preferences, and conventions persist across sessions as engrams.
1246
1295
 
1247
1296
  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.8.3",
3
+ "version": "0.9.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "plur-mcp": "dist/index.js"
@@ -12,7 +12,7 @@
12
12
  "dependencies": {
13
13
  "@modelcontextprotocol/sdk": "^1.12.0",
14
14
  "zod": "^3.23.0",
15
- "@plur-ai/core": "0.8.3"
15
+ "@plur-ai/core": "0.9.0"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@types/node": "^25.5.0"