Skip to content

feat: support multi-query memories search#21004

Merged
jif-oai merged 1 commit into
mainfrom
jif/search-v2
May 4, 2026
Merged

feat: support multi-query memories search#21004
jif-oai merged 1 commit into
mainfrom
jif/search-v2

Conversation

@jif-oai

@jif-oai jif-oai commented May 4, 2026

Copy link
Copy Markdown
Collaborator

Why

The memories MCP search tool only accepts a single substring today, which makes it hard for clients to express combined queries or explain why a line matched. This change adds the richer search shape needed for the next client iteration while keeping the legacy single-query call working.

What changed

  • accept either the legacy query field or a new queries array, plus match_mode: any|all
  • teach the local memories backend to evaluate multi-query line matches and return matched_queries on each hit
  • update the MCP input/output schema and add coverage for parser behavior, ordering, pagination, case sensitivity, and match modes

Testing

  • added unit coverage in memories/mcp/src/local_tests.rs and memories/mcp/src/server.rs

@jif-oai jif-oai changed the title feat: search v2 feat: support multi-query memories search May 4, 2026
@jif-oai jif-oai merged commit 8ba294e into main May 4, 2026
26 checks passed
@jif-oai jif-oai deleted the jif/search-v2 branch May 4, 2026 13:55
@github-actions github-actions Bot locked and limited conversation to collaborators May 4, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant