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

Function clearMcpClientConfig

src/services/mcp/auth.ts:2416–2428  ·  view source on GitHub ↗
(
  serverName: string,
  serverConfig: McpSSEServerConfig | McpHTTPServerConfig,
)

Source from the content-addressed store, hash-verified

2414}
2415
2416export function clearMcpClientConfig(
2417 serverName: string,
2418 serverConfig: McpSSEServerConfig | McpHTTPServerConfig,
2419): void {
2420 const storage = getSecureStorage()
2421 const existingData = storage.read()
2422 if (!existingData?.mcpOAuthClientConfig) return
2423 const serverKey = getServerKey(serverName, serverConfig)
2424 if (existingData.mcpOAuthClientConfig[serverKey]) {
2425 delete existingData.mcpOAuthClientConfig[serverKey]
2426 storage.update(existingData)
2427 }
2428}
2429
2430export function getMcpClientConfig(
2431 serverName: string,

Callers 1

cleanupSecureStorageFunction · 0.85

Calls 4

getSecureStorageFunction · 0.85
getServerKeyFunction · 0.85
readMethod · 0.65
updateMethod · 0.65

Tested by

no test coverage detected