Wires the Ecto-backed Anubis MCP session store into a host application
Configures AttestoMCP.Anubis.SessionStore.Ecto - a Postgres-backed
Anubis.Server.Session.Store - so MCP sessions survive a deploy/node
replacement and a client reconnects with its initialized state restored.
What it changes (deterministic):
- adds the
config :anubis_mcp, :session_storeblock (enabled, the Ecto adapter, the repo, and a 30-minute TTL) toconfig/config.exs; - with
--registry, adds thehordedependency for the clusteredAttestoMCP.Anubis.Registry.Horde.
What it leaves to you (printed as a notice, because the locations are app-specific and must not be blind-edited):
- run
mix attesto_mcp.gen.session_migration --repo <Repo>to create theattesto_mcp_sessionstable; - with
--registry, wireregistry: {AttestoMCP.Anubis.Registry.Horde, []}into your Anubis server child spec, and connect the nodes (e.g.libcluster).
Idempotent: re-running does not duplicate the config block or the dependency.
Example
mix attesto_mcp.install.sessions --repo MyApp.Repo --registry
Options
--repo- theEcto.Repothe session store uses. Defaults to the application's<App>.Repo.--registry- also add thehordedependency for the clustered registry adapter (and print the wiring notice). Off by default.