Anubis.Server.TaskStore.Local (anubis_mcp v1.6.0)

Copy Markdown

In-memory Anubis.Server.TaskStore adapter backed by a single GenServer.

Holds a %{session_id => %{task_id => Task.t()}} map. Suitable for STDIO transports and most HTTP deployments running on a single node. Tasks are lost on process restart — that's an accepted Phase 1 limitation; persistent storage will arrive via a future adapter.

Summary

Functions

Returns a specification to start this module under a supervisor.

Starts the local task store.

Types

state()

@type state() :: %{
  optional(String.t()) => %{optional(String.t()) => Anubis.Server.Task.t()}
}

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts)

@spec start_link(keyword()) :: GenServer.on_start()

Starts the local task store.

Options

  • :name — registered process name (required)