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

Function safeUpstreamToken

src/proxy/clientSettings.js:68–72  ·  view source on GitHub ↗
(value, proxyToken)

Source from the content-addressed store, hash-verified

66}
67
68function safeUpstreamToken(value, proxyToken) {
69 const token = typeof value === 'string' ? value.trim() : '';
70 if (!token || token === proxyToken) return '';
71 return token;
72}
73
74function getClaudeSettingsFile(env = process.env) {
75 const home = getHomeDir(env);

Callers 2

setRuntimeUpstreamApiKeyFunction · 0.85
syncClaudeProxySettingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected