Roo-Code/src/shared
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(mcp): improve mcp with McpExecution, make UX like terminal execute (#3485) 2025-06-12 00:46:07 -04:00
api.ts Move provider data into @roo-code/types (#4153) 2025-05-30 14:54:48 -07:00
array.ts Initial streaming refactor 2024-10-09 01:49:54 -04:00
checkExistApiConfig.ts Add a new @roo-code/types package and use it everywhere (#3912) 2025-05-26 12:06:45 -07:00
combineApiRequests.ts Add a new @roo-code/types package and use it everywhere (#3912) 2025-05-26 12:06:45 -07:00
combineCommandSequences.ts feat(mcp): improve mcp with McpExecution, make UX like terminal execute (#3485) 2025-06-12 00:46:07 -04:00
context-mentions.ts Support mentioning filenames with spaces (#3044) 2025-04-29 22:27:16 -04:00
cost.ts Add a new @roo-code/types package and use it everywhere (#3912) 2025-05-26 12:06:45 -07:00
embeddingModels.ts feat: Add OpenAI Compatible embedder for codebase indexing (#4066) 2025-06-04 17:00:52 -04:00
experiments.ts Marketplace (#4538) 2025-06-11 17:28:12 -04:00
ExtensionMessage.ts feat(mcp): improve mcp with McpExecution, make UX like terminal execute (#3485) 2025-06-12 00:46:07 -04:00
getApiMetrics.ts Add a new @roo-code/types package and use it everywhere (#3912) 2025-05-26 12:06:45 -07:00
globalFileNames.ts Use yaml as default custom modes format (#3749) 2025-05-20 16:44:29 -04:00
language.ts Add a new @roo-code/types package and use it everywhere (#3912) 2025-05-26 12:06:45 -07:00
mcp.ts add support for mcp server instructions (#3260) 2025-06-01 22:28:27 -04:00
modes.ts fix: ensure correct precedence for roleDefinition and customInstructions when generating system prompt (#3791) 2025-05-28 13:23:49 -04:00
package.ts Add a new @roo-code/types package and use it everywhere (#3912) 2025-05-26 12:06:45 -07:00
ProfileValidator.ts Roo Code Cloud (#4069) 2025-05-28 20:43:30 -07:00
safeJsonParse.ts feat: vertex/gemini prompt caching (#2996) 2025-04-28 15:11:35 -07:00
support-prompt.ts Fix linter errors (#3821) 2025-05-21 23:16:43 -07:00
TelemetrySetting.ts Add telemetry and privacy policy 2025-03-07 03:03:44 -05:00
tools.ts feat(read_file): enhance file reading capabilities with multi-file support and improved parameter handling (#2886) 2025-05-30 17:09:42 -04:00
vsCodeSelectorUtils.ts Prettier backfill 2025-01-17 14:11:28 -05:00
WebviewMessage.ts Always focus the panel when clicked to ensure menu buttons are visible (#4511) 2025-06-12 00:09:19 -04:00