Re-exports§
pub use http::router;pub use http::router_with_auth;pub use http::router_with_role_tokens;pub use http::router_with_ui;pub use http::router_with_ui_tls;pub use http::serve_with_role_tokens;pub use http::serve_with_role_tokens_and_shutdown;pub use http::serve_with_shutdown;pub use http::serve_with_ui_and_role_tokens;pub use http::serve_with_ui_and_role_tokens_and_shutdown;
Constants§
- ASSOCIATION_
TOOLS - The nineteen a memory store advertises, in the order it lists them.
- CODE_
GRAPH_ TOOLS - The three a code-graph store advertises: one tool to find, one to ask an arbitrary question, one to size the store.
- LOG_
TARGET_ ROOT - The root this crate’s
tracingevents are filtered by.
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. - router_
with_ ui_ tls - Like
router_with_uibut marks the connection as TLS-active so the auth cookie carries theSecureattribute. Use when the binary is serving directly over HTTPS (i.e. viaserve_tls) rather than behind a proxy. - run_
mcp_ stdio - Run the MCP loop until
readerhits EOF. - run_
mcp_ stdio_ with run_mcp_stdio, with the tool list chosen by the caller.- serve_
with_ role_ tokens - [
serve] with role-bound tokens in addition to the optional full-access token. - serve_
with_ role_ tokens_ and_ shutdown serve_with_role_tokensthat stops gracefully. Seeserve_with_shutdown.- serve_
with_ shutdown - The graceful-shutdown variants, added in 0.6.12.
- serve_
with_ ui_ and_ role_ tokens - [
serve_with_ui] with role-bound tokens. - serve_
with_ ui_ and_ role_ tokens_ and_ shutdown serve_with_ui_and_role_tokensthat stops gracefully. Seeserve_with_shutdown.