MCPServer.fromStreamChannel constructor
MCPServer.fromStreamChannel(
- StreamChannel<
String> channel, { - required Implementation implementation,
- String? instructions,
- Sink<
String> ? protocolLogSink,
Implementation
MCPServer.fromStreamChannel(
super.channel, {
required this.implementation,
this.instructions,
super.protocolLogSink,
}) {
registerRequestHandler(InitializeRequest.methodName, initialize);
registerNotificationHandler(
InitializedNotification.methodName,
handleInitialized,
);
}