Backplane. McpProtocol. Server. Modern. Headers
(backplane_mcp_protocol v0.6.0)
Copy Markdown
Pure validation for the HTTP fields mirrored by modern MCP requests.
Standard headers are validated separately from tool parameter mirrors so the
latter can use the effective request-local tool definition after
init_request/2.
Summary
Functions
Validates recognized x-mcp-header mirrors for an effective tool definition.
Functions
@spec validate(Backplane.McpProtocol.Protocol.Profile.t(), map(), map()) :: :ok | {:error, Backplane.McpProtocol.MCP.Error.t()}
@spec validate_tool_params( Backplane.McpProtocol.Server.Component.Tool.t(), map(), map() ) :: :ok | {:error, Backplane.McpProtocol.MCP.Error.t()}
Validates recognized x-mcp-header mirrors for an effective tool definition.