()
| 992 | }; |
| 993 | |
| 994 | const listPrompts = async () => { |
| 995 | const response = await sendMCPRequest( |
| 996 | { |
| 997 | method: "prompts/list" as const, |
| 998 | params: nextPromptCursor ? { cursor: nextPromptCursor } : {}, |
| 999 | }, |
| 1000 | ListPromptsResultSchema, |
| 1001 | "prompts", |
| 1002 | ); |
| 1003 | setPrompts(response.prompts); |
| 1004 | setNextPromptCursor(response.nextCursor); |
| 1005 | }; |
| 1006 | |
| 1007 | const listTools = async () => { |
| 1008 | const response = await sendMCPRequest( |