-
WebMvcStatelessServerTransport.builder()
Create a builder for the server.
WebMvcStatelessServerTransport.Builder.contextExtractor(io.modelcontextprotocol.server.McpTransportContextExtractor<org.springframework.web.servlet.function.ServerRequest> contextExtractor)
Sets the context extractor that allows providing the MCP feature
implementations to inspect HTTP transport level metadata that was present at
HTTP request processing time.
WebMvcStatelessServerTransport.Builder.jsonMapper(io.modelcontextprotocol.json.McpJsonMapper jsonMapper)
Sets the ObjectMapper to use for JSON serialization/deserialization of MCP
messages.
Sets the endpoint URI where clients should send their JSON-RPC messages.
WebMvcStatelessServerTransport.Builder.securityValidator(io.modelcontextprotocol.server.transport.ServerTransportSecurityValidator securityValidator)
Sets the security validator for validating HTTP requests.