Skip to main content

Module spawn_context

Module spawn_context 

Source
Expand description

Server spawn context

Provides all the necessary context for spawning a protocol server.

Structs§

SpawnContext
Context passed to protocol servers during spawning
StartupParams
Type-safe wrapper for startup parameters

Enums§

StartupParamError
Error returned when startup parameters supplied by the LLM or an MCP client cannot be used by the protocol.

Constants§

MAX_STARTUP_PARAM_BYTES
Maximum retained startup JSON content, including keys and node overhead.
MAX_STARTUP_PARAM_DEPTH
Maximum nesting depth in a constructed startup parameter object.
MAX_STARTUP_PARAM_NODES
Maximum nodes in a constructed startup parameter object.

Type Aliases§

StartupParamResult
Convenience alias for fallible startup-parameter access.