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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user