callConnectanumMethodDirect method
Calls a Connectanum JSON method through the direct API.
Implementation
Future<McpJsonMap> callConnectanumMethodDirect(
String method, {
Object? id,
McpJsonMap params = const <String, Object?>{},
String? protocolVersion,
Map<String, String> headers = const <String, String>{},
}) async {
final response = await requestDirect(
method,
id: id,
params: params,
protocolVersion: protocolVersion,
headers: _headersWithConnectanumMethodParameterHeaders(
method,
params,
headers,
),
);
return _jsonRpcResultFrom(response, method: method);
}