postDirect method
Future<McpJsonMap?>
postDirect(
- McpJsonMap message, {
- String? protocolVersion,
- 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,
);
}