Package io.modelcontextprotocol.spec
Interface McpStatelessServerTransport
- All Known Implementing Classes:
HttpServletStatelessServerTransport
public interface McpStatelessServerTransport
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose()Immediately closes all the transports with connected clients and releases any associated resources.reactor.core.publisher.Mono<Void>Gracefully closes all the transports with connected clients and releases any associated resources asynchronously.voidsetMcpHandler(McpStatelessServerHandler mcpHandler)
-
Method Details
-
setMcpHandler
-
close
default void close()Immediately closes all the transports with connected clients and releases any associated resources. -
closeGracefully
reactor.core.publisher.Mono<Void> closeGracefully()Gracefully closes all the transports with connected clients and releases any associated resources asynchronously.- Returns:
- a
reactor.core.publisher.Mono<Void>that completes when the connections have been closed.
-
protocolVersions
-