GenMCP.Suite.PersistedClientInfo (gen_mcp v0.9.1)

Copy Markdown View Source

This module represents data that must be persisted in session storage when using a GenMCP.Suite.SessionController implementation that persists and restore long lived sessions.

When starting with a restored session, the MCP server will not receive any GenMCP.MCP.InitializeRequest containing client information. This information contains client capabilities such as elicitation or sampling support.

When called to persist a session, the session controller will receive this module data as a normalized data structure, and should return the same data on restore.

Summary

Types

normalized()

@opaque normalized()

t()

@type t() :: %GenMCP.Suite.PersistedClientInfo{
  client_capabilities: GenMCP.MCP.ClientCapabilities.t(),
  client_initialized: boolean()
}

Functions

json_schema()