(client: Client, timeout?: number)
| 135 | } |
| 136 | |
| 137 | export function resourceTemplates(client: Client, timeout?: number) { |
| 138 | if (!client.getServerCapabilities()?.resources) return Promise.resolve([]) |
| 139 | return paginate( |
| 140 | (cursor) => client.listResourceTemplates(cursor === undefined ? undefined : { cursor }, { timeout }), |
| 141 | (result) => result.resourceTemplates, |
| 142 | ) |
| 143 | } |
| 144 | |
| 145 | function listTools(client: Client, timeout: number) { |
| 146 | return Effect.tryPromise({ |
nothing calls this directly
no test coverage detected