Class McpServerStreamableHttpWebMvcAutoConfiguration

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

@AutoConfiguration(before=org.springframework.ai.mcp.server.common.autoconfigure.McpServerAutoConfiguration.class) @ConditionalOnClass(io.modelcontextprotocol.spec.McpSchema.class) @EnableConfigurationProperties({org.springframework.ai.mcp.server.common.autoconfigure.properties.McpServerProperties.class,org.springframework.ai.mcp.server.common.autoconfigure.properties.McpServerStreamableHttpProperties.class}) @Conditional({org.springframework.ai.mcp.server.common.autoconfigure.McpServerStdioDisabledCondition.class,org.springframework.ai.mcp.server.common.autoconfigure.McpServerAutoConfiguration.EnabledStreamableServerCondition.class}) public class McpServerStreamableHttpWebMvcAutoConfiguration extends Object
Author:
Christian Tzolov, Yanming Zhou
  • Constructor Details

    • McpServerStreamableHttpWebMvcAutoConfiguration

      public McpServerStreamableHttpWebMvcAutoConfiguration()
  • Method Details

    • webMvcStreamableServerTransportProvider

      @Bean @ConditionalOnMissingBean public io.modelcontextprotocol.server.transport.WebMvcStreamableServerTransportProvider webMvcStreamableServerTransportProvider(org.springframework.beans.factory.ObjectProvider<com.fasterxml.jackson.databind.ObjectMapper> objectMapperProvider, org.springframework.ai.mcp.server.common.autoconfigure.properties.McpServerStreamableHttpProperties serverProperties)
    • webMvcStreamableServerRouterFunction

      @Bean @ConditionalOnMissingBean(name="webMvcStreamableServerRouterFunction") public org.springframework.web.servlet.function.RouterFunction<org.springframework.web.servlet.function.ServerResponse> webMvcStreamableServerRouterFunction(io.modelcontextprotocol.server.transport.WebMvcStreamableServerTransportProvider webMvcProvider)