livewiki

v0.3.4
io.github.eduardoabreu81/livewiki Checked 3 days ago Published 3 months ago

A repository wiki of Markdown pages anchored to real code: read, search, and verified writes.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

livewiki_quickstart

Returns livewiki/quickstart.md (the low-token entry point for navigating the wiki). Errors if the wiki isn't initialized yet — run `livewiki init` first.

livewiki_read

Reads a wiki page by its relative path inside the repo (e.g. 'livewiki/auth.md'). Path must be inside the livewiki/ allowlist.

ParameterTypeDescription
path *stringRelative path to the wiki page, e.g. 'livewiki/auth.md'

livewiki_debt

Lists open documentation debt (changed/moved/deleted anchors), undocumented symbols, and overall wiki status. Equivalent to `livewiki status --json`.

livewiki_impact

Blast radius for a symbol key (e.g. 'src/auth.ts#login'): direct and transitive callers found in the indexed call graph, plus which wiki pages document any of them. Only RESOLVED call edges are walked (an edge the indexer couldn't confidently attribute to one symbol is skipped, never guessed) — treat this as a best-effort signal, not exhaustive static analysis. Bounded by maxDepth/maxNodes; `truncated: true` means the walk stopped at a bound, not that it found no more callers. Pass an EMPTY symbolKey ("") for the repo-wide change-impact package instead: working-tree changed symbols, affected…

ParameterTypeDescription
symbolKey *stringSymbol key, e.g. 'src/auth.ts#login' or 'src/auth.ts#Session.refresh'. Pass an empty string ("") for the repo-wide change-impact package.
maxDepthintegerMax caller-of-caller hops to follow (default 5)
maxNodesintegerMax distinct caller symbols to collect (default 200)

livewiki_next_task

Starts or resumes a full wiki bootstrap written by this MCP client. Returns the next prioritized Markdown task with its target path, complete closed symbol-key list, source file paths, and canonical format contract. No provider, model, or API credential is required.

livewiki_renew_task_claim

Extends the lease on a task claimed through livewiki_next_task. Pass the taskId and the claimId you were given. Returns the new leaseExpiresAt, or a stale_claim error when the lease already expired or another execution re-claimed the task.

ParameterTypeDescription
claimId *stringThe claimId returned with that task
taskId *integerTask ID returned by livewiki_next_task

livewiki_write_doc

Writes or updates a wiki page. Path MUST be inside livewiki/ (allowlist). Content is validated via `verify` before being accepted — pages with broken anchors are rejected. Never include reasoning or <think> blocks in the content; verify rejects them. Pass the taskId returned by livewiki_next_task to validate against that task's full page contract and complete it atomically.

ParameterTypeDescription
content *stringFull markdown content (with frontmatter)
path *stringRelative path inside livewiki/, e.g. 'livewiki/auth.md'
claimIdstringThe claimId returned with the task by livewiki_next_task. Required whenever taskId is set.
skipVerifybooleanSkip verify step (default false). Only use for non-anchor pages.
taskIdintegerOptional task ID returned by livewiki_next_task

livewiki_resolve_debt

Explicitly accepts the current code/document alignment into the versioned baseline. Choose one wiki page and either specific anchored symbol keys or every anchor on that page. Local SQLite debt IDs are not accepted because they are disposable projections.

ParameterTypeDescription
page *stringWiki page whose current anchored symbols are being accepted
allbooleanAccept every current anchor on the page; mutually exclusive with symbols
symbolsarrayExact anchored symbol keys to accept; mutually exclusive with all=true