Improve MCP search with synonym map and better fallback guidance#30
Merged
kyleamueller merged 1 commit intomainfrom Mar 9, 2026
Merged
Improve MCP search with synonym map and better fallback guidance#30kyleamueller merged 1 commit intomainfrom
kyleamueller merged 1 commit intomainfrom
Conversation
- Add search-synonyms.ts mapping 70+ Excel/SQL/DAX terms to M function slugs (e.g. "vlookup" → join functions, "concatenate" → Text.Combine, "null coalesce" → null-handling functions, "group by" → Table.Group) - Add keywords field to FunctionIndexEntry and buildSearchIndex - Add keywords as a Fuse.js search key (weight 0.8, between title and description) - Update search_functions tool description to explain synonym support - Update no-results message to suggest search_concepts / search_patterns fallback - Add search test verifying keyword synonyms surface correct results Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
src/data/search-synonyms.tswith 70+ term mappings so LLMs can find M functions using Excel/SQL/DAX vocabularysearch_functionsnow matches queries like"vlookup","concatenate","null coalesce","group by","missing value","sql where", etc.search_functionstool description to explain synonym support and suggest fallbackssearch_conceptsorsearch_patternsBefore / After
"null coalesce default""vlookup""concatenate""group by""sql where"Test plan
npm run testpasses (42 tests, includes new keyword synonym test)🤖 Generated with Claude Code