SuperAPI AI Directory

world-model-mcp

Temporal codebase knowledge graph that links test failures to code changes, learns co-edit patterns, predicts regression risk and enforces edit constraints.

Open website

About this tool

Purpose

world-model-mcp is a persistent memory server for AI programming agents, and it also provides an optional signed audit chain. It is delivered in the form of MCP (Model Context Protocol) tools, sits between an AI programming agent and its work, and acts as a temporal knowledge graph: it records facts, entities, and constraints in the codebase, validates every code change at the edit boundary, reinjects relevant context after context window compression, tracks contradictions and resolves them by confidence weighting, and conducts adversarial verification of retrieval results through an independent Coach LLM.

Main capabilities

  1. Hallucination prevention: every recorded fact carries source information (asserted_by, confirmer, confirmation_state, evidence_type). When an agent queries a fact, it also receives a confidence score; when two facts contradict each other, the newer or higher-confidence one wins, and the losing one is retained as superseded_by.
  2. Learning from corrections: after a correction is recorded through record_correction, the correction is stored as a first-class event together with the related entities; the next time the agent queries those entities, the correction surfaces first and can persist across sessions, across context compression, and across agent restarts.
  3. Regression prevention: every proposed code change goes through validate_change, traverses the constraint graph, and returns violations before the edit lands. Constraints can be learned automatically from the codebase (seed_project), strengthened from PR review comments (ingest_pr_reviews), or written manually (record_event).
  4. Coach-Player adversarial verification: the Player agent drafts a decision, and an independent Coach agent requeries precedents in the graph, traverses the Merkle proof, and checks the hybrid signature before approving; the Coach never trusts the Player's summary and re-verifies against the signed ledger every time.

Audit chain (v0.13+, optional enablement)

When enabled for the first time, the server creates the tamper_evident_log and tamper_evident_epochs tables in the existing audit.db, and generates a hybrid key pair when the first epoch closes. After that, each event is appended to a SHA-256 Merkle chain; when an epoch closes (default 1024 events), the chain root uses Ed25519 + SLH-DSA-SHA2-128f hybrid signature envelope signing, i.e. classical signatures plus post-quantum signatures, so that even if elliptic curve cryptography is broken in the future, the audit trail remains intact. Signatures can prove authorship, not just ordering. Verification is fully offline; the etch-verify CLI is released together with the PyPI package, so auditors can run it locally, with no network needed after the initial download. No dashboard, no registration, no external services, running entirely in the local process against SQLite.

Usage

Installation paths include:

  • Claude Desktop one-click install: download the latest .mcpb from Releases and drag it into Claude Desktop, which automatically installs hooks, MCP server configuration, and dependencies.
  • Claude Code / IDE plugins: install via pip install.
  • HTTP transport: expose MCP via Streamable HTTP for remote agents to connect, see docs/http_transport.md for authentication, CORS, and reverse proxy setup.

Quick try: run pip install -U world-model-mcp && world-model demo, and you will see three sample decisions signed into a tamper-proof epoch, verified as VALID, then demonstrate tampering with one byte and re-verifying to prove that tampering is detected immediately (INVALID), then restore and re-verify. The whole process is offline, with no account and no network required; world-model-demo-receipt.json is generated in the current directory, and a shareable verification URL is printed.

Offline verification command: pip install world-model-mcp && etch-verify manifest.json, which verifies the manifest against the pinned public key.

Applicable scenarios

Suitable for developers and teams who want to add persistent memory to AI coding agents, reduce hallucinations, make corrections take effect across sessions, and block regressions before edits land; also suitable for deployment scenarios that require a cryptographically verifiable audit trail (such as internal or external compliance requirements for SOC 2, HIPAA, EU AI Act, etc.). Supports Claude Code, Cursor, Codex, Continue, Cline, Windsurf, GitHub Copilot Chat,pi, OpenClaw, Hermes Agent, and more than 10 other agents, each with a corresponding starter repository; the MCP wire format is the standard format, and any MCP-compatible client can use the same tools.

Limitations and notes

The project is MIT-licensed and runs fully locally. The audit chain is an optional feature and must be explicitly enabled. The hosted version etch.systems provides additional capabilities such as KMS-encrypted signing keys, a public transparency log, external anchoring (Sigstore Rekor + Bitcoin OpenTimestamps), an operations dashboard, and compliance framework mapping. The offline reference verifier is the same in both cases. Regarding specific charges, prices, and free tier details, the material only mentions that the hosted service has a free tier and pay-as-you-grow pricing, and does not provide more detailed pricing information.