(config: { oauth?: McpOAuthConfig })
| 353 | |
| 354 | /** True if the config requests OAuth (vs. static headers). */ |
| 355 | export function hasOAuth(config: { oauth?: McpOAuthConfig }): boolean { |
| 356 | return config.oauth !== undefined && config.oauth !== false |
| 357 | } |
| 358 | |
| 359 | /** True if a server config is http/sse with OAuth enabled. */ |
| 360 | export function isOAuthConfig(config: McpServerConfig): boolean { |
no outgoing calls
no test coverage detected