ninja-terminals 2.3.0 → 2.3.1
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/cli.js +6 -4
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -75,17 +75,19 @@ if (hasFlag('--setup')) {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
// 2. Add ninja-terminals MCP server
|
|
79
|
-
const npmRoot = path.dirname(require.resolve('ninja-terminals/package.json'));
|
|
78
|
+
// 2. Add ninja-terminals MCP server (use npx so it survives cache clears)
|
|
80
79
|
mcpConfig.mcpServers['ninja-terminals'] = {
|
|
81
|
-
command: '
|
|
82
|
-
args: [
|
|
80
|
+
command: 'npx',
|
|
81
|
+
args: ['ninja-terminals-mcp'],
|
|
83
82
|
env: {
|
|
84
83
|
NINJA_TERMINAL_COUNT: '4',
|
|
85
84
|
NINJA_LOG_LEVEL: 'info'
|
|
86
85
|
}
|
|
87
86
|
};
|
|
88
87
|
|
|
88
|
+
// Get npm root for copying orchestrator prompt
|
|
89
|
+
const npmRoot = path.dirname(require.resolve('ninja-terminals/package.json'));
|
|
90
|
+
|
|
89
91
|
fs.writeFileSync(mcpPath, JSON.stringify(mcpConfig, null, 2) + '\n');
|
|
90
92
|
console.log(`✅ Added ninja-terminals to ${mcpPath}`);
|
|
91
93
|
|
package/package.json
CHANGED