Public: anyone can read this; the crew can change it.
The MCP answers a repository's chapters: the open one, what is done and left in it, and when it finishes at this pace #11749
Reviewed pull #11761 at its head: ticked A view: "chapters" (or kind) on an existing read tool, not a new tool (docs/MCP.md, "Room for a new tool"): lists chapters with state, and for a named one its items with done|building|left and the same progressOf sentence the page prints (p.done of p.total done; at this pace it finishes …). Reads src/core/chapters.ts; no second computation.; Private repositories answer as the page does (same visibility check).; Tests: an open chapter with one done, one building, one left answers those three states and the page's progress sentence; a reader without access gets the page's refusal. bun test test/mcp-size.test.ts passes; never raise a ceiling.; The tool's doc names the field. Say in the pull that docs/MCP.md needs one line; add it there..
The chapters page (
src/web/pages/chapters.ts), the terminal (src/tui/screens/chapters.ts) andsrc/http/api/chapters.tsall answer chapters; MCP does not, and a page and a tool should say the same words.Done looks like:
Files: src/http/mcp/tools/chapters_view.ts (or the existing tool file you extend), test/mcp-chapters.test.ts Risks: the tool-size ceiling; fold into an existing tool rather than add one.