REQ-DDB-WIKI-032: The MCP server hosts a hub of every indexed repository’s wiki, on request¶
What it requires
- With
CLEW_WIKI=1the MCP server runs an HTTP thread beside its transport — none otherwise — bound to 127.0.0.1 on an OS-chosen port, refusing every request without the per-session token (a?t=query sets an HttpOnly, SameSite=Strict cookie), and writing nothing to stdout. /lists every registered target with its wiki's state (built, building, queued, not built, failed, or unreachable when the checkout is gone — listed, never dropped);/r/<slug>/serves that target's wiki, built on demand in a subprocess, one build at a time, behind a page that reloads until it is ready; a path resolving outside the built site is refused before any build.- The hub's URL is recorded in
wiki.jsonunder the state root, created 0600, and removed with the hub when the transport ends.
- tier
- PASS
- declared
- implemented
- priority
- P1
How it is met
Implemented by
build_in_subprocessclew/mcp_server/wikihub.py:71request_buildclew/mcp_server/wikihub.py:311startclew/mcp_server/wikihub.py:229start_if_enabledclew/mcp_server/wikihub.py:868stopclew/mcp_server/wikihub.py:250stopclew/mcp_server/wikihub.py:894
Tests (20)
Linked directly
20 tests: 20 passed