(config: McpServerConfig)
| 358 | |
| 359 | /** True if a server config is http/sse with OAuth enabled. */ |
| 360 | export function isOAuthConfig(config: McpServerConfig): boolean { |
| 361 | return (config.type === "http" || config.type === "sse") && hasOAuth(config) |
| 362 | } |
| 363 | |
| 364 | /** True if this server has persisted OAuth tokens (i.e. already authenticated). */ |
| 365 | export function hasStoredAuth(serverName: string): boolean { |
no test coverage detected