Class Nexus\Mcp\Server\Transport\Http\SecuredHttpEndpoint

final
readonly
implements RequestHandlerInterface

Wraps an inner handler (typically the Streamable HTTP transport) with the recommended security middleware, ordered CORS, then DNS-rebinding protection, then Mcp-Param-{Name} validation, then the optional body-size cap. Origin allow-listing is required. Host allow-listing, bearer authentication, parameter-header validation, and the body-size cap apply only when configured. A server whose tools declare x-mcp-header must pass its tool store so the spec-required header-to-body validation runs.

Methods