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

validate(profile, request, transport_context)

validate_tool_params(tool, request, transport_context)

@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.