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

Function isPrefixMatch

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

Source from the content-addressed store, hash-verified

575 const pathTokens = tokenizeSearchText(tool.path);
576
577 const isPrefixMatch = (tokens: readonly string[]): boolean =>
578 namespaceTokens.every((token, index) => tokens[index] === token);
579
580 return isPrefixMatch(integrationTokens) || isPrefixMatch(pathTokens);
581};

Callers 1

matchesNamespaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected