initialize method

  1. @override
Future<void> initialize(
  1. MCPConfig config
)
override

Initialize the platform implementation with config

Implementation

@override
Future<void> initialize(MCPConfig config) async {
  try {
    await methodChannel.invokeMethod<void>('initialize', config.toJson());
  } on PlatformException catch (e) {
    throw MCPPlatformException('Failed to initialize', e.code, e.details);
  }
}