Repository navigation
fix(mcp): retire duplicate archive query tools - #3056
Conversation
Problem: The legacy archive_list_sessions and archive_search_sessions tools bypassed the canonical paged query contract. Their overflow fallback could return an empty continuation, leaving agents unable to recover the bounded response. What changed: Remove both obsolete MCP registrations and their generated declarations. The canonical list_sessions and search tools remain the single query surface and own bounded, cursor-resumable reads. Compatibility: The retired names were MCP-only compatibility aliases. Python API and HTTP archive helper contracts are unchanged. Co-Authored-By: Claude <[email protected]>
|
Warning Review limit reached
Next review available in: 28 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (11)
📝 WalkthroughWalkthroughTwo archive session tools are removed from MCP registration and declaration metadata. Related test baselines and envelope/discovery contracts are updated, and the generated MCP reference lists 102 registered tools instead of 104. ChangesMCP archive tool removal
Estimated code review effort: 2 (Simple) | ~15 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ 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 |
Problem: duplicate archive list/search entry points left an unpaged MCP\ncompatibility surface alongside the canonical query transaction.\n\nWhat changed: remove the obsolete API and MCP handlers, rename the\nHTTP helper to its canonical session-list role, and route paging proof\nthrough canonical search and list_sessions. Keep response-budget pages\nuseful for search hits and advance cursor requests with the effective\narchive offset.\n\nCompatibility/migration: the two obsolete MCP and Python API names are\nremoved without redirects; callers use search, list_sessions, or\nquery_sessions.\n\nCo-Authored-By: Codex <[email protected]>
) Ref polylogue-93cp demo program (runbook category A). ## Summary Refreshes the deterministic basic-usage walkthrough artifacts against current master — first refresh since #3178 (transcript crash fix), #3179 (import parity), #3182 (all-origins seeding) landed. ## Problem Committed walkthrough outputs predated three merged changes that alter demo-visible behavior: corpus grew 16→19 sessions / 62→71 messages across 8 origins, index schema v40→v42, embeddings v3→v4, and the MCP surface consolidation (#3056) renamed the tools the MCP walkthrough exercises. ## Solution Re-ran every walkthrough recorded command against a fresh scratch seed: 1-4 (find/read/search/resume) byte-identical — surface stability demonstrated; 5/8 (cost, status/debt) refreshed with expected corpus-growth deltas; 7 (MCP round-trip) refactored onto the query/read dispatchers preserving the search→summary pattern; README stamp + schema refs updated. Cold-reader gate re-answered from directory contents alone. Produced by a Haiku lane; branch harvested by coordinator. ## Verification Each walkthrough re-executed against a fresh `polylogue demo seed` in a scratch root; diffs classified per-artifact (table in lane report); `devtools verify --quick` 16/16 green. Co-authored-by: Claude <[email protected]>
Summary
Retires the duplicate MCP-only
archive_list_sessionsandarchive_search_sessionscompatibility tools.Problem
Those aliases bypassed the canonical cursor-resumable query transaction. Their
response-budget fallback could return an empty continuation, so an agent could
not recover an oversized result safely.
Solution
The MCP registrar and executable declaration registry no longer expose the
legacy aliases. Generated discovery/reference surfaces and contract pins now
name only canonical
list_sessionsandsearch; API and HTTP helper contractsare unchanged.
Verification
devtools render alldevtools test tests/unit/mcp/test_tool_discovery.py tests/unit/mcp/test_envelope_contracts.py100 passedRef polylogue-z9gh.
Summary by CodeRabbit