dlw-machine-setup 0.4.9 → 0.4.10
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.
- package/bin/installer.js +6 -4
- package/package.json +1 -1
package/bin/installer.js
CHANGED
|
@@ -3761,13 +3761,15 @@ async function setupMCPConfiguration(projectPath, mcpConfig, agent) {
|
|
|
3761
3761
|
}
|
|
3762
3762
|
const addedServers = [];
|
|
3763
3763
|
const skippedServers = [];
|
|
3764
|
-
const
|
|
3764
|
+
const existingServers = existingFile[target.rootKey] ?? {};
|
|
3765
|
+
const newServers = {};
|
|
3765
3766
|
for (const [serverName, serverConfig] of Object.entries(mcpConfig)) {
|
|
3766
3767
|
const { description, useWhen, active, ...mcpFields } = serverConfig;
|
|
3767
|
-
|
|
3768
|
+
newServers[serverName] = mcpFields;
|
|
3768
3769
|
addedServers.push(serverName);
|
|
3769
3770
|
}
|
|
3770
|
-
const
|
|
3771
|
+
const mergedServers = { ...existingServers, ...newServers };
|
|
3772
|
+
const outputFile = { ...existingFile, [target.rootKey]: mergedServers };
|
|
3771
3773
|
(0, import_fs3.writeFileSync)(mcpJsonPath, JSON.stringify(outputFile, null, 2), "utf-8");
|
|
3772
3774
|
return { addedServers, skippedServers };
|
|
3773
3775
|
}
|
|
@@ -4028,7 +4030,7 @@ async function loadWizardOptions(token, repo) {
|
|
|
4028
4030
|
}
|
|
4029
4031
|
|
|
4030
4032
|
// src/index.ts
|
|
4031
|
-
var INSTALLER_VERSION = "0.4.
|
|
4033
|
+
var INSTALLER_VERSION = "0.4.10";
|
|
4032
4034
|
function getInstructionFilePath(agent) {
|
|
4033
4035
|
switch (agent) {
|
|
4034
4036
|
case "claude-code":
|