sunpeak APIDocumentation Index
Fetch the complete documentation index at: https://sunpeak.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Returns a function to read a resource from the originating MCP server. The request is proxied through the host. UseuseListServerResources to discover available resources first.
Wraps readServerResource
MCP Apps SDK reference
Import
Signature
ReadServerResourceParams
URI of the resource to read (e.g.
file:///path or a custom scheme like videos://intro).Returns
readServerResource
(params: ReadServerResourceParams) => Promise<ReadServerResourceResult | undefined>
Function to read a server resource by URI.
ReadServerResourceResult
Resource contents returned by the server. Each item contains either
text (UTF-8 string) or blob (base64-encoded binary).