Skip to main content
sunpeak API

Overview

Returns a function to discover available resources on the originating MCP server. The request is proxied through the host. Supports pagination via cursor. Use useReadServerResource to read a discovered resource.

Wraps listServerResources

MCP Apps SDK reference

Import

Signature

ListServerResourcesParams

cursor
string
Pagination cursor from a previous response.

Returns

listServerResources
(params?: ListServerResourcesParams) => Promise<ListServerResourcesResult | undefined>
Function to list available server resources.

ListServerResourcesResult

resources
ServerResource[]
required
Available resources.
nextCursor
string
Cursor for fetching the next page, if more results exist.

Usage