Repository navigation
improvement(search): return 30 previews by default for a Search MCP query across every source - #9242
Conversation
…uery across every source
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
[Medium impact] The PR appears safe to merge. SummarySearch MCP now defaults to 30 previews for cross-source text searches, including explicit
Reviews (2) · Last reviewed commit: "improvement(search): treat relevance sor..." · Reviewed by Greptile |
There was a problem hiding this comment.
All reported issues were addressed across 4 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
|
@greptile |
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
Summary
source,nativeQueries, or datesortBy) that sets notopKnow returns up to 30 previews instead of 20. Single-source searches, native queries, and date-sorted listings keep 20; an explicittopKis unchangedtopKoptional (the MCP SDK applies schema defaults before the handler, and zod 4 can't make a field optional on a refined schema). The assistant tool's generated catalog is byte-identicalType of Change
Testing
server.test.tscases cover the default per search shape, andserver.protocol.test.tschecks it through the real MCP SDK; both fail on the previous codevitestonlib/knowledge/mcp,mothership-assistant-tools.test.ts,lib/mothership/tools/server/knowledge(68 passed);mship-tools:generateoutput identical before/after; biome lintChecklist
test-auditauthoring gate)