Mnemoscope

io.github.toonight由 GitHub 帳號 toonight 發布v0.2.0更新於 Oct 24, 2026

Predict context rot, sign every agent write, tier reads. Markdown-native, 100% local.

已驗證STDIO僅桌面檔案與儲存知識與記憶

概覽

AI 產生的概覽

本機 MCP 伺服器,為 Markdown 筆記庫評估上下文腐化風險、依新鮮度分層讀取筆記,並記錄帶簽章的代理讀寫日誌。

可以做什麼
評估筆記庫的上下文腐化風險,給出 0–100 分數、主要因素、因素明細、風險最高的筆記,以及筆記庫統計與 token 估算。依筆記新鮮度把筆記庫劃分為工作、情境與語意三層,可設定年齡門檻。為讀取、寫入、建立與刪除操作記錄帶簽章的日誌項目,回傳簽章、金鑰指紋與前一雜湊。讀取全部日誌項目或單一工作階段的項目。
適用情境
適合助理在本機 Markdown 或 Obsidian 風格筆記庫上工作時使用:判斷上下文退化程度、依新鮮度決定先讀哪些筆記,並留下可驗證的代理操作紀錄。
執行需求
以 npm 套件形式透過 stdio 在本機執行,可全域安裝或以 npx 啟動,需要 Node.js。日誌工具需要筆記庫中存在 Ed25519 金鑰對,首次使用前須以配套 CLI 或 Obsidian 外掛產生。未宣告帳號、API 金鑰或環境變數。
安裝前請注意
日誌工具會將帶簽章的項目寫入筆記庫,需指向正確的筆記庫路徑。日誌簽章依賴筆記庫金鑰對,非本庫金鑰簽署的項目無法通過驗證。可選的時間戳 CLI 只將簽章摘要傳送到公開行事曆,不傳送筆記內容。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Mnemoscope,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

@mnemoscope/mcp-server

MCP server exposing Mnemoscope's context-rot scoring, tiered reading, and signed journal tools to any Model Context Protocol–compatible client (Claude Code, Cursor, ChatGPT desktop, anything that speaks MCP over stdio).

100% local. No cloud. No telemetry. Apache-2.0.

Install

bash
npm install -g @mnemoscope/mcp-server# the `mnemoscope-mcp` binary is now on your PATH

Or run via npx without a global install:

bash
npx -y @mnemoscope/mcp-server

Connect to Claude Code

jsonc
// ~/.claude/settings.json{  "mcpServers": {    "mnemoscope": {      "command": "npx",      "args": ["-y", "@mnemoscope/mcp-server"]    }  }}

Restart Claude Code. The four tools below are discovered automatically.

Tools

ToolInputWhat it returns
predict_rotvault_path0–100 risk score, dominant factor, full factor breakdown, top-5 risk notes, vault stats
get_tiered_readvault_path, optional working_max_age_days, episodic_max_age_daysWorking / episodic / semantic split of the vault by freshness
record_journalvault_path, session_id, op (read/write/create/delete), target_path, optional contentThe signed entry, including its sig, keyFingerprint, and prevHash
read_journalvault_path, optional session_idAll journal entries, or a single session's

Example — predict_rot

json
{  "rot_risk": 41,  "dominant_factor": "tokenVolume",  "factors": {    "tokenVolume": 100, "semanticRedundancy": 0,    "distractorDensity": 2.65, "structuralCoherence": 100, "freshnessSpread": 0  },  "top_risk_notes": [    { "relPath": "brainstorms/.../transcript.md", "approxTokens": 13439, "reason": "very large note" }  ],  "vault_stats": { "noteCount": 113, "approxTokens": 506823 },  "baseline_model": "v0-heuristic",  "version": "0.1.0"}

Bootstrap a vault

Before the journal tools work the vault needs an Ed25519 keypair. The companion @mnemoscope/cli ships mnemoscope-init for that:

bash
npx -p @mnemoscope/cli mnemoscope-init /path/to/your/vault

The auto-onboarding modal in the Obsidian plugin does the same on first launch.

Verify the journal

bash
npx -p @mnemoscope/cli mnemoscope-verify /path/to/your/vault

Exits non-zero on field tampering, hash-chain break, or entries signed by a key the current vault does not own.

What this server does NOT do

  • It does not store or transmit your vault content. All reads are local; all writes are local.
  • It does not call any external service. (The optional mnemoscope-timestamp CLI in @mnemoscope/cli POSTs only a SHA-256 digest of each journal entry's signature to a public OpenTimestamps calendar — never any vault content.)
  • It does not replace a memory store. It is an instrument for one — see the README for the comparison with Letta, Mem0, Zep, Cognee, MemPalace, and Smart Connections.

Repo + docs

License

Apache-2.0.

來源:packages/mcp-server/README.md,提交 914e15a

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.2.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分