MCPcopy Create free account
hub / github.com/codeaashu/claude-code / constructor

Method constructor

src/services/mcp/auth.ts:1393–1407  ·  view source on GitHub ↗
(
    serverName: string,
    serverConfig: McpSSEServerConfig | McpHTTPServerConfig,
    redirectUri: string = buildRedirectUri(),
    handleRedirection = false,
    onAuthorizationUrl?: (url: string) => void,
    skipBrowserOpen?: boolean,
  )

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

buildRedirectUriFunction · 0.85

Tested by

no test coverage detected