@trops/dash-core 0.1.73 → 0.1.75

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.
@@ -4570,7 +4570,8 @@ function requireProviderController () {
4570
4570
  try {
4571
4571
  const catalogPath = path.join(__dirname, "..", "mcp", "mcpServerCatalog.json");
4572
4572
  if (existsSync(catalogPath)) {
4573
- catalog = JSON.parse(readFileSync(catalogPath, "utf-8"));
4573
+ const catalogData = JSON.parse(readFileSync(catalogPath, "utf-8"));
4574
+ catalog = catalogData.servers || [];
4574
4575
  }
4575
4576
  } catch (e) {
4576
4577
  // Catalog is optional — merge is best-effort
@@ -5113,6 +5114,13 @@ const mcpController$2 = {
5113
5114
  );
5114
5115
  }
5115
5116
 
5117
+ // Merge static env vars from mcpConfig (with ~ expansion)
5118
+ if (mcpConfig.staticEnv) {
5119
+ Object.entries(mcpConfig.staticEnv).forEach(([envVar, value]) => {
5120
+ env[envVar] = value.replace(/^~/, process.env.HOME || "");
5121
+ });
5122
+ }
5123
+
5116
5124
  // Build args - start with static args, then append dynamic args from credentials
5117
5125
  const args = [...(mcpConfig.args || [])];
5118
5126
  if (mcpConfig.argsMapping && credentials) {
@@ -5604,6 +5612,13 @@ const mcpController$2 = {
5604
5612
  });
5605
5613
  }
5606
5614
 
5615
+ // Merge static env vars from authCommand with ~ expansion
5616
+ if (authCommand.staticEnv) {
5617
+ Object.entries(authCommand.staticEnv).forEach(([key, value]) => {
5618
+ env[key] = value.replace(/^~/, process.env.HOME || "");
5619
+ });
5620
+ }
5621
+
5607
5622
  return new Promise((resolve) => {
5608
5623
  const proc = spawn(authCommand.command, authCommand.args || [], {
5609
5624
  env,