MCPcopy Create free account
hub / github.com/EvoMap/evolver / safeUpstreamBaseUrl

Function safeUpstreamBaseUrl

src/proxy/clientSettings.js:61–66  ·  view source on GitHub ↗
(value, opts = {})

Source from the content-addressed store, hash-verified

59}
60
61function safeUpstreamBaseUrl(value, opts = {}) {
62 const baseUrl = normalizeUrl(value);
63 if (!baseUrl) return '';
64 if (baseUrl === normalizeUrl(opts.url)) return '';
65 return baseUrl;
66}
67
68function safeUpstreamToken(value, proxyToken) {
69 const token = typeof value === 'string' ? value.trim() : '';

Callers 2

syncClaudeProxySettingsFunction · 0.85

Calls 1

normalizeUrlFunction · 0.85

Tested by

no test coverage detected