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

Function isPrefixMatch

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

Source from the content-addressed store, hash-verified

567 const pathTokens = tokenizeSearchText(tool.path);
568
569 const isPrefixMatch = (tokens: readonly string[]): boolean =>
570 namespaceTokens.every((token, index) => tokens[index] === token);
571
572 return isPrefixMatch(integrationTokens) || isPrefixMatch(pathTokens);
573};

Callers 1

matchesNamespaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected