Class McpServerToolListingHandlerConfiguration
java.lang.Object
io.meeds.mcp.server.configuration.McpServerToolListingHandlerConfiguration
@Configuration
@EnableConfigurationProperties({org.springframework.ai.mcp.server.common.autoconfigure.properties.McpServerProperties.class,org.springframework.ai.mcp.server.common.autoconfigure.properties.McpServerStreamableHttpProperties.class})
public class McpServerToolListingHandlerConfiguration
extends Object
Custom configuration to allow overriding MCP Tools Listing Handler. This
overrides
io.modelcontextprotocol.server.transport.WebMvcStreamableServerTransportProvider
in order to be able to override the MCP Tools Listing Handler. This will
allow to list the Tools switch the elected scope.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.web.servlet.function.RouterFunction<org.springframework.web.servlet.function.ServerResponse> mcpStreamableServerRouterFunction(McpServerToolListingHandlerConfiguration.CustomMcpStreamableServerTransportProvider webMvcProvider) mcpStreamableServerTransportProvider(org.springframework.context.ApplicationContext applicationContext, com.fasterxml.jackson.databind.ObjectMapper objectMapper, org.springframework.ai.mcp.server.common.autoconfigure.properties.McpServerStreamableHttpProperties serverProperties)
-
Constructor Details
-
McpServerToolListingHandlerConfiguration
public McpServerToolListingHandlerConfiguration()
-
-
Method Details
-
mcpStreamableServerTransportProvider
@Bean public McpServerToolListingHandlerConfiguration.CustomMcpStreamableServerTransportProvider mcpStreamableServerTransportProvider(org.springframework.context.ApplicationContext applicationContext, @Qualifier("mcpServerObjectMapper") com.fasterxml.jackson.databind.ObjectMapper objectMapper, org.springframework.ai.mcp.server.common.autoconfigure.properties.McpServerStreamableHttpProperties serverProperties) -
mcpStreamableServerRouterFunction
@Bean public org.springframework.web.servlet.function.RouterFunction<org.springframework.web.servlet.function.ServerResponse> mcpStreamableServerRouterFunction(McpServerToolListingHandlerConfiguration.CustomMcpStreamableServerTransportProvider webMvcProvider)
-