( serverName: string, serverConfig: McpSSEServerConfig | McpHTTPServerConfig, )
| 2414 | } |
| 2415 | |
| 2416 | export 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 | |
| 2430 | export function getMcpClientConfig( |
| 2431 | serverName: string, |
no test coverage detected