( serverName: string, serverConfig: McpSSEServerConfig | McpHTTPServerConfig, clientSecret: string, )
| 2397 | } |
| 2398 | |
| 2399 | export 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 | |
| 2416 | export function clearMcpClientConfig( |
| 2417 | serverName: string, |
no test coverage detected