postBatchDirect method

Future<List<McpJsonMap>?> postBatchDirect(
  1. List<McpJsonMap> messages, {
  2. String? protocolVersion,
  3. Map<String, String> headers = const <String, String>{},
})

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,
  );
}