Expand description
HTTP API + embedded SPA shell for the trusty-memory admin UI.
Why: The web admin panel is the primary GUI for non-MCP clients. Bundling
the Svelte build via rust-embed keeps deployment to “drop the binary on
a host”; the JSON API surface mirrors the MCP tool set so anything
trusty-memory can do via Claude Code can also be done via curl or browser.
What: All /api/v1/* handlers (status, palaces, drawers, recall, KG,
config, chat) plus an embedded-asset fallback that serves ui/dist/.
Test: cargo test -p trusty-memory-mcp web::tests covers the asset
fallback and JSON shape of every read endpoint against an in-memory
palace built on a tempdir.
Functions§
- router
- Build the public router with API routes + SPA asset fallback.