
Project Lore
io.github.tamas-fm由 GitHub 账号 tamas-fm 发布v0.1.1更新于 Oct 24, 2026
A local-first MCP server that routes development tasks to authoritative project documentation.
概览
一个本地优先的 MCP 服务器,为仓库文档建立索引,并把开发任务路由到最相关、最权威的文档。
- 可以做什么
- 它会扫描仓库中的 Markdown、文本、HTML、YAML、JSON、Mermaid 和指令文件,按类型与权威级别分类,并建立可重建的本地 SQLite(FTS5)索引,按内容哈希增量更新。它提供三个工具:route_task 针对给定开发任务返回应优先阅读的文档与章节顺序;search_project_knowledge 对文档做全文检索,并按权威级别与状态重新排序,每条结果显示新鲜度;get_document_context 返回单个文档的章节与带类型的关系。回答是有界摘录并附精确来源位置,而非整个文件,同时会标记过期或被取代的来源。
- 适用场景
- 当助手需要了解项目为何这样设计、哪个文档约束某项任务,或该知识是否仍然有效时适用。它补充那些回答代码实现在哪里、有哪些依赖的代码智能服务器。最适合拥有实质书面文档、决策记录或约束条件的仓库。
- 运行要求
- 需要 Node.js 22 或更高版本。通过 npm 包 project-lore-mcp 以本地 stdio 进程运行,可全局安装或用 npx 运行。需要提供要索引的仓库根路径,且每个仓库单独配置。若引用仓库之外的文档根目录,客户端必须被授予对这些路径的文件系统访问权限。不需要账号、API 密钥或网络访问。
安装
在 SourceWeft 中
- 打开 控制台中的 Project Lore,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
project-lore-mcp
A local-first MCP server that routes coding agents to the smallest useful set of project documentation — decisions, intent, and constraints — with provenance and freshness.
Code-intelligence tools (such as codebase-memory-mcp) answer where is this implemented and what depends on it. This project answers the complementary questions: why was it designed this way, which document governs this task, and is that knowledge still current?
What it does
Point it at a repository (plus optional external documentation roots). It:
- discovers Markdown, text, HTML, YAML, JSON, Mermaid, and Claude instruction files;
- classifies each document by kind and authority (instructions → canonical → design → planning → historical → generated → proposed);
- extracts headings, sections, links, frontmatter, ADR status, and explicit "read first" / "supersedes" / task-routing relationships — deterministically, with recorded provenance (structural extraction applies to Markdown; other formats receive plain-text indexing);
- stores a rebuildable local index in SQLite (FTS5), updated incrementally by content hash;
- answers task and knowledge queries with bounded excerpts and exact source locations — never whole files, flagging stale or superseded sources instead of hiding them.
MCP tools
Install and run
Requires Node.js ≥ 22.
Claude Code
Run this once from inside the repository you want to index:
For teams, commit a shared configuration instead:
The project scope uses a relative root (.) so it works on any checkout.
Claude Code will ask each user to approve project-scoped servers before
running them.
One repository, one configuration. Project Lore's command contains a fixed root path, so it always indexes one specific repository. Register it separately per repository rather than globally.
It coexists with codebase-memory-mcp — configure both; they own different questions. If your configuration references documentation outside the repository, Claude Code must be granted filesystem access to those paths (add them as additional working directories or approve the permission prompts).
Try the example
Configuration
Optional project-lore.config.yaml at the repository root:
See docs/configuration.md for the full reference and docs/concepts.md for the authority model.
Design principles
Store and retrieve documented intent conservatively. Derive structure automatically. Preserve provenance always.
- Local-only by default. No network access, no telemetry, no uploads.
The index is regenerable and safe to delete (
.project-lore/, gitignored). - Deterministic before AI. v1 uses no LLM and no embeddings. Every stored relationship records how it was extracted; inferred data can never masquerade as documented fact.
- Evidence, not instructions. Retrieved excerpts are quoted, bounded, and attributed. Document content is treated as untrusted data (see docs/provenance-and-trust.md).
Project status
v0.1.0 — first vertical slice. See docs/architecture.md, the ADRs in docs/adr/, and CONTRIBUTING.md.
License: MIT.
来源:README.md,提交 2841711
工具
0版本历史
1- v0.1.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分