MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / expandEnv

Method expandEnv

src/mcp/client.ts:326–330  ·  view source on GitHub ↗
(env: Record<string, string>)

Source from the content-addressed store, hash-verified

324 }
325
326 private expandEnv(env: Record<string, string>): Record<string, string> {
327 // Delegated to a tested utility — see src/utils/env-expand.ts
328 // Supports: $VAR, ${VAR}, $$ escape, and partial substitution inside larger strings.
329 return expandEnvObject(env);
330 }
331
332 private expandHeaders(headers: Record<string, string>): Record<string, string> {
333 return this.expandEnv(headers);

Callers 2

buildTransportMethod · 0.95
expandHeadersMethod · 0.95

Calls 1

expandEnvObjectFunction · 0.85

Tested by

no test coverage detected