notification method
Sends an arbitrary JSON-RPC notification through the MCP session.
Implementation
Future<void> notification(
String method, {
McpJsonMap? params,
bool streamable = true,
bool includeSession = true,
String? protocolVersion,
Map<String, String> headers = const <String, String>{},
}) async {
await post(
<String, Object?>{'jsonrpc': '2.0', 'method': method, 'params': ?params},
streamable: streamable,
includeSession: includeSession,
protocolVersion: protocolVersion,
headers: headers,
);
}