* 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)
| 321 | * Typed as AnalyticsMetadata since the URL is query-stripped and safe to log. |
| 322 | */ |
| 323 | function 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: |
no test coverage detected