feat: allow disabled_mcps to accept any MCP name (#513)

This commit is contained in:
Sisyphus
2026-01-05 21:12:05 +09:00
committed by GitHub
parent 27757025a9
commit debb117f65
6 changed files with 226 additions and 9 deletions
+2 -2
View File
@@ -9,11 +9,11 @@ const allBuiltinMcps: Record<McpName, { type: "remote"; url: string; enabled: bo
grep_app,
}
export function createBuiltinMcps(disabledMcps: McpName[] = []) {
export function createBuiltinMcps(disabledMcps: string[] = []) {
const mcps: Record<string, { type: "remote"; url: string; enabled: boolean }> = {}
for (const [name, config] of Object.entries(allBuiltinMcps)) {
if (!disabledMcps.includes(name as McpName)) {
if (!disabledMcps.includes(name)) {
mcps[name] = config
}
}