Class McpServerToolListingHandlerConfiguration.CustomMcpStreamableServerTransportProvider
java.lang.Object
io.meeds.mcp.server.configuration.McpServerToolListingHandlerConfiguration.CustomMcpStreamableServerTransportProvider
- All Implemented Interfaces:
io.modelcontextprotocol.spec.McpServerTransportProviderBase,io.modelcontextprotocol.spec.McpStreamableServerTransportProvider
- Enclosing class:
McpServerToolListingHandlerConfiguration
public static class McpServerToolListingHandlerConfiguration.CustomMcpStreamableServerTransportProvider
extends Object
implements io.modelcontextprotocol.spec.McpStreamableServerTransportProvider
-
Constructor Summary
ConstructorsConstructorDescriptionCustomMcpStreamableServerTransportProvider(org.springframework.context.ApplicationContext applicationContext, io.modelcontextprotocol.server.transport.WebMvcStreamableServerTransportProvider serverTransportProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()reactor.core.publisher.Mono<Void> org.springframework.web.servlet.function.RouterFunction<org.springframework.web.servlet.function.ServerResponse> reactor.core.publisher.Mono<Void> notifyClients(String method, Object params) voidsetSessionFactory(io.modelcontextprotocol.spec.McpStreamableServerSession.Factory sessionFactory)
-
Constructor Details
-
CustomMcpStreamableServerTransportProvider
public CustomMcpStreamableServerTransportProvider(org.springframework.context.ApplicationContext applicationContext, io.modelcontextprotocol.server.transport.WebMvcStreamableServerTransportProvider serverTransportProvider)
-
-
Method Details
-
protocolVersions
- Specified by:
protocolVersionsin interfaceio.modelcontextprotocol.spec.McpServerTransportProviderBase
-
setSessionFactory
public void setSessionFactory(io.modelcontextprotocol.spec.McpStreamableServerSession.Factory sessionFactory) - Specified by:
setSessionFactoryin interfaceio.modelcontextprotocol.spec.McpStreamableServerTransportProvider
-
notifyClients
- Specified by:
notifyClientsin interfaceio.modelcontextprotocol.spec.McpServerTransportProviderBase- Specified by:
notifyClientsin interfaceio.modelcontextprotocol.spec.McpStreamableServerTransportProvider
-
closeGracefully
- Specified by:
closeGracefullyin interfaceio.modelcontextprotocol.spec.McpServerTransportProviderBase- Specified by:
closeGracefullyin interfaceio.modelcontextprotocol.spec.McpStreamableServerTransportProvider
-
close
public void close()- Specified by:
closein interfaceio.modelcontextprotocol.spec.McpServerTransportProviderBase- Specified by:
closein interfaceio.modelcontextprotocol.spec.McpStreamableServerTransportProvider
-
getRouterFunction
public org.springframework.web.servlet.function.RouterFunction<org.springframework.web.servlet.function.ServerResponse> getRouterFunction()
-