You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 74703b6
Browse filesBrowse the repository at this point in the historyBrowse files
Adds optional `allowedMcpServers: string[]` to ModeConfig. When defined,
only listed MCP servers' schemas are injected into the system prompt and
exposed as native tools, preventing context bloat in specialized modes.
- Schema: packages/types ModeConfig + schemas/roomodes.json
- Prompt: filter mcpHub.getServers() by allowlist in system.ts and
native-tools/mcp_server.ts; wired via core/task/build-tools.ts
- UI: new McpServerRestriction.tsx editor (cachedState + 150ms debounce,
per AGENTS.md SettingsView pattern), integrated into ModesView for both
edit and create flows
- Tests: schema, system-prompt filtering, native-tool filtering,
component behavior; vitest config + toolkit mock updates
Ports upstream RooCodeInc/Roo-Code#12004 (fix from simurg79/Roo-Code#1).
Copy file name to clipboardExpand all lines: schemas/roomodes.json
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -80,6 +80,13 @@
80
80
"required": ["relativePath"],
81
81
"additionalProperties": false
82
82
}
83
+
},
84
+
"allowedMcpServers": {
85
+
"type": "array",
86
+
"items": {
87
+
"type": "string"
88
+
},
89
+
"description": "Optional list of MCP server names to include. When omitted, all servers are available. When set, only the listed servers are injected."
0 commit comments