NeuroDock Cognitive Graph

io.github.tlennon-ie由 GitHub 帳號 tlennon-ie 發布v0.0.6更新於 Oct 24, 2026

A local typed-edge graph of people, projects, and decisions that externalises memory.

已驗證STDIO僅桌面資料庫知識與記憶

概覽

AI 產生的概覽

一個本機 SQLite 圖,記錄人物、專案、決策與概念,讓助理寫入具型別的事實並召回實體、決策與每週活動。

可以做什麼
提供四個由本機 SQLite 檔案支撐的工具。recall_entity 查詢人物、專案、決策或概念,回傳其事實、一階鄰居與解析診斷。record_fact 持久化具型別的邊事實並自動建立實體,限定在八個謂詞詞彙內。recall_decisions 依日期回傳某專案的決策,weekly_rollup 產生最近七天的伺服器端範本化摘要,不呼叫 LLM。
適用情境
適合希望助理跨工作階段保留人物、專案與決策持久記憶的情境,尤其是長時間執行或頻繁切換脈絡、否則每次工作階段都從零開始的工作。它是本機單一檔案儲存,而非共享或團隊知識庫。
執行需求
以本機 stdio 程序執行,從 PyPI 安裝(例如使用 uv 或 pip),需要 Python 與該套件執行環境。圖預設儲存在 ~/.neurodock/cognitive-graph.sqlite,可用環境變數 NEURODOCK_GRAPH_DB_PATH 覆寫。未宣告帳號、API 金鑰或網路存取。
安裝前請注意
此伺服器會寫入本機 SQLite 檔案,記錄的事實與實體會持久保存,任何能存取該路徑的程式都可讀取。它本機優先,無網路存取與遙測,source 字串按原樣儲存但從不抓取。此版本不含向量召回與嵌入。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

neurodock-mcp-cognitive-graph

Persistent entity memory for the NeuroDock substrate, exposed as an MCP server. Externalises the user's working memory of people, projects, decisions, and concepts so a hyperfocused or context-switched session does not start from zero.

This is v0.0.3 — the current release. Vector recall, fastembed embeddings, and sqlite-vec are deferred to a future version; see CHANGELOG.md.

Install

sh
uv add neurodock-mcp-cognitive-graph# orpip install neurodock-mcp-cognitive-graph

Use as an MCP server

Add to your ~/.claude.json (Claude Code) or claude_desktop_config.json (Claude Desktop):

json
{  "mcpServers": {    "neurodock-cognitive-graph": {      "command": "uv",      "args": ["run", "neurodock-mcp-cognitive-graph"]    }  }}

Quickstart

bash
# From the workspace root.uv sync --all-packages
# Start the server on stdio (Claude Desktop / Claude Code MCP config).uv run neurodock-mcp-cognitive-graph

The server stores its graph at ~/.neurodock/cognitive-graph.sqlite by default. Override with the NEURODOCK_GRAPH_DB_PATH environment variable.

Tools (v0.0.3)

ToolPurpose
recall_entity(name_or_alias)Look up a person/project/decision/concept. Returns the entity, its facts (capped at 500), first-degree neighbours (capped at 20), and a resolution diagnostic.
record_fact(subject, predicate, object, source?, confidence?)Persist a typed-edge fact. Auto-creates entities by (type, name). Enforces the v0.1.0 eight-predicate vocabulary.
recall_decisions(project, since?)Return decisions for a project, ordered by date desc, capped at 200.
weekly_rollup(project?)Server-templated activity summary for the trailing seven UTC days. No LLM call (vendor boundary).

The full input/output contract is in schemas/. The Pydantic v2 models in src/neurodock_mcp_cognitive_graph/types.py mirror those schemas.

Predicate vocabulary

The eight predicates in v0.1.0 are: mentioned_in, decided_in, reports_to, depends_on, resolved_by, blocked_by, tagged, belongs_to. Unknown predicates raise PREDICATE_NOT_IN_VOCABULARY. Extension predicates land via the v0.2 type_extensions mechanism — see ADR 0002 — cognitive-graph tool design.

Privacy

  • Local-first. No network access. No telemetry.
  • source strings are stored verbatim and never fetched by the server.
  • User content (entity names, decision titles, fact text) is never logged. Error logs include only the structured error code.

Storage

SQLite. One file. Migrations live as numbered .sql files in src/neurodock_mcp_cognitive_graph/migrations/ and are applied on first connect. The schema is described in migrations/0001_init.sql.

Architecture

src/neurodock_mcp_cognitive_graph/├── server.py            FastMCP wiring + CLI entrypoint├── types.py             Pydantic v2 models (mirror of the JSON Schemas)├── config.py            Resolves the SQLite path├── clock.py             SystemClock / FixedClock├── errors.py            ToolError envelope├── resolution.py        Entity name/alias cascade (exact, alias only in v0.0.3)├── rollup.py            Heuristic decision/blocker/next-action assembly├── storage/│   ├── base.py          Storage Protocol + row dataclasses│   ├── memory.py        InMemoryStorage (used by tests)│   └── sqlite.py        SQLiteStorage (production backing)├── tools/│   ├── recall_entity.py│   ├── record_fact.py│   ├── recall_decisions.py│   └── weekly_rollup.py└── migrations/    └── 0001_init.sql

ADR pointers

Tests

bash
uv run pytest packages/mcp-cognitive-graph/tests/ -v

25 tests covering: per-tool unit tests, a FastMCP protocol-conformance suite that exercises every tool and validates the response against the JSON Schema using jsonschema, and an end-to-end test that runs against a real file-backed SQLite store.

來源:packages/mcp-cognitive-graph/README.md,提交 2d9cac6

工具

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

版本歷史

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

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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