@trops/dash-core 0.1.79 → 0.1.80

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.
@@ -5168,6 +5168,30 @@ const mcpController$2 = {
5168
5168
  await mcpController$2.stopServer(win, serverName);
5169
5169
  }
5170
5170
 
5171
+ // Merge with catalog entry to pick up updated command/args
5172
+ // (saved provider config may reference a stale or archived package)
5173
+ try {
5174
+ const { catalog } = mcpController$2.getCatalog(win);
5175
+ const catalogEntry = (catalog || []).find(
5176
+ (entry) => entry.name === serverName,
5177
+ );
5178
+ if (catalogEntry?.mcpConfig) {
5179
+ const cat = catalogEntry.mcpConfig;
5180
+ if (cat.command) mcpConfig.command = cat.command;
5181
+ if (cat.args) mcpConfig.args = [...cat.args];
5182
+ if (cat.staticEnv) mcpConfig.staticEnv = cat.staticEnv;
5183
+ if (cat.tokenRefresh) mcpConfig.tokenRefresh = cat.tokenRefresh;
5184
+ if (cat.envMapping) {
5185
+ mcpConfig.envMapping = {
5186
+ ...mcpConfig.envMapping,
5187
+ ...cat.envMapping,
5188
+ };
5189
+ }
5190
+ }
5191
+ } catch (catalogErr) {
5192
+ // Non-fatal: proceed with saved config if catalog lookup fails
5193
+ }
5194
+
5171
5195
  console.log(
5172
5196
  `[mcpController] Starting server: ${serverName} (transport: ${
5173
5197
  mcpConfig.transport || "stdio"