Class McpServerStatelessWebMvcAutoConfiguration

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

@AutoConfiguration(before=org.springframework.ai.mcp.server.common.autoconfigure.McpServerStatelessAutoConfiguration.class) @ConditionalOnClass(io.modelcontextprotocol.spec.McpSchema.class) @EnableConfigurationProperties(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.McpServerStatelessAutoConfiguration.EnabledStatelessServerCondition.class}) public class McpServerStatelessWebMvcAutoConfiguration extends Object
Author:
Christian Tzolov, Yanming Zhou
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.web.servlet.function.RouterFunction<org.springframework.web.servlet.function.ServerResponse>
    webMvcStatelessServerRouterFunction(io.modelcontextprotocol.server.transport.WebMvcStatelessServerTransport webMvcStatelessTransport)
     
    io.modelcontextprotocol.server.transport.WebMvcStatelessServerTransport
    webMvcStatelessServerTransport(org.springframework.beans.factory.ObjectProvider<com.fasterxml.jackson.databind.ObjectMapper> objectMapperProvider, org.springframework.ai.mcp.server.common.autoconfigure.properties.McpServerStreamableHttpProperties serverProperties)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • McpServerStatelessWebMvcAutoConfiguration

      public McpServerStatelessWebMvcAutoConfiguration()
  • Method Details

    • webMvcStatelessServerTransport

      @Bean @ConditionalOnMissingBean public io.modelcontextprotocol.server.transport.WebMvcStatelessServerTransport webMvcStatelessServerTransport(org.springframework.beans.factory.ObjectProvider<com.fasterxml.jackson.databind.ObjectMapper> objectMapperProvider, org.springframework.ai.mcp.server.common.autoconfigure.properties.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)