listResourcesDirect method

Future<McpStreamableResourceListPage> listResourcesDirect({
  1. Object? id,
  2. String? cursor,
  3. String? protocolVersion,
  4. Map<String, String> headers = const <String, String>{},
})

Lists one page of resources through the direct JSON API.

Implementation

Future<McpStreamableResourceListPage> listResourcesDirect({
  Object? id,
  String? cursor,
  String? protocolVersion,
  Map<String, String> headers = const <String, String>{},
}) {
  return listResources(
    id: id,
    cursor: cursor,
    directJson: true,
    protocolVersion: protocolVersion,
    headers: headers,
  );
}