* Used by MCPServerManager caching to restart servers when auth state changes.
(input: { serverUrl: string })
| 609 | * Used by MCPServerManager caching to restart servers when auth state changes. |
| 610 | */ |
| 611 | async hasAuthTokens(input: { serverUrl: string }): Promise<boolean> { |
| 612 | const normalizedServerUrl = normalizeServerUrlForComparison(input.serverUrl); |
| 613 | if (!normalizedServerUrl) { |
| 614 | return false; |
| 615 | } |
| 616 | |
| 617 | const creds = await this.getValidStoredCredentials({ serverUrl: normalizedServerUrl }); |
| 618 | return Boolean(creds?.tokens && creds.clientInformation); |
| 619 | } |
| 620 | |
| 621 | private async resolveServerForOauthFlow(input: { |
| 622 | projectPath: string; |
no test coverage detected