world-model-mcp
World Model MCP
面向 AI 编码代理的持久记忆 + 可选签名审计。
world-model-mcp 为 AI 编码代理提供持久记忆,外加一条后量子签名、可离线验证的审计轨迹(FIPS 205 混合 Ed25519 + SLH-DSA),MIT 许可,完全本地运行。
world-model-mcp 附带一个本地 SQLite 知识图谱,你的代理会在每一轮中查询它:幻觉变得可验证,修正会跨会话保留,回归在落地之前就会被捕获。开启审计链后,每个事件都会使用 FIPS 205 混合 Ed25519 + SLH-DSA 签名,可永久离线验证。MIT 许可,完全本地运行,支持 10+ 款 AI 编码代理,包括 Claude Code、Cursor、Codex、Continue、Cline、Windsurf、GitHub Copilot Chat、pi、OpenClaw 和 Hermes Agent。
最新版本:v0.16.2。
world-model demo以一段实时公证演示收尾:三个示例决策被签名进一个真实的混合签名纪元(Ed25519 + SLH-DSA-SHA2-128f,FIPS 205),验证为 VALID,篡改一个字节以证明篡改检测实时触发(INVALID),然后恢复原状。零注册、零令牌、零网络;会在当前目录生成一个world-model-demo-receipt.json,并输出一个可复制粘贴的etch.systems/verify#<manifest>URL。v0.16.1 增加了在本地 liboqs 构建未编译 SLH-DSA 时优雅跳过(而不是让演示崩溃)的能力。完整版本历史见 CHANGELOG.md。
10 秒试用
pip install -U world-model-mcp && world-model demo你会看到三个示例决策被签名进一个防篡改纪元,然后演示篡改一个字节并重新验证,以证明篡改会被立即检测到(INVALID),随后恢复并重新验证(再次 VALID)。离线、无账户、无网络。一个 world-model-demo-receipt.json 会落在你的当前目录中,并会打印一个可分享的 etch.systems/verify#… URL,供任何人在浏览器中检查同一份收据。
mcp-name: io.github.SaravananJaichandar/world-model-mcp
Related MCP server: context-atlas
更喜欢托管版本?
如果你想要同样的签名审计链,但又不想自己运行 OSS 服务器,etch.systems 提供了一个托管版本,使用本包作为其离线参考验证器。
无需运行任何基础设施(30 秒内 POST 你的第一个事件,无需注册)
合规框架映射到 SR 11-7、EU AI Act Article 12、ISO 42001、NIST AI RMF、SOC 2 CC7
端到端提供外部锚定(Sigstore Rekor + Bitcoin OpenTimestamps)
可移植的按代理身份,支持跨 MCP 客户端工具(Claude Code、Cursor、Continue、Cline、Codex)的密钥轮换和委派
离线验证器保持不变:
pip install world-model-mcp && etch-verify manifest.json可针对固定的公钥验证托管链,而无需依赖托管服务在线
curl -X POST https://etch.systems/v1/your-project返回一个 bearer 令牌和一个 MCP 端点,你可以将任何兼容 MCP 的客户端指向该端点。完整文档见 etch.systems。
常见问题
什么是 world-model-mcp? world-model-mcp 是面向 AI 编码代理的持久记忆,外加一条后量子签名、可离线验证的审计轨迹,以 MCP 服务器形式提供,代理在每一轮中都会查询它。它完全本地运行,以 MIT 许可的 Python 形式发布,并为 10+ 款 AI 编码代理提供可选适配器。
它与 Mem0、Letta 和其他代理记忆工具有什么不同?
world-model-mcp 是唯一一款在记忆之外还附带混合后量子签名审计链(FIPS 205 Ed25519 + SLH-DSA-SHA2-128f)的代理记忆工具,并配有离线参考验证器(etch-verify),还可通过托管的 etch.systems 配套服务获得双重外部锚定(Sigstore Rekor + Bitcoin OpenTimestamps)。同类工具(Mem0、Letta、agentmemory)只提供记忆,没有签名审计链。逐机制对比见下方“对比”表。
审计轨迹是后量子安全的吗? 是的。每个已关闭的纪元都携带一个混合签名:Ed25519(经典)加上 SLH-DSA-SHA2-128f(FIPS 205 无状态基于哈希的后量子签名)。未来能够单独破解 Ed25519 的量子对手仍然要面对同一负载上的 SLH-DSA 签名;只有两个签名都被伪造,整条链才能被伪造。
如何在没有账户的情况下离线验证一条记录?
运行 pip install -U world-model-mcp && world-model demo。演示会将三个示例决策签名进一个真实的混合签名纪元,导出与 etch-verify CLI 读取的相同清单格式,验证为 VALID,篡改一个字节以证明篡改检测是实时的(INVALID),然后恢复并重新验证。一个 world-model-demo-receipt.json 会落在你的当前目录中,并会打印一个 etch.systems/verify#… URL,供任何人在浏览器中检查收据。零注册、零网络。
它支持哪些 AI 编码代理?
Claude Code、Cursor、Codex、Continue、Cline、Windsurf、GitHub Copilot Chat、pi、OpenClaw 和 Hermes Agent。每个都有专门的入门仓库,位于 github.com/SaravananJaichandar/world-model-mcp-<agent>-starter 下。MCP 线格式是标准的,因此任何支持 MCP 的客户端都可以使用相同的工具。
我应该使用这个 OSS 包还是托管的 etch.systems 服务?
如果你想在自己的基础设施上运行审计链,或为内部工具添加签名记忆,请使用这个 OSS 包(MIT 许可,完全本地)。如果你想要以托管服务形式提供的同一条审计链,并附带合规框架映射(SR 11-7、EU AI Act Article 12、ISO 42001、NIST AI RMF、SOC 2 CC7)以及跨 MCP 客户端工具的可移植按代理身份,请使用 etch.systems。两种情况下离线参考验证器是相同的:pip install world-model-mcp && etch-verify manifest.json 可针对固定的公钥验证 OSS 生成或托管生成的清单。
与其他代理记忆 + 代理审计项目的对比
在审计 / 签名 / 锚定维度上与八个具名同类项目进行正面定位对比,这些维度正是代理记忆领域正在趋同的方向。world-model-mcp 的每个单元格都带有来源标记:own = 在发布产品中测量 / 观察到;cited = 取自竞争对手自己的公开落地页、仓库或新闻稿。
本表的权威来源位于托管服务仓库中:world-model-mcp-hosted/src/etch/competitor_matrix.py。如果你更改其中一处,请在两处都更新。
world-model-mcp(本仓库)+ Etch(托管) | Mem0 | Letta | agentmemory | Unicity AOS | Repowise | Trinitite | Caura | FailproofAI | |
签名方案 | Ed25519 + SLH-DSA-SHA2-128f(混合) | 无(仅静态加密) | 无 | 无 | BLAKE3 哈希链 | 确定性信号(无签名) | 签名 + 哈希链(算法未公开) | 无 | 未公开 |
后量子就绪 | 是(SLH-DSA,NIST FIPS 205) | 否 | 否 | 否 | 否(仅 BLAKE3 哈希) | 否 | 未公开 | 否 | 否 |
离线参考验证器 | etch-verify CLI,流式,随 PyPI 包发布 | 否 | 否 | 否 | 未公开 | 否(仅 SaaS) | 基于浏览器的验证器 | 否 | 否 |
证明节奏强制 | 计划 systemd 定时器 + 按需验证 | 否 | 否 | 否 | 未公开 | 否 | 计划性证明运行 | 否 | 否 |
框架映射(条款 / 控制项 ID) | EU AI Act 第 12-15 条、SOC 2 CC6.6/7.2/7.3、ISO 27001 A.12.4/A.14.2 | SOC 2 + HIPAA(徽章,无逐控制项映射) | 未公开 | 否 | 未公开 | EU AI Act(非适用性声明) | 逐条引用(EU AI Act、SOC 2、SR 11-7) | SOC 2 进行中徽章 | 仅企业版提供 SOC 2 |
漂移检测 | 逐周期链完整性 + 证明趋势 | 否 | 成功率 + 错误跟踪 | 否 | 未公开 | 代码健康度分数变化 | 确定性重放 + 风险分数变化 | 否 | 评估器分数变化 |
注释支持(链内签名人工备注) | pin_annotation MCP 工具,签名到同一链中 | 否 | 否 | 否 | 未公开 | 否 | 未公开 | 否 | 否 |
浏览器验证器 | 是,/auditor/ 上的链完整性组件 | 否 | 否 | 否 | 未公开 | 否 | 是 | 否 | 否 |
共享链接(审计员访问,无需登录) | 是,过期共享令牌(bs_ 前缀,最长 30 天) | 否 | 否 | 否 | 未公开 | 否 | 是,过期审计员访问 | 否 | 否 |
外部锚点(独立见证日志) | 双重:Sigstore Rekor + Bitcoin OpenTimestamps(公开,可按项目选择退出) | 否 | 否 | 否 | 仅内部哈希链(无外部日志) | 否 | 未公开 | 否 | 否 |
OSS 许可证 | MIT(world-model-mcp) | Apache 2.0 | Apache 2.0 | Apache 2.0 | 未公开 | AGPL v3(核心) | 无开源 | Apache 2.0 | 无开源 |
GitHub 星标 | 通过 etch.systems/api/oss-stats 快照 | 61.6k | 23.9k | 24.9k | 7.1k | 4.2k | 无公开仓库 | 373 | 无公开仓库 |
公开融资 | 自筹资金 | $24.5M | $10M | 未公开 | $3M 种子轮 2026 年 2 月 | 未公开 | 未公开 | 未公开 | 未公开 |
合规姿态(落地页所声称的) | SOC 2 Type I 进行中(目标 2026 年 8 月) | SOC 2 + HIPAA(信任子域上的徽章) | 未公开 | 无合规姿态 | 无合规姿态 | 无 SOC 2;EU AI Act 非适用性声明 | 逐条合规框架 | SOC 2 进行中徽章 | SOC 2 企业版 |
如何阅读此表:
粗体单元格描述本仓库(OSS)或托管服务(etch.systems)中已交付的机制。
同行单元格引自各竞品的公开落地页 / 仓库 / 新闻稿,非我们自行测量。
[own]出现在world-model-mcp单元格中表示我们自行测量/观察了该机制;[cited]表示该值来自第三方来源。此表仅涵盖审计 / 签名 / 锚定维度。通用记忆功能(检索准确率、适配器广度、LLM 支持)见下文 功能 部分。
数据
基准 | 分数 | 详情 |
+10.2 分作为单次试验上限(49 个配对实例上 67.3% → 77.6%);多随机种子平均效应为 每实例 +0.24,95% CI [0, 0.47] | 预注册,Claude Code 2.1.177 无头模式,Zenodo DOI 10.5281/zenodo.21076824。单次试验划分中,域内 +15.0 分,跨域 +6.9 分,零回归。 | |
100.0%( | 105 对 × 19 个类别,确定性(无 LLM)。自 v0.11.0 起提供。 | |
100.0% 精确匹配 | 12 个手工标注对(4 个有依据、4 个部分、4 个幻觉)。通过独立 Coach LLM 进行第 3 层对抗性验证。自 v0.12.12 起提供。 |
SWE-bench 数字是支撑性的实证声明。另外两个是已交付组件的内部正确性基准。可复现脚本位于各基准目录或链接的仓库中。
测试
1,494 个单元 + 集成 + 模糊测试覆盖已交付代码库。覆盖率下限门控在 71% / 66%(两档,取决于 CI 运行器的 liboqs 中是否包含 SLH-DSA)。
# Run tests
pytest -q
# With coverage
pytest --cov=world_model_server --cov-report=term-missing
# Fuzz targets (Atheris, requires Clang / libFuzzer)
python fuzz/fuzz_verify_manifest.py fuzz/corpus/ -max_total_time=60
# Non-Atheris smoke fuzz (runs in every CI pass, no system deps)
pytest tests/test_fuzz_smoke_verify.py -q值得特别指出的测试套件:
FIPS 205 SLH-DSA 已知答案测试(
tests/test_fips_205_slh_dsa_kat.py):锁定 SLH-DSA-SHA2-128f 的参数大小(公钥 = 32 字节,私钥 = 64 字节,签名 = 17,088 字节),签名/验证往返测试包含错误密钥 + 错误消息 + 变异签名拒绝,外加一个固定的 KAT 向量夹具(tests/fixtures/slh_dsa_kat_vectors.json),该夹具必须永远验证为真。流式验证器字节一致性(
tests/test_etch_verify_streaming.py):锁定内存导出器与流式导出器之间的字节相同输出,从而无论操作者使用哪个导出器,审计员对作为记录工件的清单进行哈希时都会得到相同的manifest_sha256。矛盾基准(
benchmarks/contradictions-200/):105 对 × 19 个类别,确定性。在每次提交时将auto策略锁定为 100%。
CI 在每次推送时门控覆盖率下限 + 完整测试套件。参见 .github/workflows/pytest.yml。
认证审计链(v0.13+,选择加入)
对于审计跟踪必须可加密验证的部署(SOC 2、HIPAA、EU AI Act 或您自己的内部控制清单):
export WORLD_MODEL_AUDIT_LOG=on
# then start the world-model-mcp server as normal在首次选择启用时,服务器会在现有的 audit.db 文件中创建两个新的 SQLite 表(tamper_evident_log 和 tamper_evident_epochs),并在第一个 epoch 关闭时生成一个新的混合密钥对。此后每个事件都会被追加到一条 SHA-256 Merkle 链中。当一个 epoch 关闭时(默认:1024 个事件),链根会使用混合 Ed25519 + SLH-DSA-SHA2-128f 信封签名:经典 + 后量子,因此即使椭圆曲线密码学被假设性攻破,审计跟踪仍然完好无损。
可离线验证,永久有效。
etch-verifyCLI 随 PyPI 包一起发布;审计员在自己的笔记本电脑上运行它,初始下载后无需网络访问。签名证明作者身份,而不仅仅是顺序。哈希链替代方案可以证明没有任何内容被重新排序,但无法证明究竟是谁签名的。这条链两者都能回答。
无仪表盘、无需注册、无外部服务。完全在你的进程中针对本地 SQLite 运行。
完整说明见 docs/AUDIT_LOG.md。
如需托管版本(增加 KMS 支持的密钥、公开透明度日志、对 Sigstore Rekor + Bitcoin OpenTimestamps 的外部锚定,以及面向合规性的操作员仪表盘),请参阅下方的 Etch 配套服务。
快速开始
三种最常见的安装方式。对于所有其他受支持的客户端(Cursor、Cline、Codex、Continue、Copilot、Windsurf、Goose、pi、OpenClaw、Hermes 等),请参阅 etch.systems/docs/install。
选项 1:Claude Desktop(一键安装)
从 Releases 下载最新的 .mcpb 并将其拖入 Claude Desktop。自动安装 hooks、MCP 服务器配置和依赖项。
选项 2:Claude Code / IDE 插件(pip install)
# 1. Install the package
pip install world-model-mcp
# 2. Set up in your project (auto-seeds the knowledge graph from existing code)
cd /path/to/your/project
python -m world_model_server.cli setup
# 3. Restart Claude Code
# Done. The world model is pre-populated and active.下一步(可选): 使用托管的 Etch 公证服务将本地签名审计日志转变为审计员可验证的链——KMS 支持的密钥、公开透明度日志、外部锚定,以及供审计员使用的共享链接,无需运行任何基础设施。请参阅 托管配套服务:Etch。
选项 3:用于远程 / MCP 隧道部署的 HTTP 传输
pip install 'world-model-mcp[http]'
python -m world_model_server.server --transport http --port 8000通过 Streamable HTTP 暴露 MCP,使远程代理可以通过网络连接。有关认证、CORS 和反向代理设置,请参阅 docs/http_transport.md。
其他客户端
通过 OSS CLI 安装。每条命令都会为该客户端写入正确的配置(默认使用 sys.executable 作为解释器路径,感知各客户端格式,通过 --force 和 --dry-run 标志防止覆盖):
python -m world_model_server.cli install-cursor # Cursor
python -m world_model_server.cli install-cline # Cline
python -m world_model_server.cli install-codex # Codex
python -m world_model_server.cli install-continue # Continue (also --global)
python -m world_model_server.cli install-copilot # GitHub Copilot Chat (VS Code Insider)
python -m world_model_server.cli install-windsurf # Windsurf
python -m world_model_server.cli install-pi # pi
python -m world_model_server.cli install-openclaw # OpenClaw
python -m world_model_server.cli install-hermes # Hermes (MCP mode)
python -m world_model_server.cli install-hermes-provider # Hermes (Elixir-native provider)每个客户端的完整分步指南(含验证命令 + 故障排查)见 etch.systems/docs/install。
功能概述
world-model-mcp 是一个时间知识图谱,位于你的 AI 编码代理与其工作之间。它记录来自代码库的事实、实体和约束;在编辑边界根据已学习的约束验证每次代码更改;在上下文窗口压缩后重新注入相关上下文;通过置信度加权解析来跟踪矛盾;并通过独立的 Coach LLM 对抗性地验证检索结果。
特性
1. 防止幻觉。 每条记录的事实都带有溯源(asserted_by、confirmer、confirmation_state、evidence_type)。当代理查询某个事实时,它会连同答案一起获得置信度分数。当两个事实相互矛盾时,较新/置信度较高者胜出;落败者以 superseded_by 保留。代理永远不必猜测存储的事实是否仍然有效。
2. 从纠正中学习。 当你纠正代理时(record_correction),该纠正会作为一等事件与相关实体一起存储。下次代理查询任何涉及这些实体的内容时,纠正会首先浮现。纠正会跨会话、跨上下文压缩、跨代理重启持续生效。
3. 防止回归。 每个代码更改提案都会经过 validate_change 检查,该工具会遍历约束图并在编辑落地之前返回违规项。约束从你的代码库自动学习(seed_project),通过 PR 审查评论强化(ingest_pr_reviews),并可手动编写(record_event)。代理会看到违规项、建议以及约束的来源。
4. Coach-Player 对抗性验证。 Player 代理起草决策。独立的 Coach 代理独立地重新查询图谱以寻找先例,遍历 Merkle 证明,检查混合签名,然后才批准。Coach 从不信任 Player 的摘要;它每次都针对签名账本重新验证。在 12 对手工标注的配对中实现 100% 精确匹配。
完整技术架构见 docs/ARCHITECTURE.md。
MCP 工具
提供八个工具。以下为一行摘要;点击每个工具可查看 docs/mcp/ 中的签名 + 示例。
工具 | 功能 |
| 获取存储的事实,包含溯源 + 置信度 + 来源 |
| 将事件追加到审计链( |
| 根据已学习的约束检查代码更改提案,返回违规项 + 建议 |
| 列出与实体或文件模式匹配的所有约束 |
| 存储用户纠正,使其在下次相关查询时重新浮现 |
| 获取涉及给定文件的 bug + 每文件风险评分 |
| 将现有代码库批量导入知识图谱 |
| 将最近的 PR 审查评论转化为约束 |
完整工具文档见 docs/mcp/。
托管配套服务:Etch
在本地运行 world-model-mcp?Etch (etch.systems) 是基于同一 OSS 核心构建的托管治理平面,增加了合规团队在批准生产使用所需的功能:
KMS 加密的签名密钥(静态存储时永不为明文)
带签名头部的公开透明度日志(防分裂视图)
对 Sigstore Rekor + Bitcoin OpenTimestamps 的外部锚定(双重独立见证)
操作员仪表盘,包含会话跟踪、链完整性视图、PII 扫描和客户端答案 PDF 导出
独立审计员 CLI + 浏览器验证器,位于
/auditor/<slug>免费层,超出后按需付费
相同的密码学原语、相同的审计日志模式,对已发布的 OSS 零源代码更改。如果你独立运行,可跳过此项。
哪个适合我?
情况 | 路线 |
我希望为本地 AI 编码代理提供持久记忆 |
|
我希望六个月后能向监管机构证明代理决策 | |
我希望获得法院可以自行验证的签名证据包 | |
我希望实现签名审计历史的跨团队或跨供应商联合 | |
我想两者都试试 | 先用 |
工作原理
world-model-mcp 是一个 MCP 服务器(stdio 或 Streamable HTTP),它暴露一个由 SQLite 支持的时间知识图谱。每次代理轮次都会查询图谱;每次代码更改或纠正都会写回。启动时,服务器会自动从你现有的代码库进行播种;关闭时,它会干净地刷新。
.claude/world-model/ 下的六个数据库:
entities.db:文件、函数、类、符号facts.db:带溯源 + 置信度的语义事实relationships.db:依赖、调用、导入constraints.db:代理必须遵守的已学习规则sessions.db:按会话的上下文跟踪events.db:不可变事件日志(选择启用时为审计链)
包含图表的完整架构见 docs/ARCHITECTURE.md。
配置
环境变量(均为可选):
变量 | 用途 | 默认值 |
| 启用签名审计链 |
|
| 覆盖 SQLite 数据库目录 |
|
| 选择加入匿名 OSS 遥测(请参阅隐私) |
|
| 仅在你启用可选的 LLM 支持功能时使用 | none |
完整配置参考见 docs/CONFIGURATION.md。
隐私与安全
遥测默认关闭。 如果你使用
WORLD_MODEL_TELEMETRY=on选择加入,聚合的安装级指标会发送到etch.systems/api/telemetry/ingest(端点 URL,不包含源代码、提示词或 PII)。通过DELETE /api/telemetry/install/{install_id}支持被遗忘权。核心操作不需要
ANTHROPIC_API_KEY。 如果提供了密钥,某些可选功能(Coach-Player 第 3 层验证、LLM 支持的重新排序)会使用该 API。没有它,其他一切照常工作。报告安全问题: 发送邮件至 security@etch.systems。可按需提供 PGP 密钥。
完整说明见 docs/PRIVACY.md。
贡献
欢迎贡献。请参阅 CONTRIBUTING.md 了解开发环境搭建、编码标准、添加语言支持、编写测试和提交 PR。
特别需要帮助的领域:
语言解析器(Go、Rust、Java、C++)
额外的 MCP 客户端适配器
框架集成(LangGraph、CrewAI、AutoGen、LlamaIndex;托管仓库中已有入门 shim)
benchmarks/中的基准测试贡献
请在提交第一个 PR 之前阅读 CLA.md。
许可证
MIT 许可证。免费用于商业和个人用途。
链接
完整版本历史: CHANGELOG.md
文档: docs/
托管服务: etch.systems
Zenodo(正式引用): DOI 10.5281/zenodo.20834508
Available Tools
31 toolsexport_claude_mdB
Generate a CLAUDE.md document from the knowledge graph (top constraints, recent decisions, known bug regions, co-edit patterns).
Inputs: max_constraints.
find_contradictionsC
Find pairs of facts that contradict each other based on similarity and status differences
Inputs: limit, query.
get_agents_md_constraintsA
Parse AGENTS.md / CLAUDE.md / GEMINI.md / .agents/skills/*.md in the project and return declarative constraints. Mixed into PreToolUse enforcement automatically; this tool exposes the same data for inspection.
Inputs: file_path, project_dir.
get_audit_log_headA
v0.13 tamper-evident audit log. Return the current head state (last log entry seq, last closed epoch seq, unclosed-entry count) plus the full closed-epoch chain with hybrid signature envelopes. Compliance auditors call this periodically to verify no operator misbehavior has occurred since the last check. Requires WORLD_MODEL_AUDIT_LOG=on at server startup.
Inputs: no named parameters.
get_co_edit_suggestionsB
Get files commonly edited alongside the given file based on historical patterns
Inputs: file_path (required), limit.
get_compaction_auditA
List recent compaction audit entries, most-recent first. Filter by session_id or limit count.
Inputs: limit, session_id.
get_constraintsA
Get constraints (linting rules, patterns, conventions) for a file
Inputs: file_path (required), constraint_types.
get_context_for_actionC
Pre-action context bundle: constraints, decisions, bugs, co-edits, related facts, and risk score for a file before editing
Inputs: file_path (required), action_type (required).
get_decision_logC
Get decision traces showing agent proposals and human corrections
Inputs: limit, file_path, session_id, decision_type.
get_health_reportA
Memory health diagnostics: orphans, stale facts, contradictions, decay candidates, DB sizes
Inputs: no named parameters.
get_injection_contextB
Return a compact constraint+fact bundle for PostCompact / UserPromptSubmit hooks to re-inject after context loss.
Inputs: event_type (required), max_facts, project_hint, max_constraints.
ingest_pr_reviewsA
Pull GitHub PR review comments and convert them into learned constraints in the knowledge graph
Inputs: repo, count.
pin_annotationA
Attach a signed human annotation (note, override rationale, or intervention record) to a span of agent events. Persists into the annotations table and chains into the same Merkle audit log as agent writes (v0.15.0, ADR-0001). Rationale limited to 8 KB.
Inputs: author (required), rationale (required), session_id (required), annotation_type (required), +2 more.
predict_regressionA
Score regression risk for a proposed change to a file based on past bugs, test failures, and constraint violations
Inputs: file_path (required), change_description.
predict_test_failuresA
Surface tests likely to fail given a set of edited files
Inputs: file_paths (required).
promote_constraintB
Promote a constraint from this project to all other registered projects
Inputs: constraint_id (required), target_projects.
prove_entry_inclusionA
v0.13 tamper-evident audit log. Return a cryptographic inclusion-proof bundle for a persisted row_id (fact, constraint, event, or decision ID). Bundle includes the entry, the containing signed epoch (Ed25519 + SLH-DSA hybrid signature envelope), an RFC 6962 Merkle inclusion proof, and the full epoch chain from genesis. Requires WORLD_MODEL_AUDIT_LOG=on at server startup; returns an error object when opt-in is off, when the row_id is not found, or when the entry is in the unclosed backlog.
Inputs: row_id (required).
query_factB
Query the knowledge graph for facts about entities (APIs, functions, classes, etc.)
Inputs: query (required), context, entity_type, content_type.
recall_transcript_rangeC
Hydrate a Claude Code session transcript by line range. Lets agents trace a fact back to the exact conversation that produced it.
Inputs: session_id (required), line_end, line_start.
record_compaction_auditA
Record a context-compaction event with token counts and what was re-injected. Lets developers audit what was remembered across compaction boundaries.
Inputs: session_id, raw_summary, facts_injected, injection_event, +3 more.
record_correctionC
Record a user correction to Claude's output (high-priority learning signal)
Inputs: session_id (required), claude_action (required), user_correction (required), reasoning.
record_decisionC
Record a decision trace: what the agent proposed and how the human responded
Inputs: session_id (required), decision_type (required), file_path, reasoning, +3 more.
record_eventC
Record a development event (file edit, test run, etc.)
Inputs: event_type (required), session_id (required), description (required), success, +3 more.
record_test_outcomeC
Record test results and link failures to recent code changes
Inputs: session_id (required), test_results (required).
resolve_contradictionC
Pick a winner between two contradicting facts using a confidence-weighted strategy (auto, keep_higher_confidence, keep_most_recent, keep_most_sources, supersede_a, supersede_b, manual).
Inputs: fact_a_id (required), fact_b_id (required), notes, strategy.
search_globalC
Search entities across all registered world-model projects
Inputs: query (required), limit.
seed_projectA
Scan the project codebase and populate the knowledge graph with entities and relationships from existing code
Inputs: force, project_dir.
simulate_changeC
Project blast radius and historical outcomes for a proposed change
Inputs: file_path (required), change_description (required).
validate_changeB
Validate a proposed code change against known constraints
Inputs: file_path (required), change_type (required), proposed_content (required).
verify_retrievalA
Adversarially verify an answer is grounded in a specific set of facts. An independent Coach LLM call checks each material claim in the answer against the supplied source facts and returns confidence (HIGH / MEDIUM / LOW), verified + unverified claim lists, and per-claim source_pointers. Never raises; failures return LOW + error populated. v0.12.12.
Inputs: query (required), answer (required), fact_ids (required), verification_model.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 31 tools
Several tools have poorly separated boundaries: validate_change, simulate_change, predict_regression, and predict_test_failures all appear to assess the impact of a proposed change, differing mainly in subtle emphasis. Similarly, query_fact, search_global, and get_context_for_action overlap heavily in fact retrieval, and record_correction, record_decision, and pin_annotation all capture human feedback. An agent would frequently struggle to select the right tool without reading every description.
Every tool follows a consistent snake_case verb_noun pattern, e.g., get_constraints, record_event, predict_regression, prove_entry_inclusion. Even the more unusual names like pin_annotation and seed_project fit the same imperative structure. This is a highly predictable and uniform naming convention.
31 tools is well beyond the 25+ threshold for a single server and will overwhelm tool selection, especially given the many overlapping prediction and retrieval tools. The server would be more coherent with roughly half the current surface area, consolidating related reads and writes into broader commands.
The domain is broadly covered: it supports knowledge-graph population and queries, event and decision recording, constraint ingestion and validation, regression prediction, audit-log integrity, compaction auditing, and context export. Minor gaps exist, such as no explicit fact/constraint update or delete lifecycle and no project listing tool, but the core workflows are well supported.
Maintenance
Related MCP Connectors
Shared project memory for AI coding agents: decisions, lessons, risks and tasks in one graph.
Codebase knowledge graph — architectural awareness for AI coding agents via MCP
Codebase intelligence for AI coding agents: graph, git history, docs, decisions, code health.
Project memory for coding agents: requirements, decisions, code graph and delivery telemetry.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides AI coding agents with pre-edit situational awareness by combining structural call graphs and co-change history to prevent incomplete edits. It surfaces files that historically change together, reducing missed coupled modules.3MIT
- AlicenseNot gradedqualityCmaintenanceEnables coding agents to query a local, versioned knowledge graph of a software project, retrieving overviews, context packs, evidence, and explanations to make informed changes.MIT
- AlicenseAqualityBmaintenanceEnables AI agents to maintain a persistent knowledge graph of a project, providing dependency context, impact analysis, side-effect discovery, and session recording for more informed coding decisions.5MIT
- FlicenseBqualityBmaintenanceTurns local code repositories into a queryable dependency graph built from AST parsing and git co-edit history, then exposes it alongside an Obsidian vault as persistent memory. Enables context retrieval, impact analysis of proposed changes, and curation of durable prose knowledge through full-text search and Personalized PageRank classification—all fully offline without API keys or embeddings.30-