Roo-Code/src/core
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
..
__mocks__ Switch list files from globby to ripgrep (#2689) 2025-04-19 14:13:45 -04:00
assistant-message Disable checkpoint if nested git repos are detected (#4509) 2025-06-10 13:29:19 -07:00
checkpoints Disable checkpoint if nested git repos are detected (#4509) 2025-06-10 13:29:19 -07:00
condense [Condense] Fix bug where bedrock requires a user message first (#4150) 2025-05-30 17:25:05 -04:00
config Marketplace (#4538) 2025-06-11 17:28:12 -04:00
context-tracking Revert "fix: use safeWriteJson for all JSON file writes" (#4471) 2025-06-09 13:53:17 -04:00
diff test: add command line test for multi-search-replace (#2220) 2025-06-01 22:14:53 -04:00
environment Disable checkpoint if nested git repos are detected (#4509) 2025-06-10 13:29:19 -07:00
ignore Fix all linter errors (and fix the lint scripts too) (#2958) 2025-04-26 09:45:26 -07:00
mentions @directory not respecting .rooIgnore Fix (#4075) 2025-05-28 21:58:50 -04:00
prompts Run prettier on src (#4478) 2025-06-09 17:10:33 -04:00
sliding-window Roo Code Cloud (#4069) 2025-05-28 20:43:30 -07:00
task Get rid of "partial" component in names referencing not necessarily partial messages (#4332) 2025-06-04 16:55:20 -04:00
task-persistence Revert "fix: use safeWriteJson for all JSON file writes" (#4471) 2025-06-09 13:53:17 -04:00
tools feat(mcp): improve mcp with McpExecution, make UX like terminal execute (#3485) 2025-06-12 00:46:07 -04:00
webview Always focus the panel when clicked to ensure menu buttons are visible (#4511) 2025-06-12 00:09:19 -04:00