We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34d3792 commit afb35faCopy full SHA for afb35fa
1 file changed
src/toolsets.ts
@@ -832,6 +832,11 @@ export class StackOneToolSet {
832
(actionOrder.get(b.name) ?? Number.POSITIVE_INFINITY),
833
);
834
835
+ // If semantic returned results but none matched MCP tools, fall back to local search
836
+ if (topResults.length > 0 && matchedTools.length === 0) {
837
+ return this.localSearch(query, allTools, mergedOptions);
838
+ }
839
+
840
return new Tools(matchedTools);
841
} catch (error) {
842
if (error instanceof SemanticSearchError) {
0 commit comments