MCPcopy
hub / github.com/codeaashu/claude-code / isMcpServerDisabled

Function isMcpServerDisabled

src/services/mcp/config.ts:1528–1536  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

1526 * @returns true if the server is disabled
1527 */
1528export function isMcpServerDisabled(name: string): boolean {
1529 const projectConfig = getCurrentProjectConfig()
1530 if (isDefaultDisabledBuiltin(name)) {
1531 const enabledServers = projectConfig.enabledMcpServers || []
1532 return !enabledServers.includes(name)
1533 }
1534 const disabledServers = projectConfig.disabledMcpServers || []
1535 return disabledServers.includes(name)
1536}
1537
1538function toggleMembership(
1539 list: string[],

Callers 10

runHeadlessStreamingFunction · 0.85
processServerFunction · 0.85
dedupClaudeAiMcpServersFunction · 0.85
getClaudeCodeMcpConfigsFunction · 0.85
setMcpServerEnabledFunction · 0.85
useManageMCPConnectionsFunction · 0.85
reconnectWithBackoffFunction · 0.85
loadAndConnectMcpConfigsFunction · 0.85

Calls 2

getCurrentProjectConfigFunction · 0.85
isDefaultDisabledBuiltinFunction · 0.85

Tested by

no test coverage detected