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

Function getMcpClientConfig

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

Source from the content-addressed store, hash-verified

2428}
2429
2430export function getMcpClientConfig(
2431 serverName: string,
2432 serverConfig: McpSSEServerConfig | McpHTTPServerConfig,
2433): { clientSecret?: string } | undefined {
2434 const storage = getSecureStorage()
2435 const data = storage.read()
2436 const serverKey = getServerKey(serverName, serverConfig)
2437 return data?.mcpOAuthClientConfig?.[serverKey]
2438}
2439
2440/**
2441 * Safely extracts scope information from AuthorizationServerMetadata.

Callers 3

mcpGetHandlerFunction · 0.85
performMCPXaaAuthFunction · 0.85
xaaRefreshMethod · 0.85

Calls 3

getSecureStorageFunction · 0.85
getServerKeyFunction · 0.85
readMethod · 0.65

Tested by

no test coverage detected