We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b71c2e0 + 87683e2 commit e51455aCopy full SHA for e51455a
1 file changed
src/seclab_taskflow_agent/mcp_utils.py
@@ -20,6 +20,7 @@
20
import hashlib
21
import json
22
import logging
23
+import os
24
import shutil
25
from typing import Any
26
@@ -175,6 +176,12 @@ def mcp_client_params(
175
176
logging.critical(e)
177
logging.info("Assuming toolbox has default configuration available")
178
del env[k]
179
+ # Inherit proxy env vars from parent so HTTP clients
180
+ # work correctly inside network-isolated environments (AWF)
181
+ for proxy_var in ("HTTP_PROXY", "HTTPS_PROXY", "NO_PROXY",
182
+ "http_proxy", "https_proxy", "no_proxy"):
183
+ if proxy_var not in env and proxy_var in os.environ:
184
+ env[proxy_var] = os.environ[proxy_var]
185
logging.debug(f"Tool call environment: {env}")
186
if args:
187
for i, v in enumerate(args):
0 commit comments