mcpserverinfo

package
v0.0.13-dev Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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

type Declaration struct {
	Name            string
	ProcessAffinity bool
}

Declaration is one canonical MCP channel name and whether its session work must remain on one tunnel-client process.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL