Package dev.tachyonmcp.core.transport.netty
@NullMarked
@InternalApi
package dev.tachyonmcp.core.transport.netty
Netty-based HTTP and SSE transport implementation.
-
ClassDescriptionCreates and manages the per-channel
ChannelContexton channel active/inactive lifecycle events.Assembles the Netty pipeline for each new MCP channel: validation handlers (endpoint, origin, protocol version, accept header, stateless guard),InteractionHandler, HTTP aggregation, idle timeout, the initialization-phase handler (McpInitializationHandler), and theLifecyclePipelineCoordinator.Handles the INITIALIZATION lifecycle phase of an MCP connection.Handles MCP requests during the OPERATION lifecycle phase: all JSON-RPC methods after the initialinitializehandshake.A Netty I/O transport engine — pairs anIoHandlerFactorywith aServerSocketChannelclass.Netty-based MCP server with Streamable HTTP transport.Configuration for the Netty transport.Negotiates the protocol for each MCP POST and binds it to the interaction context.Outbound handler that refreshes session liveness on every byte written to the channel.Rejects requestsProtocolVersionHandlerflagged as naming an unsupported protocol version, oncehttp-aggregatorhas assembled the body, so the JSON-RPCidthe UnsupportedProtocolVersionError echoes back can be read from it (SEP-2575: error responses MUST carry the request's id).