Overview
listServerResources retrieves the list of resources available on the originating MCP server. The request is proxied through the host. Use this to discover what resources exist before reading them with readServerResource.
Results may be paginated. When more resources are available, the response includes a nextCursor field that can be passed in subsequent calls to fetch the next page.
Signature
Parameters
Pagination cursor returned from a previous
listServerResources call. Omit for the first request.Optional request configuration such as timeout or abort signal.
Returns
Usage
Listing all resources
Paginating through all resources
Building a resource picker
Related
useListServerResources— React hook that wraps this method.- MCP Resources — How resources work in the MCP protocol.
readServerResource— Read the contents of a discovered resource.registerAppResource— Register resources on the server side.