fix(mcp): honor disabled server overrides in system name discovery

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-04-04 01:13:23 +09:00
parent 35c34ea06b
commit 67145b5339
@@ -59,7 +59,10 @@ export function getSystemMcpServerNames(): Set<string> {
if (!config?.mcpServers) continue
for (const [name, serverConfig] of Object.entries(config.mcpServers)) {
if (serverConfig.disabled) continue
if (serverConfig.disabled) {
names.delete(name)
continue
}
if (!shouldLoadMcpServer(serverConfig, cwd)) continue
names.add(name)
}