postDirect method

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

Posts one JSON-RPC message through the direct JSON API.

Implementation

Future<McpJsonMap?> postDirect(
  McpJsonMap message, {
  String? protocolVersion,
  Map<String, String> headers = const <String, String>{},
}) {
  return post(
    message,
    streamable: false,
    includeSession: false,
    protocolVersion: protocolVersion,
    headers: headers,
  );
}