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

Function listResources

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

Source from the content-addressed store, hash-verified

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(

Callers 1

AppFunction · 0.70

Calls 1

sendMCPRequestFunction · 0.85

Tested by

no test coverage detected