MCPcopy Create free account
hub / github.com/TanStack/ai / resources

Method resources

packages/ai-mcp/src/client.ts:184–187  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

182 }
183
184 async resources(): Promise<Array<Resource>> {
185 if (this.#closed) throw new MCPConnectionError('MCP client is closed')
186 return (await this.#client.listResources()).resources
187 }
188
189 async readResource(uri: string): Promise<ReadResourceResult> {
190 if (this.#closed) throw new MCPConnectionError('MCP client is closed')

Callers 4

resources.test.tsFile · 0.80
api.mcp-manual.tsFile · 0.80
probeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected