memory-agent-mcp 1.2.0 → 1.2.2
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/README.md +5 -2
- package/index.js +22 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -55,10 +55,13 @@ Your write_token is bound to the **(IP, agent_id)** pair that created it.
|
|
|
55
55
|
### Base memory pattern
|
|
56
56
|
Base memories are small contextual memories (preferences, style, details). They are excluded from normal search to keep task search focused. Use `include_base=true` to load them (e.g. at session start). Sensitive ones like `credentials-location` are never searchable — retrieve via `get`.
|
|
57
57
|
|
|
58
|
-
Store a pointer, never secrets:
|
|
58
|
+
Store a pointer, never secrets. Standard credential file locations (chmod 600):
|
|
59
|
+
- Linux/macOS: `~/.memory01_token` and `~/.memory01_recovery`
|
|
60
|
+
- Windows: `%USERPROFILE%\.memory01_token` and `%USERPROFILE%\.memory01_recovery`
|
|
61
|
+
|
|
59
62
|
```
|
|
60
63
|
key: "credentials-location"
|
|
61
|
-
value: "Token
|
|
64
|
+
value: "Token at ~/.memory01_token, recovery at ~/.memory01_recovery (chmod 600). Do not store secrets in memory."
|
|
62
65
|
```
|
|
63
66
|
|
|
64
67
|
### Agent docs
|
package/index.js
CHANGED
|
@@ -274,6 +274,11 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
274
274
|
required: ["agentId", "writeToken", "key"],
|
|
275
275
|
},
|
|
276
276
|
},
|
|
277
|
+
{
|
|
278
|
+
name: "guide",
|
|
279
|
+
description: "Get a concise guide on how to use Memory01: init flow, base memories, recovery, upsert, limits. Call this first if unsure. Full guide: https://memory.node01.org/agents.md",
|
|
280
|
+
inputSchema: { type: "object", properties: {} },
|
|
281
|
+
},
|
|
277
282
|
{
|
|
278
283
|
name: "recover",
|
|
279
284
|
description: "Recover a write_token on a new IP using a recovery code (free). Use when your host's IP changed.",
|
|
@@ -489,6 +494,23 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
489
494
|
return { content: [{ type: "text", text: JSON.stringify(result.data, null, 2) }] };
|
|
490
495
|
}
|
|
491
496
|
|
|
497
|
+
case "guide": {
|
|
498
|
+
return {
|
|
499
|
+
content: [{
|
|
500
|
+
type: "text",
|
|
501
|
+
text: JSON.stringify({
|
|
502
|
+
init: "1) store a memory with agentId+key+value (omit writeToken on first call). 2) Save write_token AND recovery_code to ~/.memory01_token and ~/.memory01_recovery (chmod 600). 3) Store a base memory key='credentials-location' pointing to those files. 4) Use bootstrap to create conventional base memories.",
|
|
503
|
+
tools: ["store", "search", "bootstrap", "get", "recover", "regenerate_recovery", "subscribe", "health", "stats", "sample", "guide"],
|
|
504
|
+
base_memories: "Small (max 2KB) contextual memories. Excluded from normal search by default. Use includeBase:true to load them (e.g. at session start). Conventional keys: credentials-location (sensitive), user-preferences, user-details, code-style.",
|
|
505
|
+
recovery: "Token bound to (IP, agent_id). If IP changes, use recover(agentId, recoveryCode) to get a new token. Regenerate recovery code from original IP if lost. Save recovery_code offline.",
|
|
506
|
+
upsert: "Re-store with the same key updates in place (no duplicates). updated_at refreshed, stored_at preserved.",
|
|
507
|
+
limits: "key max 256, value max 50KB (2KB for base), metadata max 2KB, session_id max 128, top_k 1-20. Free: 30 searches/day, then $0.01 USDC.",
|
|
508
|
+
full_guide: "https://memory.node01.org/agents.md",
|
|
509
|
+
}, null, 2),
|
|
510
|
+
}],
|
|
511
|
+
};
|
|
512
|
+
}
|
|
513
|
+
|
|
492
514
|
case "recover": {
|
|
493
515
|
const { agentId, recoveryCode } = args;
|
|
494
516
|
if (!agentId || !recoveryCode) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "memory-agent-mcp",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "MCP wrapper for Memory01 agentic memory service - persistent memory for AI agents, free to store and search. Base memories, recovery codes, upsert, 50+ languages.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|