模拟人脑记忆机制的 MCP 服务器,实现双强度遗忘曲线、冷热分层、局部权重、长期目标全局加权、情绪加权、扩散激活、睡眠固化、软纠错等认知机制
26 tools with schemas visible in server.py, but critical gaps undermine quality. Descriptions are present but often verbose (200-400 chars) and written in Chinese, mixing implementation details with usage guidance. Parameter descriptions exist but lack constraint specifications (ranges, enums, formats). No output schemas documented. Error handling absent, tools return raw dicts with no recovery guidance. Tool names are action-oriented (remember, recall, link_memory) but some are domain-specific jargon ('consolidate', 'context_pack') that may confuse LLMs unfamiliar with memory systems. No tool annotations (readOnlyHint, destructiveHint, idempotentHint). Composition is reasonable, tools are single-purpose, but chaining requires manual ID passing with no validation.
新建分类。parent 传完整路径如 "技术",name 为叶子名。
分类树(图式结构)与各分类直挂记忆数。
触发一次"睡眠"固化:衰减分层+冷归档+去重合并(原文保留)+大分类语义压缩+目标重放强化。会话间歇调用。
生成可直接注入上下文的记忆包(决定"输入什么"的唯一入口)。预算内打包:权重高的进、冷归档默认不进、高相似只留一条、大分类走语义摘要;并给出"建议移出"(上次注入后已衰减/被纠错的)。task=任务描述;budget=token 预算(默认 800);mode coding|research|chat;focus_category 类内局部权重生效;cache_friendly(默认开)注入块按稳定→易变排序且隐藏逐次变化的数值,同一任务连续注入输出一致,API 前缀缓存可命中。
上次上下文包的状态:哪些仍在有效期、哪些已衰减待换血。
停用目标(加成立即失效,关联保留;set_goal 同名即恢复)。
软纠错:标记某条记忆存疑/有误。只降权(默认×0.4)绝不删除;可多次标记(连乘折减)。
No output schemas documented. Tools return dicts but LLMs cannot infer field names, types, or structure. Downstream tool chaining requires manual ID extraction and guessing.
Descriptions are verbose (200-400 chars), written in Chinese, and mix implementation details (e.g., 'double strength snapshot', 'decay layers') with usage guidance. LLMs struggle to extract intent from dense, domain-specific prose.
Parameters lack constraint specifications. 'importance' accepts float but no range stated (0-1 implied in description, not schema). 'priority' accepts int but no enum or bounds. 'limit' unbounded. LLMs may pass invalid values.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 44 | 2026-07-28+ | v2 |
哪些记忆即将滑入冷归档(不删除,只是默认不再想起)。再次检索(成功回忆)可重置衰减并增大稳定性。
一条记忆的完整档案:双强度快照、分类局部权重、目标、联想边、纠错历史(含已翻案)、被固化吸收的原文。
把既有记忆挂到长期目标上,立即获全局加成。
在两条记忆间建联想边,检索命中任一端激活扩散到另一端。
列出长期目标及关联记忆数。
当前生效的钉扎约束清单。
全局统计:分层/类型分布、目标、工作记忆占用、纠错标记数。
钉扎硬约束:永不衰减、每次注入最顶部(对抗注意力随深度衰减)。一条约束一件事;复合约束拆多条。scope 如 deploy/coding/global。
固定/取消固定一条记忆于工作记忆(固定项不参与容量淘汰)。
检索记忆,按综合得分排序。默认只返回索引行(id+内容≤80字+得分),"想起有这回事"就够,完整档案用 get_memory(id) 按需展开;detail="full" 返回旧版全档案(得分分解+双强度,审计用)。category 限定作用域(类内局部权重放大,类外降权不排除);include_cold 含冷归档;spread 扩散激活。成功回忆自动强化。
以某条记忆为线索,找与它最相似/相关的其他记忆。输出同 recall(默认索引行,detail="full" 返回全档案)。
记入一条记忆。content=内容;importance 0~1(不传自动估计);categories 如 ["技术/Python"](自动创建);category_weights 各分类局部权重——同一条记忆可以"全局不重要、类内很重要";kind fact|event;valence[-1,1]/arousal[0,1] 情绪(高唤醒忘得慢);goal 关联长期目标(获全局加成);link_to 联想的其他记忆 id。
翻案:解除全部生效中纠错标记,权重恢复。历史标记保留可查。
会话收尾协议:抽取本会话值得长期记住的事实/教训(各传原子句)。两道闸门:超长拒绝(不截断)、与既有记忆高相似去重。
会话开始协议:注入钉扎约束+记忆包(宿主协议:新会话第一个动作)。参数语义同 context_pack。
设立/更新长期目标(优先级 1~5)。关联记忆在所有检索中获(1+0.5×priority/5) 加成,固化时额外强化。
【演示/测试专用】时钟前移 N 天,观察遗忘曲线与固化的长期效果。
停用一条钉扎约束(历史保留)。
查看当前工作记忆(RAM)驻留条目及激活度。
No error handling or recovery guidance. Tools return raw dicts; no indication of success/failure, retryability, or next steps on error. LLMs cannot self-correct.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint). LLMs cannot distinguish safe reads from destructive writes. 'consolidate' and 'time_travel' modify state but lack destructiveHint.