Repository navigation
fix(mcp): dynamically generate web search provider enum from registry - #10209
Conversation
|
I think the same search registry can also be used for return search providers in /api/v1/search endpoints as it also doesn't evaluate the search providers dynamically, instead relies on if else block checks. |
|
Good direction — generating the web-search provider enum from the registry avoids drift. One check: the MCP tool schema is exposed to clients; could you confirm the dynamic enum doesn't break the Zod contract or scope? Otherwise mergeable. |
2ce8afe to
39dd0e3
Compare
39dd0e3 to
33db031
Compare
Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
…x firecrawl searchType arg The enum-dynamic refactor dropped search.ts's no-explicit-any suppression while a new Record<string,any> map re-introduced anys, and the response normalizer map swapped the firecrawl searchType argument with query. Type both maps explicitly, restore the base suppression (33 pre-existing anys), and pass searchType (not query) to normalizeFirecrawlSearchResponse. Co-authored-by: diegosouzapw <diegosouza.pw@gmail.com>
Babysit summary — CI greenVerdict: mostly STALE + two real defects fixed. The PR was 76 commits behind Committed on the PR branch (preserving
Also incorporated Local validation: CI (run against base tip, base green): No new ESLint warnings ✅ · Unit Tests fast-path 1–4/4 ✅ · Fast Quality Gates ✅ · Merge integrity ✅ · Build (advisory) ✅ · dast-smoke ✅ · All others ✅. No pending checks; PR is OPEN. Ready for human review and merge. |
|
✅ Evidência de merge-train antes do merge #10209 foi embarcada no train combinado Modo FAST verde: typecheck, file-size, complexidade ciclomática e cognitiva, changelog integrity, teste alterado Obrigado @sadSanta-07 pela contribuição; o PR segue para merge serializado em |
8ff3a1d
into
cheaper-inference:release/v3.8.50
…cheaper-inference#10209) * fix(mcp): dynamically generate web search provider enum from registry * test(mcp): add contract test for dynamic web search provider enum Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com> * fix(mcp): restore search.ts eslint suppression, type builder maps, fix firecrawl searchType arg The enum-dynamic refactor dropped search.ts's no-explicit-any suppression while a new Record<string,any> map re-introduced anys, and the response normalizer map swapped the firecrawl searchType argument with query. Type both maps explicitly, restore the base suppression (33 pre-existing anys), and pass searchType (not query) to normalizeFirecrawlSearchResponse. Co-authored-by: diegosouzapw <diegosouza.pw@gmail.com> --------- Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com> Co-authored-by: adevwithpurpose <adevwithpurpose@users.noreply.github.com> Co-authored-by: sadSanta-07 <sadSanta-07@users.noreply.github.com> Co-authored-by: diegosouzapw <diegosouza.pw@gmail.com>
Fixes #10159