@hasna/mementos 0.10.12 → 0.10.13
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/mcp/index.js +3 -0
- package/package.json +1 -1
package/dist/mcp/index.js
CHANGED
|
@@ -10604,6 +10604,9 @@ server.tool("memory_context", "Get memories relevant to current context, filtere
|
|
|
10604
10604
|
if (memories.length === 0) {
|
|
10605
10605
|
return { content: [{ type: "text", text: "No memories in current context." }] };
|
|
10606
10606
|
}
|
|
10607
|
+
for (const m of memories) {
|
|
10608
|
+
touchMemory(m.id);
|
|
10609
|
+
}
|
|
10607
10610
|
const lines = memories.map((m) => `[${m.scope}/${m.category}] ${m.key}: ${m.value} (importance: ${m.importance})`);
|
|
10608
10611
|
return { content: [{ type: "text", text: lines.join(`
|
|
10609
10612
|
`) }] };
|