MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isPrefixMatch

Function isPrefixMatch

packages/core/execution/src/tool-invoker.ts:531–532  ·  view source on GitHub ↗
(tokens: readonly string[])

Source from the content-addressed store, hash-verified

529 const pathTokens = tokenizeSearchText(tool.path);
530
531 const isPrefixMatch = (tokens: readonly string[]): boolean =>
532 namespaceTokens.every((token, index) => tokens[index] === token);
533
534 return isPrefixMatch(integrationTokens) || isPrefixMatch(pathTokens);
535};

Callers 1

matchesNamespaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected