MCPcopy Create free account
hub / github.com/astercloud/aster / readResource

Method readResource

client-sdks/client-js/src/resources/mcp.ts:196–201  ·  view source on GitHub ↗

* 读取资源内容 * @param serverId Server ID * @param uri 资源 URI * @returns 资源内容

(serverId: string, uri: string)

Source from the content-addressed store, hash-verified

194 * @returns 资源内容
195 */
196 async readResource(serverId: string, uri: string): Promise<MCPResourceContent> {
197 return this.request<MCPResourceContent>(`/v1/mcp/servers/${serverId}/resources/read`, {
198 method: "POST",
199 body: { uri },
200 });
201 }
202
203 // ==========================================================================
204 // MCP Prompts

Callers

nothing calls this directly

Calls 1

requestMethod · 0.80

Tested by

no test coverage detected