readResource(
serverName: string,
uri: string,
options: CustomHTTPTransportOptions
): Promise<MCPResourceContent| Name | Type | Description |
|---|---|---|
serverName* | string | |
uri* | string | |
options | CustomHTTPTransportOptions |
Read a resource from a specific server.
The name of the server to read the resource from
The URI of the resource to read
Optional connection options for reading the resource, e.g. custom auth provider or headers.
const content = await client.readResource("server1", "file://path/to/resource");