MCPcopy Create free account
hub / github.com/modelcontextprotocol/inspector / listPrompts

Function listPrompts

client/src/App.tsx:994–1005  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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(

Callers 1

AppFunction · 0.70

Calls 1

sendMCPRequestFunction · 0.85

Tested by

no test coverage detected