MCPcopy
hub / github.com/claude-code-best/claude-code / applyConfigEnvironmentVariables

Function applyConfigEnvironmentVariables

src/utils/managedEnv.ts:187–199  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

185 * dangerous environment variables such as LD_PRELOAD, PATH, etc.
186 */
187export function applyConfigEnvironmentVariables(): void {
188 Object.assign(process.env, filterSettingsEnv(getGlobalConfig().env))
189
190 Object.assign(process.env, filterSettingsEnv(getSettings_DEPRECATED()?.env))
191
192 // Clear caches so agents are rebuilt with the new env vars
193 clearCACertsCache()
194 clearMTLSCache()
195 clearProxyCache()
196
197 // Reconfigure proxy/mTLS agents to pick up any proxy env vars from settings
198 configureGlobalAgents()
199}

Callers 5

showSetupScreensFunction · 0.85
runFunction · 0.85
callFunction · 0.85
onChangeAppStateFunction · 0.85

Calls 6

filterSettingsEnvFunction · 0.85
getGlobalConfigFunction · 0.85
clearCACertsCacheFunction · 0.85
clearMTLSCacheFunction · 0.85
clearProxyCacheFunction · 0.85
configureGlobalAgentsFunction · 0.85

Tested by

no test coverage detected