Class McpServerStreamableHttpWebMvcAutoConfiguration
java.lang.Object
org.springframework.ai.mcp.server.autoconfigure.McpServerStreamableHttpWebMvcAutoConfiguration
@AutoConfiguration(before=McpServerAutoConfiguration.class)
@ConditionalOnClass(io.modelcontextprotocol.spec.McpSchema.class)
@EnableConfigurationProperties({McpServerProperties.class,McpServerStreamableHttpProperties.class})
@Conditional({McpServerStdioDisabledCondition.class,EnabledStreamableServerCondition.class})
public class McpServerStreamableHttpWebMvcAutoConfiguration
extends Object
- Author:
- Christian Tzolov, Yanming Zhou
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.web.servlet.function.RouterFunction<org.springframework.web.servlet.function.ServerResponse>webMvcStreamableServerRouterFunction(io.modelcontextprotocol.server.transport.WebMvcStreamableServerTransportProvider webMvcProvider) io.modelcontextprotocol.server.transport.WebMvcStreamableServerTransportProviderwebMvcStreamableServerTransportProvider(com.fasterxml.jackson.databind.ObjectMapper objectMapper, McpServerStreamableHttpProperties serverProperties)
-
Constructor Details
-
McpServerStreamableHttpWebMvcAutoConfiguration
public McpServerStreamableHttpWebMvcAutoConfiguration()
-
-
Method Details
-
webMvcStreamableServerTransportProvider
@Bean @ConditionalOnMissingBean public io.modelcontextprotocol.server.transport.WebMvcStreamableServerTransportProvider webMvcStreamableServerTransportProvider(@Qualifier("mcpServerObjectMapper") com.fasterxml.jackson.databind.ObjectMapper objectMapper, 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)
-