We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14b7e1c commit a8bb136Copy full SHA for a8bb136
1 file changed
src/datapilot/core/mcp_utils/mcp.py
@@ -122,13 +122,12 @@ def create_mcp_proxy():
122
"config": input_configs,
123
"command": server_config["command"],
124
"args": [
125
- f"${{{input_id}}}" if any(input_val in str(arg) for input_val in inputs.values()) else arg
126
- for arg, input_id in zip(server_config.get("args", []), inputs.keys())
+ arg.replace("${input:", "${") if isinstance(arg, str) else arg
+ for arg in server_config.get("args", [])
127
],
128
"env": {
129
- k: f"${{{input_id}}}" if any(input_val in str(v) for input_val in inputs.values()) else v
+ k: v.replace("${input:", "${") if isinstance(v, str) else v
130
for k, v in server_config.get("env", {}).items()
131
- for input_id in inputs
132
},
133
**output
134
}
0 commit comments