Documentation
¶
Overview ¶
Package mcpserverinfo serializes the bounded MCP channel metadata that tunnel-client advertises to the tunnel control plane.
Index ¶
Constants ¶
View Source
const ( // HeaderName is the protected control-plane header carrying MCP channel // process-affinity metadata. HeaderName = "X-Tunnel-MCP-Server-Info" // MaxChannels bounds the number of channel declarations in one v1 header. MaxChannels = 32 // MaxHeaderBytes bounds the serialized HTTP header value. MaxHeaderBytes = 4096 )
Variables ¶
This section is empty.
Functions ¶
func BuildV1 ¶
func BuildV1(declarations []Declaration) (string, error)
BuildV1 serializes the exact v1 header shape after validating that every declaration is canonical, unique, and within the protocol bounds.
Types ¶
type Declaration ¶
Declaration is one canonical MCP channel name and whether its session work must remain on one tunnel-client process.
Click to show internal directories.
Click to hide internal directories.