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

Function handleMetadataChange

client/src/App.tsx:288–292  ·  view source on GitHub ↗
(newMetadata: Record<string, string>)

Source from the content-addressed store, hash-verified

286 };
287
288 const handleMetadataChange = (newMetadata: Record<string, string>) => {
289 const sanitizedMetadata = filterReservedMetadata(newMetadata);
290 setMetadata(sanitizedMetadata);
291 localStorage.setItem("lastMetadata", JSON.stringify(sanitizedMetadata));
292 };
293 const nextRequestId = useRef(0);
294 const rootsRef = useRef<Root[]>([]);
295

Callers

nothing calls this directly

Calls 1

filterReservedMetadataFunction · 0.85

Tested by

no test coverage detected