postBatchDirect method
Posts a JSON-RPC batch through the direct JSON API.
Implementation
Future<List<McpJsonMap>?> postBatchDirect(
List<McpJsonMap> messages, {
String? protocolVersion,
Map<String, String> headers = const <String, String>{},
}) {
return postBatch(
messages,
streamable: false,
includeSession: false,
protocolVersion: protocolVersion,
headers: headers,
);
}