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.
Files changed (2) hide show
  1. package/cli.js +6 -4
  2. 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: 'node',
82
- args: [path.join(npmRoot, 'mcp-server.js')],
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ninja-terminals",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "MCP server for multi-terminal Claude Code orchestration with DAG task management, parallel execution, and self-improvement",
5
5
  "main": "server.js",
6
6
  "bin": {