Factory function type for creating McpSession instances.
Used by the transport layer where each connected client gets an McpSession with protocol handlers and SDK-native cancellation/progress support.
A new McpSession instance for the client
Factory function type for creating McpSession instances.
Used by the transport layer where each connected client gets an McpSession with protocol handlers and SDK-native cancellation/progress support.