Roo-Code/src
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__ Convert jest tests to vitest and disable default watch mode for vitest (#4568) 2025-06-11 14:48:01 -07:00
__tests__ Convert jest tests to vitest and disable default watch mode for vitest (#4568) 2025-06-11 14:48:01 -07:00
activate Always focus the panel when clicked to ensure menu buttons are visible (#4511) 2025-06-12 00:09:19 -04:00
api Fix OpenRouter cost calculation with BYOK (#4543) 2025-06-11 23:19:24 -04:00
assets PNPM + Turbo monorepo + Nightly releases (#3407) 2025-05-21 21:01:20 -07:00
core feat(mcp): improve mcp with McpExecution, make UX like terminal execute (#3485) 2025-06-12 00:46:07 -04:00
extension Move evals into pnpm workspace, switch from SQLite to Postgres (#4278) 2025-06-03 01:38:08 -07:00
i18n feat(mcp): improve mcp with McpExecution, make UX like terminal execute (#3485) 2025-06-12 00:46:07 -04:00
integrations Convert jest tests to vitest and disable default watch mode for vitest (#4568) 2025-06-11 14:48:01 -07:00
services Convert jest tests to vitest and disable default watch mode for vitest (#4568) 2025-06-11 14:48:01 -07:00
shared feat(mcp): improve mcp with McpExecution, make UX like terminal execute (#3485) 2025-06-12 00:46:07 -04:00
utils Always focus the panel when clicked to ensure menu buttons are visible (#4511) 2025-06-12 00:09:19 -04:00
workers Count tokens worker (#3037) 2025-04-29 12:29:25 -07:00
.gitignore PNPM + Turbo monorepo + Nightly releases (#3407) 2025-05-21 21:01:20 -07:00
.prettierignore PNPM + Turbo monorepo + Nightly releases (#3407) 2025-05-21 21:01:20 -07:00
.vscodeignore PNPM + Turbo monorepo + Nightly releases (#3407) 2025-05-21 21:01:20 -07:00
esbuild.mjs Try to fix win32 esbuild (#4479) 2025-06-09 15:03:44 -07:00
eslint.config.mjs Fix linter errors (#3821) 2025-05-21 23:16:43 -07:00
extension.ts Cloud: add auth logs to the output channel (#4270) 2025-06-02 16:56:27 -07:00
jest.config.mjs Codebase indexing (Clean history) (#3137) 2025-05-23 19:07:19 -06:00
package.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
package.nls.ca.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
package.nls.de.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
package.nls.es.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
package.nls.fr.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
package.nls.hi.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
package.nls.it.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
package.nls.ja.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
package.nls.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
package.nls.ko.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
package.nls.nl.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
package.nls.pl.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
package.nls.pt-BR.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
package.nls.ru.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
package.nls.tr.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
package.nls.vi.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
package.nls.zh-CN.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
package.nls.zh-TW.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
tsconfig.json PNPM + Turbo monorepo + Nightly releases (#3407) 2025-05-21 21:01:20 -07:00
turbo.json Improve turbo task dependency declarations (#4323) 2025-06-04 09:32:27 -07:00
vitest.config.ts Convert jest tests to vitest and disable default watch mode for vitest (#4568) 2025-06-11 14:48:01 -07:00
vitest.setup.ts Convert jest tests to vitest and disable default watch mode for vitest (#4568) 2025-06-11 14:48:01 -07:00