Roo-Code/packages
Roo Code 27b4b30833 feat: add per-mode MCP server allowlist (allowedMcpServers)
Add an optional allowedMcpServers field to ModeConfig that acts as a
whitelist for MCP servers on a per-mode basis. When defined, only the
listed MCP servers tools are injected for that mode. When omitted or
empty, all enabled MCP servers are included (preserving current behavior).

This addresses context bloat and tool limit issues when running multiple
MCP servers with models that have strict tool limits (e.g. 128-tool limit).

Changes:
- packages/types/src/mode.ts: Add allowedMcpServers to modeConfigSchema
- src/core/prompts/tools/native-tools/mcp_server.ts: Accept allowedMcpServers filter
- src/core/task/build-tools.ts: Pass allowedMcpServers from mode config
- src/core/prompts/system.ts: Filter MCP capabilities in system prompt

Closes #12004
2026-03-27 17:55:58 +00:00
..
build Custom tool calling (#10083) 2025-12-21 12:43:06 -08:00
cloud feat: update cloud settings refresh interval to one hour (#11749) 2026-02-25 21:05:56 -08:00
config-eslint Upgrade to ESLint 9 + share eslint config across workspaces (#3815) 2025-05-21 21:30:21 -07:00
config-typescript Move @roo-code/cloud to the Roo-Code repo (#7503) 2025-08-28 11:18:45 -07:00
core feat(cli): add session resume/history and upgrade command (#11768) 2026-02-26 13:55:46 -08:00
evals Fix spelling/grammar and casing inconsistencies (#11485) 2026-02-24 14:22:22 -07:00
ipc feat: add DeleteQueuedMessage IPC command (#11464) 2026-02-18 10:42:48 -07:00
telemetry fix(condense): remove custom condensing model option (#10901) 2026-01-22 20:06:04 -05:00
types feat: add per-mode MCP server allowlist (allowedMcpServers) 2026-03-27 17:55:58 +00:00
vscode-shim Some cleanup in ExtensionHost (#10600) 2026-01-10 02:29:33 -08:00