MCPcopy Index your code
hub / github.com/codeaashu/claude-code / mcpBaseUrlAnalytics

Function mcpBaseUrlAnalytics

src/services/mcp/client.ts:323–333  ·  view source on GitHub ↗

* Spread-ready analytics field for the server's base URL. Calls * getLoggingSafeMcpBaseUrl once (not twice like the inline ternary it replaces). * Typed as AnalyticsMetadata since the URL is query-stripped and safe to log.

(serverRef: ScopedMcpServerConfig)

Source from the content-addressed store, hash-verified

321 * Typed as AnalyticsMetadata since the URL is query-stripped and safe to log.
322 */
323function mcpBaseUrlAnalytics(serverRef: ScopedMcpServerConfig): {
324 mcpServerBaseUrl?: AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS
325} {
326 const url = getLoggingSafeMcpBaseUrl(serverRef)
327 return url
328 ? {
329 mcpServerBaseUrl:
330 url as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS,
331 }
332 : {}
333}
334
335/**
336 * Shared handler for sse/http/claudeai-proxy auth failures during connect:

Callers 2

handleRemoteAuthFailureFunction · 0.85
client.tsFile · 0.85

Calls 1

getLoggingSafeMcpBaseUrlFunction · 0.85

Tested by

no test coverage detected