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

Function buildRedirectUri

src/services/mcp/oauthPort.ts:21–25  ·  view source on GitHub ↗
(
  port: number = REDIRECT_PORT_FALLBACK,
)

Source from the content-addressed store, hash-verified

19 * port as long as the path matches.
20 */
21export function buildRedirectUri(
22 port: number = REDIRECT_PORT_FALLBACK,
23): string {
24 return `http://localhost:${port}/callback`
25}
26
27function getMcpOAuthCallbackPort(): number | undefined {
28 const port = parseInt(process.env.MCP_OAUTH_CALLBACK_PORT || '', 10)

Callers 3

acquireIdpIdTokenFunction · 0.85
performMCPOAuthFlowFunction · 0.85
constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected