(
serverName: string,
serverConfig: McpSSEServerConfig | McpHTTPServerConfig,
redirectUri: string = buildRedirectUri(),
handleRedirection = false,
onAuthorizationUrl?: (url: string) => void,
skipBrowserOpen?: boolean,
)
| 1391 | private skipBrowserOpen: boolean |
| 1392 | |
| 1393 | constructor( |
| 1394 | serverName: string, |
| 1395 | serverConfig: McpSSEServerConfig | McpHTTPServerConfig, |
| 1396 | redirectUri: string = buildRedirectUri(), |
| 1397 | handleRedirection = false, |
| 1398 | onAuthorizationUrl?: (url: string) => void, |
| 1399 | skipBrowserOpen?: boolean, |
| 1400 | ) { |
| 1401 | this.serverName = serverName |
| 1402 | this.serverConfig = serverConfig |
| 1403 | this.redirectUri = redirectUri |
| 1404 | this.handleRedirection = handleRedirection |
| 1405 | this.onAuthorizationUrlCallback = onAuthorizationUrl |
| 1406 | this.skipBrowserOpen = skipBrowserOpen ?? false |
| 1407 | } |
| 1408 | |
| 1409 | get redirectUrl(): string { |
| 1410 | return this.redirectUri |
nothing calls this directly
no test coverage detected