-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat: reduce MCP tool call UI clutter #11161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…nd path truncation - Add collapsible description in McpToolRow when in chat context - Truncate workspace root paths in MCP arguments for cleaner display - Add expand/collapse toggle button with chevron icon - Add tooltip with full description on hover - Add new translation keys for expand/collapse actions - Add tests for collapsible description functionality Addresses #11155
Review complete. No issues found. The latest commit adds missing Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues. |
|
@roomote fix missing translations: |
Added missing |
This PR attempts to address Issue #11155 by implementing the following improvements to reduce UI clutter from MCP tool calls:
Changes
1. Collapsible Tool Descriptions in Chat Context
line-clamp-22. Workspace Path Truncation in Arguments
./Files Modified
webview-ui/src/components/mcp/McpToolRow.tsx- Added collapsible description functionalitywebview-ui/src/components/chat/McpExecution.tsx- Added path truncation utilitywebview-ui/src/i18n/locales/en/mcp.json- Added translation keys for expand/collapsewebview-ui/src/components/mcp/__tests__/McpToolRow.spec.tsx- Added tests for collapsible descriptionTrade-offs
Feedback and guidance are welcome!
Important
This PR reduces MCP tool call UI clutter by adding collapsible descriptions and truncating workspace paths, with updates to translations and tests.
McpToolRow.tsx: Descriptions in chat context are now collapsible with a chevron toggle and tooltip for full text.McpExecution.tsx: Truncates workspace paths in tool arguments to./for cleaner display.McpToolRow.spec.tsx: Added tests for collapsible description functionality.mcp.jsonin multiple locales to include keys for "expand" and "collapse" descriptions.This description was created by
for 745aeb3. You can customize this summary. It will automatically update as commits are pushed.