MCPcopy Create free account
hub / github.com/coder/mux / hasAuthTokens

Method hasAuthTokens

src/node/services/mcpOauthService.ts:611–619  ·  view source on GitHub ↗

* Used by MCPServerManager caching to restart servers when auth state changes.

(input: { serverUrl: string })

Source from the content-addressed store, hash-verified

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;

Callers 2

getToolsForWorkspaceMethod · 0.80

Tested by

no test coverage detected