Skip to content

#1 Persistent memory for AI coding agents based on real-world benchmarks

fix: split multi-word queries in standalone memory_smart_search (#148)

Rohit Ghumare5a599c6a3747
diff --git a/src/mcp/standalone.ts b/src/mcp/standalone.ts
index 612200a7..e623669c 100644
--- a/src/mcp/standalone.ts
+++ b/src/mcp/standalone.ts
@@ -128,7 +128,7 @@ export async function handleToolCall(
]
.join(" ")
.toLowerCase();
- return text.includes(query);
+ return query.split(/\s+/).every((word) => text.includes(word));
})
.slice(0, limit);
return {