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 Details

    • CustomMcpStreamableServerTransportProvider

      public CustomMcpStreamableServerTransportProvider(org.springframework.context.ApplicationContext applicationContext, io.modelcontextprotocol.server.transport.WebMvcStreamableServerTransportProvider serverTransportProvider)
  • Method Details

    • protocolVersions

      public List<String> protocolVersions()
      Specified by:
      protocolVersions in interface io.modelcontextprotocol.spec.McpServerTransportProviderBase
    • setSessionFactory

      public void setSessionFactory(io.modelcontextprotocol.spec.McpStreamableServerSession.Factory sessionFactory)
      Specified by:
      setSessionFactory in interface io.modelcontextprotocol.spec.McpStreamableServerTransportProvider
    • notifyClients

      public reactor.core.publisher.Mono<Void> notifyClients(String method, Object params)
      Specified by:
      notifyClients in interface io.modelcontextprotocol.spec.McpServerTransportProviderBase
      Specified by:
      notifyClients in interface io.modelcontextprotocol.spec.McpStreamableServerTransportProvider
    • closeGracefully

      public reactor.core.publisher.Mono<Void> closeGracefully()
      Specified by:
      closeGracefully in interface io.modelcontextprotocol.spec.McpServerTransportProviderBase
      Specified by:
      closeGracefully in interface io.modelcontextprotocol.spec.McpStreamableServerTransportProvider
    • close

      public void close()
      Specified by:
      close in interface io.modelcontextprotocol.spec.McpServerTransportProviderBase
      Specified by:
      close in interface io.modelcontextprotocol.spec.McpStreamableServerTransportProvider
    • getRouterFunction

      public org.springframework.web.servlet.function.RouterFunction<org.springframework.web.servlet.function.ServerResponse> getRouterFunction()