Overview
Returns a function to discover available resources on the originating MCP server. The request is proxied through the host. Supports pagination via cursor. UseuseReadServerResource to read a discovered resource.
Wraps listServerResources
MCP Apps SDK reference
Import
Signature
ListServerResourcesParams
string
Pagination cursor from a previous response.
Returns
(params?: ListServerResourcesParams) => Promise<ListServerResourcesResult | undefined>
Function to list available server resources.
ListServerResourcesResult
ServerResource[]
required
Available resources.
string
Cursor for fetching the next page, if more results exist.