
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.
概览
一个本地 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 密钥或网络访问。
安装
在 SourceWeft 中
- 打开 控制台中的 NeuroDock Cognitive Graph,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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
Use as an MCP server
Add to your ~/.claude.json (Claude Code) or claude_desktop_config.json (Claude Desktop):
Quickstart
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)
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.
sourcestrings 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
ADR pointers
- ADR 0002 — cognitive-graph tool design
— the design rationale, vocabularies, output shapes, and the three open
questions whose v0.0.3 resolutions are documented in
CHANGELOG.md. - ADR 0001 — chronometric tool design — the cross-cutting precedents (ISO 8601 with offsets, enums for coarse signals, structured errors) that this package inherits.
Tests
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版本历史
1- v0.0.6最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分