(key: string)
| 127 | * @see https://modelcontextprotocol.io/specification/2025-06-18/basic/index#meta |
| 128 | */ |
| 129 | export const hasValidMetaPrefix = (key: string): boolean => { |
| 130 | const prefixSegment = getPrefixSegment(key); |
| 131 | if (prefixSegment === null) { |
| 132 | return true; |
| 133 | } |
| 134 | |
| 135 | return splitLabels(prefixSegment) !== null; |
| 136 | }; |
| 137 | |
| 138 | const extractMetaName = (key: string): string => { |
| 139 | const trimmedKey = key.trim(); |
no test coverage detected
searching dependent graphs…