Roo-Code/src/services
roomote[bot] cfda8392fb
feat: auto-omit MCP content when no servers are configured (#5889)
* feat: auto-omit MCP content when no servers are configured

- Modify system prompt generation to detect when no MCP servers are defined
- Only include MCP sections when mode has mcp group AND servers exist
- Pass undefined mcpHub to capabilities and tools when no servers available
- Reduces system prompt verbosity when MCP functionality is not in use

* fix: add missing Uri and RelativePattern exports to VSCode mocks

- Added Uri and RelativePattern exports to global VSCode mock in __mocks__/vscode.js
- Fixed McpHub.spec.ts VSCode mock to include Uri and RelativePattern
- Fixed Task.spec.ts VSCode mock to include Uri and RelativePattern with proper TypeScript typing
- Resolves unhandled rejection errors in unit tests caused by missing VSCode API mocks

* fix: add proper TypeScript typing for RelativePattern in McpHub test mock

* fix: resolve unit test failures in PR #5889

- Fix VSCode mock onDidChangeWorkspaceFolders to accept callback parameter
- Update MCP test mocks to properly test auto-omit functionality
- Update test snapshots to reflect new MCP content omission behavior
- All core functionality tests now passing

* chore: remove package-lock.json as project uses npm

* fix: remove unrelated mock changes from PR

---------

Co-authored-by: Roo Code <roomote@roocode.com>
Co-authored-by: Daniel Riccio <ricciodaniel98@gmail.com>
2025-07-20 15:25:26 -04:00
..
browser fix: resolve URL loading timeout issues in @ mentions (#5160) 2025-06-30 10:40:53 -04:00
checkpoints fix: Exclude Terraform and Terragrunt cache directories from checkpoints (#4601) (#5750) 2025-07-15 19:50:55 -04:00
code-index feat: Add Mistral embedding provider (#5932) (#5946) 2025-07-19 13:24:24 -04:00
glob list-files must include at least the first-level directory contents (#5303) 2025-07-15 17:34:03 -04:00
marketplace fix: handle null/empty custom modes files to prevent 'Cannot read properties of null' error (#5526) 2025-07-09 15:49:32 -05:00
mcp feat: auto-omit MCP content when no servers are configured (#5889) 2025-07-20 15:25:26 -04:00
mdm Sharing improvements (#5082) 2025-06-24 16:36:32 -04:00
ripgrep Farewell jest (#4607) 2025-06-16 21:39:45 -07:00
roo-config feat: add support for loading rules from global and project-local .roo directories (#5016) 2025-06-24 11:40:45 -04:00
search Await checkpoint saves (except the initial) (#2665) 2025-04-15 16:57:12 -07:00
tree-sitter fix: resolve Go duplicate references in tree-sitter queries (#5367) (#5377) 2025-07-04 20:49:40 -04:00