@trops/dash-core 0.1.70 → 0.1.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5092,9 +5092,31 @@ const mcpController$2 = {
5092
5092
  );
5093
5093
  }
5094
5094
 
5095
+ // Build args - start with static args, then append dynamic args from credentials
5096
+ const args = [...(mcpConfig.args || [])];
5097
+ if (mcpConfig.argsMapping && credentials) {
5098
+ Object.entries(mcpConfig.argsMapping).forEach(
5099
+ ([credentialKey, config]) => {
5100
+ const value = credentials[credentialKey];
5101
+ if (value) {
5102
+ if (config.type === "split" && config.delimiter) {
5103
+ args.push(
5104
+ ...value
5105
+ .split(config.delimiter)
5106
+ .map((s) => s.trim())
5107
+ .filter(Boolean),
5108
+ );
5109
+ } else {
5110
+ args.push(value);
5111
+ }
5112
+ }
5113
+ },
5114
+ );
5115
+ }
5116
+
5095
5117
  transport = new StdioClientTransport({
5096
5118
  command: mcpConfig.command,
5097
- args: mcpConfig.args || [],
5119
+ args,
5098
5120
  env,
5099
5121
  });
5100
5122
  }