neuronlayer 0.2.4 → 0.2.5
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/dist/index.js +4 -8
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -39247,10 +39247,8 @@ function configureMCPClient(clientName, configPath, serverName, projectPath) {
|
|
|
39247
39247
|
if (!config2.mcpServers) {
|
|
39248
39248
|
config2.mcpServers = {};
|
|
39249
39249
|
}
|
|
39250
|
-
|
|
39251
|
-
|
|
39252
|
-
args: ["-y", "neuronlayer", "--project", projectPath]
|
|
39253
|
-
};
|
|
39250
|
+
const isWindows = process.platform === "win32";
|
|
39251
|
+
config2.mcpServers[serverName] = isWindows ? { command: "cmd", args: ["/c", "npx", "-y", "neuronlayer", "--project", projectPath] } : { command: "npx", args: ["-y", "neuronlayer", "--project", projectPath] };
|
|
39254
39252
|
try {
|
|
39255
39253
|
writeFileSync6(configPath, JSON.stringify(config2, null, 2));
|
|
39256
39254
|
return { success: true, message: `${clientName}: ${configPath}` };
|
|
@@ -39272,10 +39270,8 @@ function configureProjectMCP(configPath, projectPath) {
|
|
|
39272
39270
|
}
|
|
39273
39271
|
delete config2.mcpServers["memorylayer"];
|
|
39274
39272
|
const absoluteProjectPath = resolve3(projectPath);
|
|
39275
|
-
|
|
39276
|
-
|
|
39277
|
-
args: ["-y", "neuronlayer", "--project", absoluteProjectPath]
|
|
39278
|
-
};
|
|
39273
|
+
const isWindows = process.platform === "win32";
|
|
39274
|
+
config2.mcpServers["neuronlayer"] = isWindows ? { command: "cmd", args: ["/c", "npx", "-y", "neuronlayer", "--project", absoluteProjectPath] } : { command: "npx", args: ["-y", "neuronlayer", "--project", absoluteProjectPath] };
|
|
39279
39275
|
try {
|
|
39280
39276
|
writeFileSync6(configPath, JSON.stringify(config2, null, 2));
|
|
39281
39277
|
return { success: true, message: `Claude Code / OpenCode: ${configPath} (project-local)` };
|