Migrate remaining 6 tools(core:4, alliance: 2)#132
Conversation
|
Warning Review limit reached
More reviews will be available in 4 minutes and 32 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (14)
📝 WalkthroughWalkthroughSix MCP tools (keyword_search, query_documents, generate_urls, namespace_router, suggest_query_params, guided_query) are updated to accept an optional ServerContext parameter. When provided, handlers route through context methods; otherwise they use module-level facades. Setup functions create and pass the context to all tool registrations. New ChangesServerContext tool migration
🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #132 +/- ##
=======================================
Coverage ? 84.49%
=======================================
Files ? 39
Lines ? 1419
Branches ? 483
=======================================
Hits ? 1199
Misses ? 218
Partials ? 2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@coderabbitai full review |
✅ Action performedFull review finished. |
|
@coderabbitai full review again |
|
✅ Action performedFull review finished. |
|
@coderabbitai full review again |
|
✅ Action performedFull review finished. |
Summary
Branch name:
feat/server-context-migrate-remaining-toolsCore tools migrated (4)
keyword-search-tool.ts—ctx.getClient()query-documents-tool.ts—ctx.requireSuggested()+ctx.getClient()generate-urls-tool.ts—ctx.generateUrlForNamespace()namespace-router-tool.ts—ctx.getNamespacesWithCache()Alliance tools migrated (2)
suggest-query-params-tool.ts—ctx.getNamespacesWithCache()+ctx.markSuggested()guided-query-tool.ts— all three context methodsSetup wiring
core/setup.ts— passesctxto all 7 core registrarsalliance/setup.ts— retrieves context viagetDefaultServerContext()and passes it to Alliance registrarsNew context tests (6)
keyword-search-tool.context.test.tsquery-documents-tool.context.test.tsgenerate-urls-tool.context.test.tsnamespace-router-tool.context.test.tssuggest-query-params-tool.context.test.tsguided-query-tool.context.test.tsVerification
.context.test.tsfiles*.test.tsfiles unchangedRelated Issue
Summary by CodeRabbit
Release Notes
New Features
Tests