Class McpServerStatelessWebMvcAutoConfiguration

java.lang.Object
org.springframework.ai.mcp.server.webmvc.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 WebMvcStatelessServerTransport webMvcStatelessServerTransport(@Qualifier("mcpServerJsonMapper") tools.jackson.databind.json.JsonMapper jsonMapper, McpServerStreamableHttpProperties serverProperties)
    • webMvcStatelessServerRouterFunction

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