mcp-agents-memory 0.6.1 → 0.6.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 +2 -3
- package/build/index.js +4 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -93,15 +93,14 @@ Claude Desktop / Claude Code / any MCP-aware client:
|
|
|
93
93
|
"command": "mcp-agents-memory",
|
|
94
94
|
"env": {
|
|
95
95
|
"AGENT_KEY": "agent_claude",
|
|
96
|
-
"AGENT_PLATFORM": "claude-code"
|
|
97
|
-
"AGENT_MODEL": "claude-opus-4-7"
|
|
96
|
+
"AGENT_PLATFORM": "claude-code"
|
|
98
97
|
}
|
|
99
98
|
}
|
|
100
99
|
}
|
|
101
100
|
}
|
|
102
101
|
```
|
|
103
102
|
|
|
104
|
-
`AGENT_PLATFORM`
|
|
103
|
+
`AGENT_PLATFORM` is recorded as the Curator's harness identity on every memory_add call. The Curator's model is captured per-call (defaulting to the Producer's author_model) — set explicitly via the curator_model argument when an orchestrator saves memories on behalf of a different model (e.g. delegating to a subagent). This avoids the staleness that env-static model values would introduce when /model swaps mid-session.
|
|
105
104
|
|
|
106
105
|
### Cross-machine memory
|
|
107
106
|
|
package/build/index.js
CHANGED
|
@@ -117510,19 +117510,20 @@ function registerTools(server) {
|
|
|
117510
117510
|
subject_key: external_exports.string().optional().default(process.env.MEMORY_DEFAULT_SUBJECT || "default_user").describe("Primary subject key."),
|
|
117511
117511
|
project_key: external_exports.string().optional().describe("Project key if relevant."),
|
|
117512
117512
|
author_model: external_exports.string().optional().describe("Model name or alias (e.g., 'sonnet', 'opus', 'gemini')."),
|
|
117513
|
+
curator_model: external_exports.string().optional().describe("Curator model override \u2014 the model running memory_add. Defaults to author_model (Producer == Curator solo case)."),
|
|
117513
117514
|
platform: external_exports.string().optional().describe("Platform (e.g., 'antigravity', 'claude-code')."),
|
|
117514
117515
|
session_id: external_exports.string().optional().describe("Unique session identifier.")
|
|
117515
117516
|
}
|
|
117516
117517
|
},
|
|
117517
117518
|
async (args) => {
|
|
117518
117519
|
const agentPlatform = process.env.AGENT_PLATFORM;
|
|
117519
|
-
const agentModel = process.env.AGENT_MODEL;
|
|
117520
117520
|
const subjectId = await getOrCreateSubject(args.subject_key, "person");
|
|
117521
117521
|
let projectId = null;
|
|
117522
117522
|
if (args.project_key) {
|
|
117523
117523
|
projectId = await getOrCreateSubject(args.project_key, "project");
|
|
117524
117524
|
}
|
|
117525
|
-
const authorModel = args.author_model ??
|
|
117525
|
+
const authorModel = args.author_model ?? null;
|
|
117526
|
+
const curatorModel = args.curator_model ?? args.author_model ?? null;
|
|
117526
117527
|
const platform = args.platform ?? agentPlatform;
|
|
117527
117528
|
const result = await processBatch(
|
|
117528
117529
|
args.text,
|
|
@@ -117533,7 +117534,7 @@ function registerTools(server) {
|
|
|
117533
117534
|
author_model: authorModel,
|
|
117534
117535
|
platform,
|
|
117535
117536
|
agent_platform: agentPlatform,
|
|
117536
|
-
agent_model:
|
|
117537
|
+
agent_model: curatorModel,
|
|
117537
117538
|
session_id: args.session_id
|
|
117538
117539
|
}
|
|
117539
117540
|
);
|