readResourceDirect method

Future<List<McpJsonMap>> readResourceDirect(
  1. String uri, {
  2. Object? id,
  3. String? protocolVersion,
  4. Map<String, String> headers = const <String, String>{},
})

Reads a resource through the direct JSON API.

Implementation

Future<List<McpJsonMap>> readResourceDirect(
  String uri, {
  Object? id,
  String? protocolVersion,
  Map<String, String> headers = const <String, String>{},
}) {
  return readResource(
    uri,
    id: id,
    directJson: true,
    protocolVersion: protocolVersion,
    headers: headers,
  );
}