notificationDirect method

Future<void> notificationDirect(
  1. String method, {
  2. McpJsonMap? params,
  3. String? protocolVersion,
  4. Map<String, String> headers = const <String, String>{},
})

Sends an arbitrary JSON-RPC notification through the direct API.

Implementation

Future<void> notificationDirect(
  String method, {
  McpJsonMap? params,
  String? protocolVersion,
  Map<String, String> headers = const <String, String>{},
}) {
  return notification(
    method,
    params: params,
    streamable: false,
    includeSession: false,
    protocolVersion: protocolVersion,
    headers: headers,
  );
}