mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
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 |
||
|---|---|---|
| .. | ||
| build | ||
| cloud | ||
| config-eslint | ||
| config-typescript | ||
| core | ||
| evals | ||
| ipc | ||
| telemetry | ||
| types | ||
| vscode-shim | ||