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

Method readResource

packages/ai-mcp/src/client.ts:189–192  ·  view source on GitHub ↗
(uri: string)

Source from the content-addressed store, hash-verified

187 }
188
189 async readResource(uri: string): Promise<ReadResourceResult> {
190 if (this.#closed) throw new MCPConnectionError('MCP client is closed')
191 return this.#client.readResource({ uri })
192 }
193
194 async resourceTemplates(): Promise<Array<ResourceTemplate>> {
195 if (this.#closed) throw new MCPConnectionError('MCP client is closed')

Callers 6

emitUiResourceIfLinkedFunction · 0.80
readResourceFunction · 0.80
pool.test.tsFile · 0.80
resources.test.tsFile · 0.80
api.mcp-manual.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected