Repository navigation
docs: fix MCP tool count (12→13), add June 2026 hardening notes - #446
Conversation
Comparison table said 12 MCP tools; correct count is 13. CLAUDE.md Interfaces section updated from 11→13 tools (added brain_resume + brain_enrich), with note that brain_update/expand/tags are deprecated in Python MCP path but work via BrainBar native path. Added June 2026 search & KG hardening section covering PRs #433–#445: loud hook failures, drain hardening, chunk_origin provenance, MMR default-ON, KG entity dedup tooling, KG boost→entity-FTS. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
|
Warning Review limit reached
More reviews will be available in 30 minutes and 21 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: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ 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 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1564721332
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| - **Hook failures are now loud** ([#433](https://github.com/EtanHey/brainlayer/pull/433)) — BrainLayer hook DB failures raise clearly instead of silently swallowing errors. | ||
| - **Drain hardening** ([#435](https://github.com/EtanHey/brainlayer/pull/435)) — drain is now resilient to DB open locks under writer contention. | ||
| - **chunk_origin provenance** ([#436](https://github.com/EtanHey/brainlayer/pull/436)) — enrichment stamps `chunk_origin` on every processed chunk; a backfill pass covers existing unknowns, making provenance queryable across the full corpus. | ||
| - **MMR diversity is now on by default** ([#439](https://github.com/EtanHey/brainlayer/pull/439)) — `brain_search` applies Maximal Marginal Relevance post-retrieval dedup automatically; pass `mmr=false` to opt out. |
There was a problem hiding this comment.
This documents mmr=false as a brain_search opt-out, but the Python MCP tool contract does not expose or read any mmr parameter: I checked the brain_search schema/dispatcher in src/brainlayer/mcp/__init__.py, and SearchMixin always calls _mmr_rerank_scored_results after sorting in src/brainlayer/search_repo.py. In contexts where a caller needs exact boosted ranking or is debugging retrieval quality, following this README advice silently leaves MMR enabled, so the documented tool contract is misleading unless the option is implemented or the docs point to the actual control.
Useful? React with 👍 / 👎.
Summary
12MCP tools; correct count is 13 (verified againstsrc/brainlayer/mcp/__init__.py— 13 tool registrations)brain_resumeandbrain_enrichto the tool list; added note thatbrain_update/brain_expand/brain_tagsare deprecated in the Python MCP path (return isError) but work via the BrainBar native pathchunk_originprovenance stamping, MMR default-ON (fix: enable MMR diversity by default #439), KG entity dedup tooling (feat: add KG entity dedup tooling #441–feat: refine KG dedup path detector #443), KG boost→entity-FTS reconnect (feat: reconnect KG boost to entity FTS #445)Test plan
src/brainlayer/mcp/__init__.py(13 tool registrations confirmed)brain-bar/Sources/BrainBarDaemon/MCPRouter.swift(all 3 tools have real implementations since PR feat: implement all 6 BrainBar stub tools #135)gh pr list --state merged --limit 20🤖 Generated with Claude Code (maintenanceClaude docs sweep 2026-06-05)
Note
Low Risk
Markdown-only changes with no runtime or source modifications.
Overview
Documentation-only updates align MCP tool count to 13 in
CLAUDE.mdand the README comparison table (replacing stale 11/12 figures), and expand the documented tool roster withbrain_resumeandbrain_enrich.CLAUDE.mdnow clarifies thatbrain_update,brain_expand, andbrain_tagsare deprecated on the Python MCP path (they error there) while remaining available via the BrainBar native path.The README adds a June 2026 search & KG hardening changelog block (PRs #433–#445): loud hook failures, drain lock resilience,
chunk_originprovenance, MMR on by default forbrain_search, KG entity dedup tooling, and KG boost reconnected to entity FTS.Reviewed by Cursor Bugbot for commit 1564721. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Fix MCP tool count to 13 and add June 2026 search & KG hardening changelog
brain_resumeandbrain_enrichto the tool list.brain_update,brain_expand, andbrain_tagsreturn errors on the Python MCP path; users should use the BrainBar native path instead.chunk_originprovenance stamping and backfill, default-on MMR inbrain_search, KG entity dedup tooling, and reconnected KG boost to entity FTS.Macroscope summarized 1564721.