@plur-ai/mcp 0.2.5 → 0.2.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
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/index.ts
4
- var VERSION = "0.2.5";
4
+ var VERSION = "0.2.6";
5
5
  var HELP = `plur-mcp v${VERSION} \u2014 persistent memory for AI agents
6
6
 
7
7
  Usage:
@@ -69,7 +69,7 @@ if (arg === "init") {
69
69
  process.exit(0);
70
70
  }
71
71
  if (arg === "serve" || arg === void 0) {
72
- const { runStdio } = await import("./server-QJKTCWXZ.js");
72
+ const { runStdio } = await import("./server-UGCDF4CJ.js");
73
73
  runStdio().catch((err) => {
74
74
  console.error("Failed to start PLUR MCP server:", err);
75
75
  process.exit(1);
@@ -129,6 +129,32 @@ function getToolDefinitions() {
129
129
  };
130
130
  }
131
131
  },
132
+ {
133
+ name: "plur.inject.hybrid",
134
+ description: "Hybrid injection \u2014 BM25 + embeddings for better context selection. Falls back to BM25 if embeddings unavailable. Best default for injection.",
135
+ inputSchema: {
136
+ type: "object",
137
+ properties: {
138
+ task: { type: "string", description: "The task description to inject context for" },
139
+ budget: { type: "number", description: "Token budget for injection (default 2000)" },
140
+ scope: { type: "string", description: "Scope filter for engram selection" }
141
+ },
142
+ required: ["task"]
143
+ },
144
+ handler: async (args, plur) => {
145
+ const result = await plur.injectHybrid(args.task, {
146
+ budget: args.budget,
147
+ scope: args.scope
148
+ });
149
+ return {
150
+ directives: result.directives,
151
+ consider: result.consider,
152
+ count: result.count,
153
+ tokens_used: result.tokens_used,
154
+ mode: "hybrid"
155
+ };
156
+ }
157
+ },
132
158
  {
133
159
  name: "plur.feedback",
134
160
  description: "Rate an engram's usefulness \u2014 trains injection relevance over time",
@@ -346,7 +372,7 @@ function getToolDefinitions() {
346
372
  }
347
373
 
348
374
  // src/server.ts
349
- var VERSION = "0.2.5";
375
+ var VERSION = "0.2.6";
350
376
  async function createServer(plur) {
351
377
  const instance = plur ?? new Plur();
352
378
  const tools = getToolDefinitions();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plur-ai/mcp",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "plur-mcp": "dist/index.js",
@@ -11,9 +11,10 @@
11
11
  "dist"
12
12
  ],
13
13
  "dependencies": {
14
+ "@huggingface/transformers": "^3.8.1",
14
15
  "@modelcontextprotocol/sdk": "^1.12.0",
15
16
  "zod": "^3.23.0",
16
- "@plur-ai/core": "0.2.5"
17
+ "@plur-ai/core": "0.2.6"
17
18
  },
18
19
  "devDependencies": {
19
20
  "@types/node": "^25.5.0"