sse method
Implementation
Future<dynamic> sse({required Uri url}) async {
final config = McpClient.simpleConfig(name: name, version: version, enableDebugLogging: enableDebugLogging);
final transportConfig = TransportConfig.sse(
serverUrl: url.toString(),
headers: {'User-Agent': 'MCP-Client/1.0'},
);
final clientResult = await McpClient.createAndConnect(config: config, transportConfig: transportConfig);
client = clientResult.fold((c) => c, (error) => throw Exception('Failed to connect: $error'));
return this;
}