Class McpServerStatelessWebMvcAutoConfiguration

java.lang.Object
org.springframework.ai.mcp.server.autoconfigure.McpServerStatelessWebMvcAutoConfiguration

@AutoConfiguration(before=McpServerStatelessAutoConfiguration.class) @ConditionalOnClass(io.modelcontextprotocol.spec.McpSchema.class) @EnableConfigurationProperties(McpServerStreamableHttpProperties.class) @Conditional({McpServerStdioDisabledCondition.class,EnabledStatelessServerCondition.class}) public class McpServerStatelessWebMvcAutoConfiguration extends Object
Author:
Christian Tzolov, Yanming Zhou
  • Constructor Details

    • McpServerStatelessWebMvcAutoConfiguration

      public McpServerStatelessWebMvcAutoConfiguration()
  • Method Details

    • webMvcStatelessServerTransport

      @Bean @ConditionalOnMissingBean public io.modelcontextprotocol.server.transport.WebMvcStatelessServerTransport webMvcStatelessServerTransport(@Qualifier("mcpServerObjectMapper") com.fasterxml.jackson.databind.ObjectMapper objectMapper, McpServerStreamableHttpProperties serverProperties)
    • webMvcStatelessServerRouterFunction

      @Bean @ConditionalOnMissingBean(name="webMvcStatelessServerRouterFunction") public org.springframework.web.servlet.function.RouterFunction<org.springframework.web.servlet.function.ServerResponse> webMvcStatelessServerRouterFunction(io.modelcontextprotocol.server.transport.WebMvcStatelessServerTransport webMvcStatelessTransport)