Korg Recall MCP
概览
作者提供的说明(英文原文)
Cross-vendor semantic memory: recall across Claude Code / Codex / Grok sessions by meaning.
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i1 项中通过 1 项依据公开信息检查;尚未扫描代码
- 使用情况i非常新↓ 54/周 · ★ –
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 搜索与 AI 记忆
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:1 项中通过 1 项
- 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
- 注册中心没有列出需要填写的密钥。
你需要
- npm已安装 Node.js(用于 npx 命令)
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"korg-recall": {
"command": "npx",
"args": [
"-y",
"@korgg/recall-mcp"
]
}
}
}在终端中运行这条命令
claude mcp add korg-recall -- npx -y @korgg/recall-mcp或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"korg-recall": {
"command": "npx",
"args": [
"-y",
"@korgg/recall-mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"korg-recall": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@korgg/recall-mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月9日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 New1Direction 验证,该账户拥有此仓库
- … 尚未检查
仍在维护
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与“搜索与 AI 记忆”中的其他服务器比较i
- 星标数多于此分类中其他 5759 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 5759 个服务器的 15% 更新
- 基础检查结果等于或优于此分类中其他 5759 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Korg Recall MCP 安全吗?
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于–,最新版本(0.1.1)于5个月前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
有什么可以替代它?
同一分类中有:Context7, Codebase Memory, Exa
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Codebase Memory
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Exa
Connect AI agents to Exa for web search, content fetching, and multi-step research.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
korg
A tamper-evident, SHA-256-chained ledger for AI agents. *Every step your agent takes is recorded in a hash chain anyone can verify — edit one event and the chain names it. No trust in the producer, no blockchain.*
English · 简体中文 · 繁體中文
30-second quickstart
Build the standalone verifier (~10s cold — it compiles only the ledger crates), verify a recorded Claude Code session, then rewrite one event and watch the chain catch it:
git clone https://github.com/New1Direction/korg && cd korg
cargo build --release -p korg-verify cp spec/korg-ledger-v1/web/samples/session.jsonl /tmp/session.jsonl
./target/release/korg-verify /tmp/session.jsonl
✓ journal VALID — 6 events, hash-chain + DAG intact
sed -i.bak '4s/return a - b/return a + b/' /tmp/session.jsonl # rewrite the agent's edit
./target/release/korg-verify /tmp/session.jsonl
✗ journal INVALID — 1 problem(s):
- seq 4: entry_hash mismatch (content was tampered) (exit 1)
No Rust toolchain? Drop the same file into the in-browser verifier — it runs locally and sends nothing.
Validated across three vendors (N=3)
The same korg-ledger@v1 format ingests traces from three architecturally different production agents, with causal structure (spec §2a) preserved through the round-trip:
| Agent | Transport | Tool shape | Adapter | Tests |
|---|---|---|---|---|
| Claude Code | JSONL on disk + live hooks | Anthropic tool_use / tool_result blocks | adapters/claude-code — smoke-tested on a real 3,141-event session, zero dropped | 58 ✓ |
| OpenAI Codex CLI | WebSocket frames | OpenAI function_call + freeform custom_tool_call | adapters/codex-ws | 11 ✓ |
| Grok Heavy | NDJSON stream | 16-agent parallel fan-out | adapters/grok-heavy | 14 ✓ |
Because all three land in one format, one verifier checks them all — and it has byte-identical Rust, Python and JS implementations, differentially fuzzed against each other with 0 divergences. Known limits are written down rather than hidden: see the Grok Heavy limitations (ingest order vs. wall-clock concurrency, cross-agent chatroom edges).
Full demo: record → verify → rewind
AI agents are black boxes. When they fail, you can't debug. When they succeed, you can't reproduce it.
When they do something wrong, you can't undo it.
Korg fixes this.
What Korg Does
[!NOTE]
Universal Ingestion Integration Mode:
Korg v1 is an MCP-callable audit sink. Any MCP-compatible coding agent (Claude Code, Codex, etc.) can call korg's tools to record its session as a causally-linked, replayable, rewindable ledger. The agent must be instructed to log its actions — typically via system prompt or MCP server configuration. Fully passive auditing without agent cooperation is on the roadmap for future versions.
[!WARNING]
Trust Boundary & Deployment Scope:
Korg v1 is designed strictly for local, single-user workspaces. Multi-tenant and networked deployments require cryptographic authentication and permission bounds that are not yet shipped. Running the server on an untrusted or public network exposes workspace read/write access.
Korg is a cognitive hypervisor — a runtime layer that sits beneath your AI agents and governs every decision they make.
It doesn't replace your LLM. It governs what the LLM does.
Foundation Model → predicts, suggests, generates
──────────────────────────────────────────────────────────── Korg Cognitive Runtime → schedules, validates, isolates, reconciles, replays, heals, governs
Every agent action is:
- Appended to an immutable, cryptographically-signed ledger
- Ordered with Hybrid Logical Clocks (causal, deterministic, globally consistent)
- Replayable — rebuild exact state at any point in history
- Reversible — rewind the ledger to any prior sequence point
Try the Time-Travel Demo
You can run the built-in sandbox demo to see cognitive time-travel in action. The demo sets up a temporary workspace with a buggy Python script, lets a simulated coding agent make a wrong edit, catches the test failure, rewinds the workspace and ledger to before the edit, and speculatively commits the correct fix:
cargo run -- demo
You will see the complete, colorized time-travel sequence:
⚡ STARTING KORG COGNITIVE TIME-TRAVEL DEMO ⚡
──────────────────────────────────────────────────────────────────────────────── [korg] Initializing sandboxed demo environment... [korg] Created temporary workspace with math_utils.py (subtraction bug present).
🚀 PHASE 1: AGENT INITIATES RUN (WRONG PATH) [seq 390] actor: agent:claude-code@0.2.29 | tool: user_prompt | prompt: "Fix subtraction bug and verify tests pass" [seq 391] actor: agent:claude-code@0.2.29 | tool: Read | file: math_utils.py [seq 392] actor: agent:claude-code@0.2.29 | tool: Edit | result: "Modified return a + b (wrong fix)" [seq 393] actor: agent:claude-code@0.2.29 | tool: Bash | command: "pytest" -> ❌ FAILED (2 tests failed)
📊 LEDGER STATE (BEFORE REWIND): Before rewind: events 390-393 (prompt, read, edit-wrong, test-failed) ├── seq 390 (user_prompt) -> triggered_by: None ├── seq 391 (Read) -> triggered_by: Some(390) ├── seq 392 (Edit) -> triggered_by: Some(391) ├── seq 393 (Bash) -> triggered_by: Some(392)
⏳ PHASE 2: INITIATING REVERSIBLE REWIND TO SEQ 391 [korg] Truncating journal ledger to sequence ID 391... [korg] Restoring workspace snapshot via git read-tree (O(1))... [korg] Reset math_utils.py file state back to sequence 391 bug state. [korg] Rebuilding 3 read-model projections...
📊 LEDGER STATE (AFTER REWIND): After rewind: events 390-391 (prompt, read) ├── seq 390 (user_prompt) -> triggered_by: None ├── seq 391 (Read) -> triggered_by: Some(390)
🚀 PHASE 3: AGENT DIVERGES DOWN CORRECT PATH (SPECULATIVE REPLAY) [seq 392] actor: agent:claude-code@0.2.29 | tool: Edit | result: "Modified return a - b (correct fix)" [seq 393] actor: agent:claude-code@0.2.29 | tool: Bash | command: "pytest" -> ✓ PASSED (2 passed)
📊 LEDGER STATE (AFTER DIVERGENT RUN): After new run: events 390-393 (prompt, read, edit-right, test-passed) ├── seq 390 (user_prompt) -> triggered_by: None ├── seq 391 (Read) -> triggered_by: Some(390) ├── seq 392 (Edit) -> triggered_by: Some(391) ├── seq 393 (Bash) -> triggered_by: Some(392)
✓ DEMO COMPLETE: Time-travel execution succeeded! Ledger truncated, workspace rolled back, and a different future was successfully committed.
*No other AI agent runtime lets you do this.*
Core Architecture
Korg is built on the same theoretical foundations that make databases and operating systems reliable — applied to AI cognition for the first time.
| Invariant | What it means |
|---|---|
| Append-only WAL | Every cognitive event is a ledger entry. Nothing is mutated, only appended. Like a database WAL, but for AI thought. |
| HLC Causal Ordering | Hybrid Logical Clocks guarantee globally consistent, causally ordered event streams — even across distributed swarm workers. |
| Deterministic Replay | Any campaign can be replayed byte-for-byte from the ledger. Same inputs, same outputs, every time. |
| Speculative Branches | Fork execution into parallel hypothetical paths. Preview before committing. Discard freely. |
| Execution Checkpoints | Snapshot the entire runtime state: ledger offset, projection views, lease maps, workspace tree. Restore in O(1). |
| Micro-Healing | Transient failures (lock conflicts, stale state) are automatically healed at the effect level, with full retry audit trails. |
| Semantic Governance | Swarm actions are validated against BERT embedding cosine similarity — semantic alignment, not keyword matching. |
┌────────────────────────────────────────────────────────────────┐
│ korg v0.1.0 │ session: 019e5333-efc9-7c70 │ ● ACTIVE │ ├───────────────────────────────┬────────────────────────────────┤ │ SWARM PLAN │ LIVE MERKLE LEDGER │ │ ├─ [●] Captain [PLANNING] │ (tx_00)→(tx_01)→[tx_02]→... │ │ ├─ [●] Harper [RESEARCH] │ │ │ ├─ [●] Benjamin [SYNTHESIS] │ TELEMETRY │ │ └─ [○] Lucas [IDLE] │ ├─ Velocity 85.2 t/s ▇▆▄▂█ │ │ │ ├─ Entropy 0.451 ▄▃▂▃▄ │ │ GOVERNANCE GATES │ └─ Progress 68.7 % ▂▃▄▅▆▇ │ │ ├─ 🟡 Amber Security [IDLE] │ │ │ ├─ 🟢 Consensus [ACTIVE] │ LEDGER STREAM │ │ └─ 🔵 Steering Fork [IDLE] │ [tx_03] Benjamin: patch auth │ └───────────────────────────────┴────────────────────────────────┘
Quick Start
Build from source
The crate is not yet published to crates.io; install from source:
git clone https://github.com/New1Direction/korg
cd korg cargo build --release ./target/release/korg --help
Python bridge (for korgex / korgchat)
cd crates/korg-bridge
maturin develop # builds the PyO3 extension into the active venv python3 -c "import korg_bridge; print(korg_bridge.version)"
Run your first campaign
# Interactive TUI dashboard
korg campaign --tui --prompt "Refactor the auth layer to use JWTs"
Web cockpit at localhost:8080
korg campaign --web --prompt "Optimize the database connection pool"
Pure autonomous goal mode (--goal is a top-level flag). Each persona works in
its own git worktree and runs a real cargo check, so on a large repo a cold
run takes minutes; --speculative pre-warms a shared target dir.
korg --goal "Write and validate a full test suite for src/parser.rs"
Run the full multi-persona swarm on a REAL local model — every persona
(Captain, Harper, Benjamin, Lucas, Evaluator) runs as a real worker
subprocess doing real, measured, attested work. Defaults to a hermetic
deterministic provider; --provider ollama makes it live.
korg --goal "Fix the failing test in src/lib.rs" --provider ollama --model qwen2.5:7b
Preview without committing (dry-run; --preview is a top-level flag)
korg --preview "Refactor the main event loop"
Rewind & Verify
# Rewind the capability journal (.korg/capability_journal.json) to a prior
sequence point. It is populated by campaigns (korg --goal, korg campaign);
on a fresh checkout there is nothing to rewind yet — korg demo shows the
full rewind flow in a self-contained sandbox.
korg rewind --seq 4
Drive the honest pipeline on a fixture and emit a verifiable ledger
korg run-once "Fix the add function in src/lib.rs so it adds"
Same pipeline, but with a REAL local model (ollama) on an arbitrary task —
the model writes the patch, Korg applies it, measures the real git diff +
cargo check, and attests only what actually changed.
korg run-once "Fix the bug in src/lib.rs: max() returns the minimum. Output the COMPLETE corrected src/lib.rs: \\\rust $(cat your-repo/src/lib.rs) \\\"
只显示了开头部分;其余内容请在仓库中阅读