MCPcopy
hub / github.com/codeaashu/claude-code / getClaudeAiBaseUrl

Function getClaudeAiBaseUrl

src/constants/product.ts:39–50  ·  view source on GitHub ↗
(
  sessionId?: string,
  ingressUrl?: string,
)

Source from the content-addressed store, hash-verified

37 * Get the base URL for Claude AI based on environment.
38 */
39export function getClaudeAiBaseUrl(
40 sessionId?: string,
41 ingressUrl?: string,
42): string {
43 if (isRemoteSessionLocal(sessionId, ingressUrl)) {
44 return CLAUDE_AI_LOCAL_BASE_URL
45 }
46 if (isRemoteSessionStaging(sessionId, ingressUrl)) {
47 return CLAUDE_AI_STAGING_BASE_URL
48 }
49 return CLAUDE_AI_BASE_URL
50}
51
52/**
53 * Get the full session URL for a remote session.

Callers 2

buildBridgeConnectUrlFunction · 0.85
getRemoteSessionUrlFunction · 0.85

Calls 2

isRemoteSessionLocalFunction · 0.85
isRemoteSessionStagingFunction · 0.85

Tested by

no test coverage detected