ninja-terminals 2.2.2 → 2.2.3

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 +35 -5
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -121,21 +121,51 @@ if (hasFlag('--setup')) {
121
121
  }
122
122
  }
123
123
 
124
- // 4. Check for Claude in Chrome
124
+ // 4. Add required MCP dependencies (Playwright + Fetch)
125
+ // These are needed for browser automation and API calls
126
+
127
+ if (!mcpConfig.mcpServers['playwright']) {
128
+ mcpConfig.mcpServers['playwright'] = {
129
+ command: 'npx',
130
+ args: ['@anthropic-ai/playwright-mcp@latest']
131
+ };
132
+ console.log(`✅ Added Playwright MCP (browser automation)`);
133
+ } else {
134
+ console.log(`✅ Playwright MCP already configured`);
135
+ }
136
+
137
+ if (!mcpConfig.mcpServers['fetch']) {
138
+ mcpConfig.mcpServers['fetch'] = {
139
+ command: 'npx',
140
+ args: ['@anthropic-ai/fetch-mcp@latest']
141
+ };
142
+ console.log(`✅ Added Fetch MCP (API calls)`);
143
+ } else {
144
+ console.log(`✅ Fetch MCP already configured`);
145
+ }
146
+
147
+ // Save updated config with all MCPs
148
+ fs.writeFileSync(mcpPath, JSON.stringify(mcpConfig, null, 2) + '\n');
149
+
150
+ // 5. Check for Claude in Chrome (optional but recommended)
125
151
  const chromeExt = mcpConfig.mcpServers['claude-in-chrome'];
126
152
  if (chromeExt) {
127
- console.log(`✅ Claude in Chrome detected`);
153
+ console.log(`✅ Claude in Chrome detected (recommended)`);
128
154
  } else {
129
- console.log(`⚠️ Claude in Chrome not found in MCP config`);
130
- console.log(` For browser automation, install: https://github.com/anthropics/claude-in-chrome`);
155
+ console.log(`ℹ️ Claude in Chrome not found (optional - Playwright will be used)`);
131
156
  }
132
157
 
133
158
  console.log(`
134
159
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
135
160
  ✨ Setup complete!
136
161
 
162
+ MCPs configured:
163
+ • ninja-terminals - orchestrates parallel Claude Code instances
164
+ • playwright - browser automation (screenshots, clicks, reading)
165
+ • fetch - API calls to /api/terminals
166
+
137
167
  Next steps:
138
- 1. Restart Claude Code to load MCP server
168
+ 1. Restart Claude Code to load MCP servers
139
169
  2. Run: npx ninja-terminals
140
170
  3. Or use MCP tools directly in Claude Code
141
171
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ninja-terminals",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
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": {