Functionsยง
- router
- Build the HTTP router over
db. Read endpoints take the read lock;/ingesttakes the write lock. Guards are dropped before any.await.GET /watchupgrades to a WebSocket fed by the post-commit sink. - router_
with_ auth routerwith an optional bearer/?token=requirement on every route except unauthenticatedGET /health.- router_
with_ role_ tokens routerwith a full-access token and a map of role-bound tokens.- router_
with_ ui - Same as
router_with_auth, thenServeDiras the fallback so API routes win. - run_
mcp_ stdio - Run the MCP loop until
readerhits EOF. - serve_
with_ role_ tokens - [
serve] with role-bound tokens in addition to the optional full-access token. - serve_
with_ ui_ and_ role_ tokens - [
serve_with_ui] with role-bound tokens.