MCPcopy Index your code
hub / github.com/modelcontextprotocol/inspector / hasValidMetaName

Function hasValidMetaName

client/src/utils/metaUtils.ts:157–162  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

155 * @see https://modelcontextprotocol.io/specification/2025-06-18/basic/index#meta
156 */
157export const hasValidMetaName = (key: string): boolean => {
158 const name = extractMetaName(key);
159 if (!name) return false;
160
161 return META_NAME_REGEX.test(name);
162};

Callers 4

filterReservedMetadataFunction · 0.90
updateMetadataFunction · 0.90
MetadataTabFunction · 0.90
ToolsTabFunction · 0.90

Calls 1

extractMetaNameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…