( serverName: string, serverConfig: McpSSEServerConfig | McpHTTPServerConfig, )
| 2428 | } |
| 2429 | |
| 2430 | export 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. |
no test coverage detected