MCPcopy Create free account
hub / github.com/echoVic/blade-code / listResources

Method listResources

src/mcp/client/MCPClient.ts:119–126  ·  view source on GitHub ↗

* 列出资源

(sessionId: string)

Source from the content-addressed store, hash-verified

117 * 列出资源
118 */
119 async listResources(sessionId: string): Promise<MCPResource[]> {
120 const response = await this.sendRequest(sessionId, {
121 method: 'resources/list',
122 params: {},
123 });
124
125 return response.resources || [];
126 }
127
128 /**
129 * 读取资源内容

Callers 4

showServerInfoFunction · 0.80
listResourcesFunction · 0.80
readResourceFunction · 0.80
loadServerResourcesMethod · 0.80

Calls 1

sendRequestMethod · 0.95

Tested by

no test coverage detected