
livewiki
io.github.eduardoabreu81由 GitHub 帳號 eduardoabreu81 發布v0.3.4更新於 Oct 27, 2026
A repository wiki of Markdown pages anchored to real code: read, search, and verified writes.
概覽
讓編碼助理讀取、搜尋並安全寫入與程式碼錨定的儲存庫 Markdown wiki 的 MCP 伺服器,每次寫入都做結構化檢查。
- 可以做什麼
- 讀取並搜尋儲存庫 wiki 中的 Markdown 頁面
- 領取待辦的文件任務,提交新建或更新的頁面
- 寫入的頁面其程式碼引用須錨定到真實索引符號,不合格的寫入會被拒絕並回復
- 保留人工擁有的頁面與手寫區塊,同時追蹤錨定符號的變動
- 適用情境
- 當你希望編碼助理為儲存庫建立或維護一套程式碼引用始終對應真實符號的 wiki,並在合併前找出虛構符號或失效錨點時使用。
- 執行需求
- 以本機 stdio 程序執行,透過 npx @livewiki/mcp 並傳入 --repo 路徑參數;需要 Node.js 24 或更新版本。儲存庫需先以 livewiki 命令列工具初始化。由所連接的助理撰寫頁面時不需 API 金鑰;可選的無人值守批次模式需要以環境變數提供模型供應商金鑰,例如 ANTHROPIC_API_KEY 或 OPENAI_API_KEY。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 livewiki,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
livewiki
Code-anchored documentation that knows when it is stale.
livewiki turns a repository into a Markdown wiki whose every code reference is anchored to a real indexed symbol. An LLM writes the prose; livewiki does the deterministic work — planning the pages, running structural anti-hallucination checks on what the model wrote, tracking which anchored symbols changed, and preserving your edits.
The wiki is exposed to any coding agent by
@livewiki/mcp — an MCP (Model Context Protocol)
server with eight tools for reading, searching, and safely writing the wiki.
[npm @livewiki/cli] [npm @livewiki/mcp] [CI] [License: MIT]
livewiki view builds a self-contained offline site from the wiki — grouped
sidebar, offline search, diagrams, and dark mode:
[livewiki viewer showing a generated quickstart page]
Example wiki generated by livewiki for MoneyPrinterTurbo-Plus, an external Python repository.
Why
Technical docs go stale the moment the code changes. livewiki makes that visible and cheap to fix instead of silent:
- Deterministic anti-hallucination checks. Every code reference must point
at a real indexed symbol.
livewiki verifyreads the wiki fresh from disk and fails on invented symbols, broken anchors, and signatures that no longer match — including references the LLM wrote seconds ago, without runningindexfirst, and without spending a token. Structural, not semantic; the section below draws the line. - Your edits win. Pages you mark
owner: humanare never rewritten, andlw:manualblocks are preserved byte-for-byte. - Debt is tracked, not discovered.
livewiki statusranks what drifted; a GitHub Action can gate every merge on zero documentation debt, without spending tokens. - Works where you already work. Bootstrap and maintain through the coding agent you use, or run a fully automated batch.
What verify checks — and what it doesn't
The anti-hallucination layer is deterministic and structural. livewiki verify
reads the wiki fresh from disk — so a page an LLM wrote seconds ago is checked
without running index first — and fails on:
- a cited symbol that does not exist in the code;
- an anchor that broke because the symbol moved, was renamed, or was deleted;
- a cited signature that no longer matches the indexed one;
- an internal link that does not resolve;
- a referenced artifact that is missing from disk;
- frontmatter or page structure that violates the format contract.
That removes whole classes of fabricated content — the invented function, the API that never existed, the reference that quietly rotted — before a reader ever sees it, at zero token cost. Anything that fails is rejected and rolled back rather than merged.
It does not prove that a sentence is true. A plausible but wrong explanation of code that really does exist passes every check above, because every check above is about structure and identity, not meaning. Read "anti-hallucination" here as a layer that mechanically eliminates a large class of fabrication and tells you the moment code moves under the prose — not as a guarantee of factual accuracy. Reviewing the explanation itself is still your job.
Quick start
Requires Node.js 24 or newer.
1. Install
(npx @livewiki/cli works too, without installing globally.)
2. Initialize
From the root of the repository you want documented:
Indexes the code and creates the wiki skeleton under livewiki/, plus a
derived cache under .livewiki/ (added to .gitignore). Deterministic — no
LLM call, no tokens.
3. Bootstrap the wiki once
You have two routes — pick one.
Route A — through your coding agent (no API key needed):
The installer detects your agent, wires the MCP server, the
document-as-you-go skill, and git hooks. Then ask the agent to bootstrap the
wiki; it pulls tasks from livewiki_next_task and submits pages with
livewiki_write_doc using the model it already has.
Route B — a configured LLM API (unattended):
The wizard lists the providers, asks for your API key (typed without echo),
and saves it. Bare livewiki on an unconfigured repo starts the same wizard.
Then:
The resumable pipeline plans real page units and writes one page per source
file and folder, plus flows, concept topics, diagrams, and an
understanding.md synthesis. Interrupt it and resume with
livewiki batch resume <runId>.
4. Verify and browse
Works with your coding agent
livewiki install auto-detects and wires 13 agents over MCP (with skills
and hooks where the agent supports them):
Claude Code · Codex · Cursor · Kimi · Gemini CLI · OpenCode · OpenClaw · Cline · Kiro · Qwen · Warp · Zed · Hermes
Prefer manual wiring? Any stdio MCP client works:
The server is also published to the official MCP
Registry as
io.github.eduardoabreu81/livewiki, so a client that resolves servers from the
registry can find it by name instead of using the snippet above.
Languages
Anchored pages cite real symbols; the prose floor still gives every file a place in the wiki. Tier-1 language support grows as the pattern is proven (Go, Rust, and Java each landed this way).
Providers
livewiki config lists these 17 presets. Each reads its own API-key
environment variable; livewiki config show prints the one your preset
expects without ever showing the value.
ollama and lmstudio need no key for a local server. For CI and headless
automation, set the env var directly — it takes precedence over the saved key.
What a generated page looks like
Excerpt from this repository's own
livewiki/core-src/verify.md:
The prose explains the implementation; the lw:anchors marker ties the section
to real indexed symbols, so staleness and invalid references are detected
mechanically.
How it works
- Deterministic layer — the CLI indexes source, extracts symbols, computes staleness, plans work, tracks debt, and verifies — without a model.
- Writing layer — a connected agent (or an API-backed batch) writes the prose, from a closed list of allowed symbol keys.
- Anti-hallucination layer — deterministic and structural: code anchors, cited signatures, internal links, artifacts, and page structure are all checked against disk; invalid writes are rolled back. It eliminates fabricated and rotted references, not semantic mistakes.
- Human ownership —
owner: humanpages are never rewritten;lw:manualblocks are preserved byte-for-byte. - Portable baseline — the accepted state of every documentation obligation
lives in a versioned
livewiki/.baseline.json, so debt is enforced against a real baseline and the wiki survives a deleted local cache.
Documentation debt can gate every merge in CI, without LLM calls or tokens — see the GitHub Actions template.
Historical comparison methodology and dated results are archived in Benchmarks.
Packages
Documentation
- SPEC.md — behavior and format contracts
- VISION.md — product rationale and non-goals
- docs/ROADMAP.md — approved backlog and execution order
License
MIT — see LICENSE.
來源:README.md,提交 6edf2f3
工具
0版本歷史
1- v0.3.4最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分