Class Nexus\Mcp\Server\Transport\Http\Middleware\ParameterHeaderValidationMiddleware

final
implements MiddlewareInterface

Rejects a tools/call whose Mcp-Param-{Name} headers disagree with the arguments in its body. The spec requires any server that processes the body to validate the mirrored headers against it, so an intermediary routing on a header value cannot disagree with what the server executes. Bindings are read from the tool inputSchema declarations once and cached, and the cache is dropped whenever a ListChangeSourceInterface store reports that its listing changed.

Methods