Packages

MCP (Model Context Protocol) server and client for Raxol. Provides JSON-RPC 2.0 protocol handling, tool/resource registry, stdio and SSE transports. Auto-derives agent tools from your widget tree.

Current section

Files

Jump to
raxol_mcp lib raxol mcp test session.ex
Raw

lib/raxol/mcp/test/session.ex

defmodule Raxol.MCP.Test.Session do
@moduledoc """
Struct representing a test session for MCP testing.
Holds references to the session ID, registry, and configuration.
All mutable state lives in the Headless GenServer and Registry ETS tables.
"""
@type t :: %__MODULE__{
id: atom(),
registry: GenServer.server(),
registry_pid: pid(),
module: module() | String.t(),
settle_ms: non_neg_integer()
}
defstruct [:id, :registry, :registry_pid, :module, settle_ms: 100]
end