public interface McpServerTransportProvider extends McpServerTransportProviderBase
McpServerTransportProviderBase
for a single outgoing
stream in bidirectional communication (STDIO and the legacy HTTP SSE).限定符和类型 | 方法和说明 |
---|---|
void |
setSessionFactory(McpServerSession.Factory sessionFactory)
Sets the session factory that will be used to create sessions for new clients.
|
close, closeGracefully, notifyClients, protocolVersions
void setSessionFactory(McpServerSession.Factory sessionFactory)
sessionFactory
- the session factory to be used for initiating client sessions