Roo-Code/webview-ui/src/components/chat
Sam Hoang Van a9c1dad2ce
feat(mcp): improve mcp with McpExecution, make UX like terminal execute (#3485)
* feat: add MCP viewer and enhanced UI

- Add McpExecutionStatus type with discriminated union for execution states
- Implement McpExecution component with live status updates and collapsible output
- Replace inline MCP UI in ChatRow with dedicated McpExecution component
- Add comprehensive test coverage for useMcpToolTool
- Enhance CodeAccordian to support custom headers
- Improve combineCommandSequences to handle MCP execution flows

* refactor: merge loops in combineCommandSequences for better efficiency

- Reduced from 3 separate loops to 1 main processing loop
- Improved time complexity from O(n²) to O(n)
- Reduced total passes through array from 4 to 2
- Better memory access patterns and cache utilization

* feat: enhance JSON parsing and rendering in McpExecution component

* feat: add mock implementations for react-markdown and remark-gfm

* fix: remove unreachable return statement in ChatRowContent component

* feat(i18n): add execution status messages and error handling for invalid JSON arguments

* test: add parameter validation tests for missing server_name and tool_name

* Update McpExecution component to show server name in header and tool name in approval section

---------

Co-authored-by: Daniel Riccio <ricciodaniel98@gmail.com>
2025-06-12 00:46:07 -04:00
..
__tests__ feat(read_file): enhance file reading capabilities with multi-file support and improved parameter handling (#2886) 2025-05-30 17:09:42 -04:00
checkpoints Refactor: Use path aliases in webview source files. (#2801) 2025-04-20 21:38:08 -04:00
Announcement.tsx v3.19.0 (#4109) 2025-05-29 18:15:23 -04:00
AutoApprovedRequestLimitWarning.tsx Add a new @roo-code/types package and use it everywhere (#3912) 2025-05-26 12:06:45 -07:00
AutoApproveMenu.tsx ✨ feat(settings): Add allowedMaxRequests feature inspired by Cline (#3631) 2025-05-20 11:30:27 -04:00
BatchFilePermission.tsx feat(read_file): enhance file reading capabilities with multi-file support and improved parameter handling (#2886) 2025-05-30 17:09:42 -04:00
BrowserSessionRow.tsx Add a new @roo-code/types package and use it everywhere (#3912) 2025-05-26 12:06:45 -07:00
ChatRow.tsx feat(mcp): improve mcp with McpExecution, make UX like terminal execute (#3485) 2025-06-12 00:46:07 -04:00
ChatTextArea.tsx Add a new @roo-code/types package and use it everywhere (#3912) 2025-05-26 12:06:45 -07:00
ChatView.tsx fix: Address memory leaks in ChatView component (ChatView_1113, ChatView_1236) (#4248) 2025-06-04 17:34:34 -04:00
CheckpointWarning.tsx Improve command execution component (#3057) 2025-04-29 23:56:59 -07:00
CodebaseSearchResult.tsx Codebase indexing (Clean history) (#3137) 2025-05-23 19:07:19 -06:00
CodebaseSearchResultsDisplay.tsx Fix codebase search results string (#3938) 2025-05-24 16:23:28 -04:00
CommandExecution.tsx Add a new @roo-code/types package and use it everywhere (#3912) 2025-05-26 12:06:45 -07:00
CommandExecutionError.tsx feat: add buildDocLink utility and 21 Internal Links to Docs (#3418) 2025-05-14 13:15:05 -04:00
ContextCondenseRow.tsx [Condense] Skip condense and show error if the context grows (#4061) 2025-05-28 15:55:07 -04:00
ContextMenu.tsx Add a new @roo-code/types package and use it everywhere (#3912) 2025-05-26 12:06:45 -07:00
ContextWindowProgress.tsx Remove ModelInfo objects from settings (#2939) 2025-04-25 15:23:25 -07:00
FollowUpSuggest.tsx Refactor: Use path aliases in webview source files. (#2801) 2025-04-20 21:38:08 -04:00
IconButton.tsx Condensing fixes (#4107) 2025-05-29 10:45:13 -04:00
Markdown.tsx Revert "Tailwind migration" (#3321) 2025-05-08 10:38:29 -04:00
McpExecution.tsx feat(mcp): improve mcp with McpExecution, make UX like terminal execute (#3485) 2025-06-12 00:46:07 -04:00
Mention.tsx Add a new @roo-code/types package and use it everywhere (#3912) 2025-05-26 12:06:45 -07:00
ProfileViolationWarning.tsx Roo Code Cloud (#4069) 2025-05-28 20:43:30 -07:00
ProgressIndicator.tsx Revert "Tailwind migration" (#3321) 2025-05-08 10:38:29 -04:00
ReasoningBlock.tsx Translate thinking seconds 2025-03-17 16:06:03 -04:00
SystemPromptWarning.tsx Add a warning display when a system prompt override is active (#2804) 2025-04-20 23:28:19 -04:00
TaskActions.tsx Add a share button when logged into cloud (#4448) 2025-06-08 07:08:41 -07:00
TaskHeader.tsx [Condense] Add condense button to expanded task view (#4110) 2025-05-29 09:37:49 -07:00