MCP sidecar calls the REST API without forwarding the wiki context. All reads/writes go to the default wiki. Fix in progress — see [[Tasks/MCP_Wiki_Routing]].
+
### ~~MCP wiki routing (bug)~~ ✅ FIXED (2026-03-15)
+
Fixed and deployed. otterwiki-mcp `1f22d71` adds Host header forwarding via ContextVar; robot.wtf `9d932b9` adds PLATFORM_DOMAIN env var. 12 tests passing. See [[Tasks/MCP_Wiki_Routing]].
-
### Multi-tenant semantic search
-
Sync thread only indexes one wiki. Each wiki needs its own FAISS index directory and sync state. See [[Tasks/Semantic_Search_Architecture]] and [[Tasks/Semantic_Search_Multi_Tenant]].
+
### Multi-tenant semantic search (bug)
+
BackendRegistry landed (commit `a8e9eb7`) but has a slug derivation bug: `os.path.basename(storage.path)` returns `"repo"` for every wiki because VPS paths are `/srv/data/wikis/{slug}/repo`. All wikis share one index. Also: no initial reindex for new wikis, global write lock contention, stale default backend fallback. See [[Tasks/Semantic_Search_Architecture]] and [[Tasks/Semantic_Search_Multi_Tenant]].
### Disk usage cap
No per-wiki disk space limit. A user could fill the VPS. See [[Tasks/Disk_Usage_Cap]]. 50MB per wiki proposed.