Class McpServerStatelessWebFluxAutoConfiguration
java.lang.Object
org.springframework.ai.mcp.server.autoconfigure.McpServerStatelessWebFluxAutoConfiguration
@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 McpServerStatelessWebFluxAutoConfiguration
extends Object
- Author:
- Christian Tzolov, Yanming Zhou
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.web.reactive.function.server.RouterFunction<?>webFluxStatelessServerRouterFunction(io.modelcontextprotocol.server.transport.WebFluxStatelessServerTransport webFluxStatelessTransport) io.modelcontextprotocol.server.transport.WebFluxStatelessServerTransportwebFluxStatelessServerTransport(com.fasterxml.jackson.databind.ObjectMapper objectMapper, org.springframework.ai.mcp.server.common.autoconfigure.properties.McpServerStreamableHttpProperties serverProperties)
-
Constructor Details
-
McpServerStatelessWebFluxAutoConfiguration
public McpServerStatelessWebFluxAutoConfiguration()
-
-
Method Details
-
webFluxStatelessServerTransport
@Bean @ConditionalOnMissingBean public io.modelcontextprotocol.server.transport.WebFluxStatelessServerTransport webFluxStatelessServerTransport(@Qualifier("mcpServerObjectMapper") com.fasterxml.jackson.databind.ObjectMapper objectMapper, org.springframework.ai.mcp.server.common.autoconfigure.properties.McpServerStreamableHttpProperties serverProperties) -
webFluxStatelessServerRouterFunction
@Bean @ConditionalOnMissingBean(name="webFluxStatelessServerRouterFunction") public org.springframework.web.reactive.function.server.RouterFunction<?> webFluxStatelessServerRouterFunction(io.modelcontextprotocol.server.transport.WebFluxStatelessServerTransport webFluxStatelessTransport)
-