()
| 871 | }; |
| 872 | |
| 873 | const listResources = async () => { |
| 874 | const response = await sendMCPRequest( |
| 875 | { |
| 876 | method: "resources/list" as const, |
| 877 | params: nextResourceCursor ? { cursor: nextResourceCursor } : {}, |
| 878 | }, |
| 879 | ListResourcesResultSchema, |
| 880 | "resources", |
| 881 | ); |
| 882 | setResources(resources.concat(response.resources ?? [])); |
| 883 | setNextResourceCursor(response.nextCursor); |
| 884 | }; |
| 885 | |
| 886 | const listResourceTemplates = async () => { |
| 887 | const response = await sendMCPRequest( |