feat: warn users when too many MCP tools are enabled #10772
+707
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes ROO-542.
Summary
MAX_MCP_TOOLS_THRESHOLDto reduce model confusion; export the threshold via shared types and CLI constants for reuse.too_many_tools_warningchat rows from task flow and render a new warning UI using the reusableWarningRowcomponent plus translated copy for tool/server counts.Important
Introduces a warning system for excessive MCP tools to prevent model confusion, with UI updates and tests.
MAX_MCP_TOOLS_THRESHOLDto prevent model confusion.too_many_tools_warningchat rows inTask.tsand renders warning UI usingWarningRow.MAX_MCP_TOOLS_THRESHOLDinconstants.tsandmcp.ts.TooManyToolsWarningandWarningRowcomponents inChatRow.tsx.TooManyToolsWarning.spec.tsxandWarningRow.spec.tsx.This description was created by
for 18bcd22. You can customize this summary. It will automatically update as commits are pushed.