
Citepath
io.github.arif-js由 GitHub 帳號 arif-js 發布v0.1.4更新於 Oct 27, 2026
Self-hosted search over your documentation, with citations, for AI assistants and apps
發布方自己的服務:citepath
概覽
Citepath 為自有文件網站與本機文件資料夾建立索引,讓助理檢索並給出附引用的回答。
- 可以做什麼
- 檢索已索引的文件,回傳排序後的段落,並標示出自哪個頁面章節或檔案行
- 讀取完整段落,可選擇一併取得前後章節以便細讀
- 依來源、路徑前綴與結果數量篩選,跨多個來源檢索
- 索引文件網站(依 sitemap 或跟隨連結)以及本機 Markdown、MDX 或文字資料夾
- 透過唯讀的本機 HTTP API 或 JSONL 匯出,把同一份索引提供給其他工具
- 適用情境
- 適合希望助理依據最新、私有或特定版本的文件作答,而非依賴模型記憶的情境,例如框架文件、內部 wiki、維運手冊或儲存庫文件。也適合離線環境、沒有網路搜尋的助理,以及需要本機檢索層並回傳附引用段落的開發者。
- 執行需求
- 以本機程序方式執行,可透過 npx 或全域 npm 安裝;需要 Node.js 22.16 或更新版本。需先用命令列建立設定並新增、同步來源。不需帳號、API 金鑰或遙測。僅在同步文件網站時需要網路存取。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Citepath,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Citepath
Self-hosted search over your documentation, with citations, for AI assistants and apps.
Index docs websites and local folders, then let Claude, Cursor, or any MCP client answer from the current docs, with a link to every section it used.
[Glama MCP server] [npm] [CI] [License: MIT] [MCP] [Node]
Quick start · Demo · Why not RAG? · Commands · Docs · Contributing
Status: pre-release (0.1). Expect breaking changes before 1.0.
What it does
- 📚 Indexes your docs: documentation websites (from the sitemap or by following links, respecting robots.txt) and local Markdown, MDX, or text folders.
- 🔗 Returns cited passages: each search result links to the exact page section or file lines it came from.
- 🧠 Understands code and plain English:
getUserName,--dry-run, and "how do I configure caching" all work. - 🤖 Connects to AI assistants: Claude Code, Cursor, and other MCP clients search your docs; your own tools use the CLI or a local HTTP API.
- 🔒 Runs locally: no account, no API keys, no telemetry. Assistants get read-only access, and a failed sync never deletes good data.
Citepath finds passages; it doesn't write answers. Your assistant writes the answer from those passages and cites them, so you can check every claim.
Demo
Index the current Next.js docs once, then search them:
[Searching the Next.js docs with citepath]
The same search works inside your assistant:
You: Using citepath, how do I set how long cached data lives in Next.js?
Claude: Add
'use cache'to the function and callcacheLife('hours'), or pass{ stale, revalidate, expire }. This requirescacheComponents: trueinnext.config.ts. Sources: cacheLife, use cache, cacheComponents
Who it's for
- Developers using AI coding assistants: answers based on the current docs of your frameworks and services, not on what the model remembers.
- Builders of AI tools: a retrieval layer that returns ranked, cited passages as JSON for any model.
- Small teams: internal wikis, runbooks, and docs folders searchable by assistants, without a hosted platform.
- Open-source maintainers: an easy way for users to connect your project's docs to their assistants.
Why not RAG or web search?
It is RAG: the retrieval half, run locally. Instead of embeddings and a vector database, Citepath uses a keyword index. That means no embedding API or keys, exact matches on identifiers like cacheLife, the same results for the same query, and citations down to the section. The trade-off: it matches words, not meaning, so "sign in" won't find a page that only says "authentication".
Web search is better for broad, one-off questions. Citepath is better when:
- the docs are private: internal wikis, runbooks, and repo docs aren't on the web;
- the version matters: you choose what's indexed, and search prefers the current copy of a page over old versions;
- you want less to read: on the Next.js docs, 5 cited passages for "how do I set the cache lifetime" are about 4,200 characters, while the five pages they come from hold about 51,000 characters of text (the
cacheLifepage alone is about 1 MB of HTML); - you're offline, or your assistant has no web search.
"The model already knows the docs." Only the version it was trained on. Fast-moving APIs, such as Next.js cacheLife, cacheComponents, or the new two-argument revalidateTag, are where models answer from outdated memory.
"Why not paste the docs into the prompt?" That works for a few pages. The Next.js docs are 845 pages; search picks the few passages that matter.
Costs and limits. Measured on a laptop with the Next.js and Vercel docs:
- Free to run: no account, API keys, or per-search fees. Searches take milliseconds (p95 13 ms across about 30,000 passages).
- Setup time and disk: syncing 845 Next.js pages took about 7.5 minutes at the polite default of 2 requests per second; the two sites use 83 MB.
- Freshness: results are as current as your last sync. There is no built-in scheduler, so run
citepath syncfrom cron. - Not indexed: sites that need JavaScript to render, PDFs, and docs behind a login.
- Single user: one API token, no per-user permissions.
Use something else for broad questions (web search), meaning-based search (embeddings), or team access control. See Known limitations.
Quick start
Requires Node.js 22.16 or later.
Run /mcp in Claude Code to check the connection. For other assistants and scope options, see MCP setup. To run from source, see CONTRIBUTING.md.
Commands
Global options: --json, --quiet, --config <file>, --data-dir <dir>. See the CLI reference for all options.
Documentation
CLI · Configuration · How sync works · MCP setup · Local API · Result contract · Evaluation · Limitations · Design
Contributing
Contributions are welcome. Read CONTRIBUTING.md, open an issue before a larger feature, and report security problems privately as described in SECURITY.md.
License
來源:README.md,提交 15aeadd
工具
0版本歷史
2- v0.1.4最新Oct 20, 2026
- v0.1.3Oct 15, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分