Repository navigation
test(mcpx): execute the generated search() — ordering, tie-break, offset paging (#9598) - #9779
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 2 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Fixes #9598 (task 16152): adds the behavioral test for the generated search() that CodeRabbit's PR #9205 review asked for.
What
New pkgs/mcpx/internal/codegen/search_behavior_test.go: TestGeneratedSearchBehavior generates a client from a fixture catalog (three namespaces, five tools, two recipes), writes it to a temp dir, and executes its search() under deno — the same runtime harness this package already uses for TestGeneratedClientWithAwkwardNamesTypeChecks (skips when deno is absent).
Fixture scoring for the query word "alpha" is deterministic: a word in a namespace/tool name scores 10, in prose only 1; ties break by sortKey (a recipe's "/name" key wins ties against tools).
Cases asserted on executed results
Verification
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.