Skip to content

Commit 4b6f47e

Browse files
committed
fix: env variables as array
1 parent 8981ac3 commit 4b6f47e

File tree

1 file changed

+4
-1
lines changed
  • src/datapilot/core/mcp_utils

1 file changed

+4
-1
lines changed

src/datapilot/core/mcp_utils/mcp.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,10 @@ def create_mcp_proxy():
124124
"config": input_configs,
125125
"command": server_config["command"],
126126
"args": [arg.replace("${input:", "${") if isinstance(arg, str) else arg for arg in server_config.get("args", [])],
127-
"env": {k: v.replace("${input:", "${") if isinstance(v, str) else v for k, v in server_config.get("env", {}).items()},
127+
"env": [
128+
{"key": k, "value": v.replace("${input:", "${") if isinstance(v, str) else v}
129+
for k, v in server_config.get("env", {}).items()
130+
],
128131
**output,
129132
}
130133
output_json = json.dumps(output_with_name, indent=2)

0 commit comments

Comments
 (0)