MCPcopy Index your code
hub / github.com/codeaashu/claude-code / saveMcpClientSecret

Function saveMcpClientSecret

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

Source from the content-addressed store, hash-verified

2397}
2398
2399export function saveMcpClientSecret(
2400 serverName: string,
2401 serverConfig: McpSSEServerConfig | McpHTTPServerConfig,
2402 clientSecret: string,
2403): void {
2404 const storage = getSecureStorage()
2405 const existingData = storage.read() || {}
2406 const serverKey = getServerKey(serverName, serverConfig)
2407 storage.update({
2408 ...existingData,
2409 mcpOAuthClientConfig: {
2410 ...existingData.mcpOAuthClientConfig,
2411 [serverKey]: { clientSecret },
2412 },
2413 })
2414}
2415
2416export function clearMcpClientConfig(
2417 serverName: string,

Callers 2

registerMcpAddCommandFunction · 0.85
mcpAddJsonHandlerFunction · 0.85

Calls 4

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

Tested by

no test coverage detected