claude-flow 2.7.4 → 2.7.6

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.
@@ -1,4 +1,9 @@
1
- import { printSuccess } from '../utils.js';
1
+ import { printSuccess, printError, printWarning } from '../utils.js';
2
+ let isStdioMode = false;
3
+ const log = (...args)=>isStdioMode ? console.error(...args) : console.log(...args);
4
+ const success = (msg)=>isStdioMode ? console.error(`✅ ${msg}`) : printSuccess(msg);
5
+ const error = (msg)=>isStdioMode ? console.error(`❌ ${msg}`) : printError(msg);
6
+ const warning = (msg)=>isStdioMode ? console.error(`⚠️ ${msg}`) : printWarning(msg);
2
7
  export async function mcpCommand(subArgs, flags) {
3
8
  const mcpCmd = subArgs[0];
4
9
  switch(mcpCmd){
@@ -25,25 +30,26 @@ export async function mcpCommand(subArgs, flags) {
25
30
  }
26
31
  }
27
32
  async function showMcpStatus(subArgs, flags) {
28
- printSuccess('MCP Server Status:');
29
- console.log('🌐 Status: Stopped (orchestrator not running)');
30
- console.log('🔧 Configuration: Default settings');
31
- console.log('🔌 Connections: 0 active');
32
- console.log('📡 Tools: Ready to load');
33
- console.log('🔐 Authentication: Not configured');
33
+ success('MCP Server Status:');
34
+ log('🌐 Status: Stopped (orchestrator not running)');
35
+ log('🔧 Configuration: Default settings');
36
+ log('🔌 Connections: 0 active');
37
+ log('📡 Tools: Ready to load');
38
+ log('🔐 Authentication: Not configured');
34
39
  }
35
40
  async function startMcpServer(subArgs, flags) {
36
41
  const autoOrchestrator = subArgs.includes('--auto-orchestrator') || flags.autoOrchestrator;
37
42
  const daemon = subArgs.includes('--daemon') || flags.daemon;
38
43
  const stdio = subArgs.includes('--stdio') || flags.stdio || true;
44
+ isStdioMode = stdio;
39
45
  if (stdio) {
40
- printSuccess('Starting Claude Flow MCP server in stdio mode...');
46
+ success('Starting Claude Flow MCP server in stdio mode...');
41
47
  if (autoOrchestrator) {
42
- console.log('🚀 Auto-starting orchestrator...');
43
- console.log('🧠 Neural network capabilities: ENABLED');
44
- console.log('🔧 WASM SIMD optimization: ACTIVE');
45
- console.log('📊 Performance monitoring: ENABLED');
46
- console.log('🐝 Swarm coordination: READY');
48
+ log('🚀 Auto-starting orchestrator...');
49
+ log('🧠 Neural network capabilities: ENABLED');
50
+ log('🔧 WASM SIMD optimization: ACTIVE');
51
+ log('📊 Performance monitoring: ENABLED');
52
+ log('🐝 Swarm coordination: READY');
47
53
  }
48
54
  try {
49
55
  const { fileURLToPath } = await import('url');
@@ -54,9 +60,9 @@ async function startMcpServer(subArgs, flags) {
54
60
  const mcpServerPath = path.join(__dirname, '../../mcp/mcp-server.js');
55
61
  const fs = await import('fs');
56
62
  if (!fs.existsSync(mcpServerPath)) {
57
- console.error(`MCP server file not found at: ${mcpServerPath}`);
58
- console.error(`Current directory: ${process.cwd()}`);
59
- console.error(`Script directory: ${__dirname}`);
63
+ error(`MCP server file not found at: ${mcpServerPath}`);
64
+ error(`Current directory: ${process.cwd()}`);
65
+ error(`Script directory: ${__dirname}`);
60
66
  throw new Error(`MCP server file not found: ${mcpServerPath}`);
61
67
  }
62
68
  const serverProcess = spawn('node', [
@@ -72,288 +78,288 @@ async function startMcpServer(subArgs, flags) {
72
78
  });
73
79
  serverProcess.on('exit', (code)=>{
74
80
  if (code !== 0) {
75
- console.error(`MCP server exited with code ${code}`);
81
+ error(`MCP server exited with code ${code}`);
76
82
  }
77
83
  });
78
84
  await new Promise(()=>{});
79
- } catch (error) {
80
- console.error('Failed to start MCP server:', error.message);
81
- console.log('🚀 MCP server would start with:');
82
- console.log(' Protocol: stdio');
83
- console.log(' Tools: 87 Claude-Flow integration tools');
84
- console.log(' Orchestrator: ' + (autoOrchestrator ? 'AUTO-STARTED' : 'Manual'));
85
- console.log(' Mode: ' + (daemon ? 'DAEMON' : 'Interactive'));
85
+ } catch (err) {
86
+ error('Failed to start MCP server: ' + err.message);
87
+ log('🚀 MCP server would start with:');
88
+ log(' Protocol: stdio');
89
+ log(' Tools: 87 Claude-Flow integration tools');
90
+ log(' Orchestrator: ' + (autoOrchestrator ? 'AUTO-STARTED' : 'Manual'));
91
+ log(' Mode: ' + (daemon ? 'DAEMON' : 'Interactive'));
86
92
  }
87
93
  } else {
88
94
  const port = getFlag(subArgs, '--port') || flags.port || 3000;
89
95
  const host = getFlag(subArgs, '--host') || flags.host || 'localhost';
90
- printSuccess(`Starting Claude Flow MCP server on ${host}:${port}...`);
91
- console.log('🚀 HTTP mode not yet implemented, use --stdio for full functionality');
96
+ success(`Starting Claude Flow MCP server on ${host}:${port}...`);
97
+ log('🚀 HTTP mode not yet implemented, use --stdio for full functionality');
92
98
  }
93
99
  }
94
100
  async function stopMcpServer(subArgs, flags) {
95
- printSuccess('Stopping MCP server...');
96
- console.log('🛑 Server would be gracefully shut down');
97
- console.log('📝 Active connections would be closed');
98
- console.log('💾 State would be persisted');
101
+ success('Stopping MCP server...');
102
+ log('🛑 Server would be gracefully shut down');
103
+ log('📝 Active connections would be closed');
104
+ log('💾 State would be persisted');
99
105
  }
100
106
  async function listMcpTools(subArgs, flags) {
101
107
  const verbose = subArgs.includes('--verbose') || subArgs.includes('-v') || flags.verbose;
102
108
  const category = getFlag(subArgs, '--category') || flags.category;
103
- printSuccess('Claude-Flow MCP Tools & Resources (87 total):');
109
+ success('Claude-Flow MCP Tools & Resources (87 total):');
104
110
  if (!category || category === 'swarm') {
105
- console.log('\n🐝 SWARM COORDINATION (12 tools):');
106
- console.log(' • swarm_init Initialize swarm with topology');
107
- console.log(' • agent_spawn Create specialized AI agents');
108
- console.log(' • task_orchestrate Orchestrate complex workflows');
109
- console.log(' • swarm_status Monitor swarm health/performance');
110
- console.log(' • agent_list List active agents & capabilities');
111
- console.log(' • agent_metrics Agent performance metrics');
112
- console.log(' • swarm_monitor Real-time swarm monitoring');
113
- console.log(' • topology_optimize Auto-optimize swarm topology');
114
- console.log(' • load_balance Distribute tasks efficiently');
115
- console.log(' • coordination_sync Sync agent coordination');
116
- console.log(' • swarm_scale Auto-scale agent count');
117
- console.log(' • swarm_destroy Gracefully shutdown swarm');
111
+ log('\n🐝 SWARM COORDINATION (12 tools):');
112
+ log(' • swarm_init Initialize swarm with topology');
113
+ log(' • agent_spawn Create specialized AI agents');
114
+ log(' • task_orchestrate Orchestrate complex workflows');
115
+ log(' • swarm_status Monitor swarm health/performance');
116
+ log(' • agent_list List active agents & capabilities');
117
+ log(' • agent_metrics Agent performance metrics');
118
+ log(' • swarm_monitor Real-time swarm monitoring');
119
+ log(' • topology_optimize Auto-optimize swarm topology');
120
+ log(' • load_balance Distribute tasks efficiently');
121
+ log(' • coordination_sync Sync agent coordination');
122
+ log(' • swarm_scale Auto-scale agent count');
123
+ log(' • swarm_destroy Gracefully shutdown swarm');
118
124
  }
119
125
  if (!category || category === 'neural') {
120
- console.log('\n🧠 NEURAL NETWORKS & AI (15 tools):');
121
- console.log(' • neural_status Check neural network status');
122
- console.log(' • neural_train Train neural patterns');
123
- console.log(' • neural_patterns Analyze cognitive patterns');
124
- console.log(' • neural_predict Make AI predictions');
125
- console.log(' • model_load Load pre-trained models');
126
- console.log(' • model_save Save trained models');
127
- console.log(' • wasm_optimize WASM SIMD optimization');
128
- console.log(' • inference_run Run neural inference');
129
- console.log(' • pattern_recognize Pattern recognition');
130
- console.log(' • cognitive_analyze Cognitive behavior analysis');
131
- console.log(' • learning_adapt Adaptive learning');
132
- console.log(' • neural_compress Compress neural models');
133
- console.log(' • ensemble_create Create model ensembles');
134
- console.log(' • transfer_learn Transfer learning');
135
- console.log(' • neural_explain AI explainability');
126
+ log('\n🧠 NEURAL NETWORKS & AI (15 tools):');
127
+ log(' • neural_status Check neural network status');
128
+ log(' • neural_train Train neural patterns');
129
+ log(' • neural_patterns Analyze cognitive patterns');
130
+ log(' • neural_predict Make AI predictions');
131
+ log(' • model_load Load pre-trained models');
132
+ log(' • model_save Save trained models');
133
+ log(' • wasm_optimize WASM SIMD optimization');
134
+ log(' • inference_run Run neural inference');
135
+ log(' • pattern_recognize Pattern recognition');
136
+ log(' • cognitive_analyze Cognitive behavior analysis');
137
+ log(' • learning_adapt Adaptive learning');
138
+ log(' • neural_compress Compress neural models');
139
+ log(' • ensemble_create Create model ensembles');
140
+ log(' • transfer_learn Transfer learning');
141
+ log(' • neural_explain AI explainability');
136
142
  }
137
143
  if (!category || category === 'memory') {
138
- console.log('\n💾 MEMORY & PERSISTENCE (12 tools):');
139
- console.log(' • memory_usage Store/retrieve persistent data');
140
- console.log(' • memory_search Search memory with patterns');
141
- console.log(' • memory_persist Cross-session persistence');
142
- console.log(' • memory_namespace Namespace management');
143
- console.log(' • memory_backup Backup memory stores');
144
- console.log(' • memory_restore Restore from backups');
145
- console.log(' • memory_compress Compress memory data');
146
- console.log(' • memory_sync Sync across instances');
147
- console.log(' • cache_manage Manage coordination cache');
148
- console.log(' • state_snapshot Create state snapshots');
149
- console.log(' • context_restore Restore execution context');
150
- console.log(' • memory_analytics Analyze memory usage');
144
+ log('\n💾 MEMORY & PERSISTENCE (12 tools):');
145
+ log(' • memory_usage Store/retrieve persistent data');
146
+ log(' • memory_search Search memory with patterns');
147
+ log(' • memory_persist Cross-session persistence');
148
+ log(' • memory_namespace Namespace management');
149
+ log(' • memory_backup Backup memory stores');
150
+ log(' • memory_restore Restore from backups');
151
+ log(' • memory_compress Compress memory data');
152
+ log(' • memory_sync Sync across instances');
153
+ log(' • cache_manage Manage coordination cache');
154
+ log(' • state_snapshot Create state snapshots');
155
+ log(' • context_restore Restore execution context');
156
+ log(' • memory_analytics Analyze memory usage');
151
157
  }
152
158
  if (!category || category === 'analysis') {
153
- console.log('\n📊 ANALYSIS & MONITORING (13 tools):');
154
- console.log(' • task_status Check task execution status');
155
- console.log(' • task_results Get task completion results');
156
- console.log(' • benchmark_run Performance benchmarks');
157
- console.log(' • bottleneck_analyze Identify bottlenecks');
158
- console.log(' • performance_report Generate performance reports');
159
- console.log(' • token_usage Analyze token consumption');
160
- console.log(' • metrics_collect Collect system metrics');
161
- console.log(' • trend_analysis Analyze performance trends');
162
- console.log(' • cost_analysis Cost and resource analysis');
163
- console.log(' • quality_assess Quality assessment');
164
- console.log(' • error_analysis Error pattern analysis');
165
- console.log(' • usage_stats Usage statistics');
166
- console.log(' • health_check System health monitoring');
159
+ log('\n📊 ANALYSIS & MONITORING (13 tools):');
160
+ log(' • task_status Check task execution status');
161
+ log(' • task_results Get task completion results');
162
+ log(' • benchmark_run Performance benchmarks');
163
+ log(' • bottleneck_analyze Identify bottlenecks');
164
+ log(' • performance_report Generate performance reports');
165
+ log(' • token_usage Analyze token consumption');
166
+ log(' • metrics_collect Collect system metrics');
167
+ log(' • trend_analysis Analyze performance trends');
168
+ log(' • cost_analysis Cost and resource analysis');
169
+ log(' • quality_assess Quality assessment');
170
+ log(' • error_analysis Error pattern analysis');
171
+ log(' • usage_stats Usage statistics');
172
+ log(' • health_check System health monitoring');
167
173
  }
168
174
  if (!category || category === 'workflow') {
169
- console.log('\n🔧 WORKFLOW & AUTOMATION (11 tools):');
170
- console.log(' • workflow_create Create custom workflows');
171
- console.log(' • workflow_execute Execute predefined workflows');
172
- console.log(' • workflow_export Export workflow definitions');
173
- console.log(' • sparc_mode Run SPARC development modes');
174
- console.log(' • automation_setup Setup automation rules');
175
- console.log(' • pipeline_create Create CI/CD pipelines');
176
- console.log(' • scheduler_manage Manage task scheduling');
177
- console.log(' • trigger_setup Setup event triggers');
178
- console.log(' • workflow_template Manage workflow templates');
179
- console.log(' • batch_process Batch processing');
180
- console.log(' • parallel_execute Execute tasks in parallel');
175
+ log('\n🔧 WORKFLOW & AUTOMATION (11 tools):');
176
+ log(' • workflow_create Create custom workflows');
177
+ log(' • workflow_execute Execute predefined workflows');
178
+ log(' • workflow_export Export workflow definitions');
179
+ log(' • sparc_mode Run SPARC development modes');
180
+ log(' • automation_setup Setup automation rules');
181
+ log(' • pipeline_create Create CI/CD pipelines');
182
+ log(' • scheduler_manage Manage task scheduling');
183
+ log(' • trigger_setup Setup event triggers');
184
+ log(' • workflow_template Manage workflow templates');
185
+ log(' • batch_process Batch processing');
186
+ log(' • parallel_execute Execute tasks in parallel');
181
187
  }
182
188
  if (!category || category === 'github') {
183
- console.log('\n🐙 GITHUB INTEGRATION (8 tools):');
184
- console.log(' • github_repo_analyze Repository analysis');
185
- console.log(' • github_pr_manage Pull request management');
186
- console.log(' • github_issue_track Issue tracking & triage');
187
- console.log(' • github_release_coord Release coordination');
188
- console.log(' • github_workflow_auto Workflow automation');
189
- console.log(' • github_code_review Automated code review');
190
- console.log(' • github_sync_coord Multi-repo sync coordination');
191
- console.log(' • github_metrics Repository metrics');
189
+ log('\n🐙 GITHUB INTEGRATION (8 tools):');
190
+ log(' • github_repo_analyze Repository analysis');
191
+ log(' • github_pr_manage Pull request management');
192
+ log(' • github_issue_track Issue tracking & triage');
193
+ log(' • github_release_coord Release coordination');
194
+ log(' • github_workflow_auto Workflow automation');
195
+ log(' • github_code_review Automated code review');
196
+ log(' • github_sync_coord Multi-repo sync coordination');
197
+ log(' • github_metrics Repository metrics');
192
198
  }
193
199
  if (!category || category === 'daa') {
194
- console.log('\n🤖 DAA (Dynamic Agent Architecture) (8 tools):');
195
- console.log(' • daa_agent_create Create dynamic agents');
196
- console.log(' • daa_capability_match Match capabilities to tasks');
197
- console.log(' • daa_resource_alloc Resource allocation');
198
- console.log(' • daa_lifecycle_manage Agent lifecycle management');
199
- console.log(' • daa_communication Inter-agent communication');
200
- console.log(' • daa_consensus Consensus mechanisms');
201
- console.log(' • daa_fault_tolerance Fault tolerance & recovery');
202
- console.log(' • daa_optimization Performance optimization');
200
+ log('\n🤖 DAA (Dynamic Agent Architecture) (8 tools):');
201
+ log(' • daa_agent_create Create dynamic agents');
202
+ log(' • daa_capability_match Match capabilities to tasks');
203
+ log(' • daa_resource_alloc Resource allocation');
204
+ log(' • daa_lifecycle_manage Agent lifecycle management');
205
+ log(' • daa_communication Inter-agent communication');
206
+ log(' • daa_consensus Consensus mechanisms');
207
+ log(' • daa_fault_tolerance Fault tolerance & recovery');
208
+ log(' • daa_optimization Performance optimization');
203
209
  }
204
210
  if (!category || category === 'system') {
205
- console.log('\n⚙️ SYSTEM & UTILITIES (8 tools):');
206
- console.log(' • terminal_execute Execute terminal commands');
207
- console.log(' • config_manage Configuration management');
208
- console.log(' • features_detect Feature detection');
209
- console.log(' • security_scan Security scanning');
210
- console.log(' • backup_create Create system backups');
211
- console.log(' • restore_system System restoration');
212
- console.log(' • log_analysis Log analysis & insights');
213
- console.log(' • diagnostic_run System diagnostics');
211
+ log('\n⚙️ SYSTEM & UTILITIES (8 tools):');
212
+ log(' • terminal_execute Execute terminal commands');
213
+ log(' • config_manage Configuration management');
214
+ log(' • features_detect Feature detection');
215
+ log(' • security_scan Security scanning');
216
+ log(' • backup_create Create system backups');
217
+ log(' • restore_system System restoration');
218
+ log(' • log_analysis Log analysis & insights');
219
+ log(' • diagnostic_run System diagnostics');
214
220
  }
215
221
  if (verbose) {
216
- console.log('\n📋 DETAILED TOOL INFORMATION:');
217
- console.log(' 🔥 HIGH-PRIORITY TOOLS:');
218
- console.log(' swarm_init: Initialize coordination with 4 topologies (hierarchical, mesh, ring, star)');
219
- console.log(' agent_spawn: 8 agent types (researcher, coder, analyst, architect, tester, coordinator, reviewer, optimizer)');
220
- console.log(' neural_train: Train 27 neural models with WASM SIMD acceleration');
221
- console.log(' memory_usage: 5 operations (store, retrieve, list, delete, search) with TTL & namespacing');
222
- console.log(' performance_report: Real-time metrics with 24h/7d/30d timeframes');
223
- console.log('\n ⚡ PERFORMANCE FEATURES:');
224
- console.log(' • 2.8-4.4x speed improvement with parallel execution');
225
- console.log(' • 32.3% token reduction through optimization');
226
- console.log(' • 84.8% SWE-Bench solve rate with swarm coordination');
227
- console.log(' • WASM neural processing with SIMD optimization');
228
- console.log(' • Cross-session memory persistence');
229
- console.log('\n 🔗 INTEGRATION CAPABILITIES:');
230
- console.log(' • Full ruv-swarm feature parity (rebranded)');
231
- console.log(' • Claude Code native tool integration');
232
- console.log(' • GitHub Actions workflow automation');
233
- console.log(' • SPARC methodology with 17 modes');
234
- console.log(' • MCP protocol compatibility');
222
+ log('\n📋 DETAILED TOOL INFORMATION:');
223
+ log(' 🔥 HIGH-PRIORITY TOOLS:');
224
+ log(' swarm_init: Initialize coordination with 4 topologies (hierarchical, mesh, ring, star)');
225
+ log(' agent_spawn: 8 agent types (researcher, coder, analyst, architect, tester, coordinator, reviewer, optimizer)');
226
+ log(' neural_train: Train 27 neural models with WASM SIMD acceleration');
227
+ log(' memory_usage: 5 operations (store, retrieve, list, delete, search) with TTL & namespacing');
228
+ log(' performance_report: Real-time metrics with 24h/7d/30d timeframes');
229
+ log('\n ⚡ PERFORMANCE FEATURES:');
230
+ log(' • 2.8-4.4x speed improvement with parallel execution');
231
+ log(' • 32.3% token reduction through optimization');
232
+ log(' • 84.8% SWE-Bench solve rate with swarm coordination');
233
+ log(' • WASM neural processing with SIMD optimization');
234
+ log(' • Cross-session memory persistence');
235
+ log('\n 🔗 INTEGRATION CAPABILITIES:');
236
+ log(' • Full ruv-swarm feature parity (rebranded)');
237
+ log(' • Claude Code native tool integration');
238
+ log(' • GitHub Actions workflow automation');
239
+ log(' • SPARC methodology with 17 modes');
240
+ log(' • MCP protocol compatibility');
235
241
  }
236
- console.log('\n📡 Status: 87 tools & resources available when server is running');
237
- console.log('🎯 Categories: swarm, neural, memory, analysis, workflow, github, daa, system');
238
- console.log('🔗 Compatibility: ruv-swarm + DAA + Claude-Flow unified platform');
239
- console.log('\n💡 Usage: claude-flow mcp tools --category=<category> --verbose');
242
+ log('\n📡 Status: 87 tools & resources available when server is running');
243
+ log('🎯 Categories: swarm, neural, memory, analysis, workflow, github, daa, system');
244
+ log('🔗 Compatibility: ruv-swarm + DAA + Claude-Flow unified platform');
245
+ log('\n💡 Usage: claude-flow mcp tools --category=<category> --verbose');
240
246
  }
241
247
  async function manageMcpAuth(subArgs, flags) {
242
248
  const authCmd = subArgs[1];
243
249
  switch(authCmd){
244
250
  case 'setup':
245
- printSuccess('Setting up MCP authentication...');
246
- console.log('🔐 Authentication configuration:');
247
- console.log(' Type: API Key based');
248
- console.log(' Scope: Claude-Flow tools');
249
- console.log(' Security: TLS encrypted');
251
+ success('Setting up MCP authentication...');
252
+ log('🔐 Authentication configuration:');
253
+ log(' Type: API Key based');
254
+ log(' Scope: Claude-Flow tools');
255
+ log(' Security: TLS encrypted');
250
256
  break;
251
257
  case 'status':
252
- printSuccess('MCP Authentication Status:');
253
- console.log('🔐 Status: Not configured');
254
- console.log('🔑 API Keys: 0 active');
255
- console.log('🛡️ Security: Default settings');
258
+ success('MCP Authentication Status:');
259
+ log('🔐 Status: Not configured');
260
+ log('🔑 API Keys: 0 active');
261
+ log('🛡️ Security: Default settings');
256
262
  break;
257
263
  case 'rotate':
258
- printSuccess('Rotating MCP authentication keys...');
259
- console.log('🔄 New API keys would be generated');
260
- console.log('♻️ Old keys would be deprecated gracefully');
264
+ success('Rotating MCP authentication keys...');
265
+ log('🔄 New API keys would be generated');
266
+ log('♻️ Old keys would be deprecated gracefully');
261
267
  break;
262
268
  default:
263
- console.log('Auth commands: setup, status, rotate');
264
- console.log('Examples:');
265
- console.log(' claude-flow mcp auth setup');
266
- console.log(' claude-flow mcp auth status');
269
+ log('Auth commands: setup, status, rotate');
270
+ log('Examples:');
271
+ log(' claude-flow mcp auth setup');
272
+ log(' claude-flow mcp auth status');
267
273
  }
268
274
  }
269
275
  async function showMcpConfig(subArgs, flags) {
270
- printSuccess('Claude-Flow MCP Server Configuration:');
271
- console.log('\n📋 Server Settings:');
272
- console.log(' Host: localhost');
273
- console.log(' Port: 3000');
274
- console.log(' Protocol: HTTP/STDIO');
275
- console.log(' Timeout: 30000ms');
276
- console.log(' Auto-Orchestrator: Enabled');
277
- console.log('\n🔧 Tool Configuration:');
278
- console.log(' Available Tools: 87 total');
279
- console.log(' Categories: 8 (swarm, neural, memory, analysis, workflow, github, daa, system)');
280
- console.log(' Authentication: API Key + OAuth');
281
- console.log(' Rate Limiting: 1000 req/min');
282
- console.log(' WASM Support: Enabled with SIMD');
283
- console.log('\n🧠 Neural Network Settings:');
284
- console.log(' Models: 27 pre-trained models available');
285
- console.log(' Training: Real-time adaptive learning');
286
- console.log(' Inference: WASM optimized');
287
- console.log(' Pattern Recognition: Enabled');
288
- console.log('\n🐝 Swarm Configuration:');
289
- console.log(' Max Agents: 10 per swarm');
290
- console.log(' Topologies: hierarchical, mesh, ring, star');
291
- console.log(' Coordination: Real-time with hooks');
292
- console.log(' Memory: Cross-session persistence');
293
- console.log('\n🔐 Security Settings:');
294
- console.log(' TLS: Enabled in production');
295
- console.log(' CORS: Configured for Claude Code');
296
- console.log(' API Key Rotation: 30 days');
297
- console.log(' Audit Logging: Enabled');
298
- console.log('\n🔗 Integration Settings:');
299
- console.log(' ruv-swarm Compatibility: 100%');
300
- console.log(' DAA Integration: Enabled');
301
- console.log(' GitHub Actions: Connected');
302
- console.log(' SPARC Modes: 17 available');
303
- console.log('\n📁 Configuration Files:');
304
- console.log(' Main Config: ./mcp_config/claude-flow.json');
305
- console.log(' Neural Models: ./models/');
306
- console.log(' Memory Store: ./memory/');
307
- console.log(' Logs: ./logs/mcp/');
276
+ success('Claude-Flow MCP Server Configuration:');
277
+ log('\n📋 Server Settings:');
278
+ log(' Host: localhost');
279
+ log(' Port: 3000');
280
+ log(' Protocol: HTTP/STDIO');
281
+ log(' Timeout: 30000ms');
282
+ log(' Auto-Orchestrator: Enabled');
283
+ log('\n🔧 Tool Configuration:');
284
+ log(' Available Tools: 87 total');
285
+ log(' Categories: 8 (swarm, neural, memory, analysis, workflow, github, daa, system)');
286
+ log(' Authentication: API Key + OAuth');
287
+ log(' Rate Limiting: 1000 req/min');
288
+ log(' WASM Support: Enabled with SIMD');
289
+ log('\n🧠 Neural Network Settings:');
290
+ log(' Models: 27 pre-trained models available');
291
+ log(' Training: Real-time adaptive learning');
292
+ log(' Inference: WASM optimized');
293
+ log(' Pattern Recognition: Enabled');
294
+ log('\n🐝 Swarm Configuration:');
295
+ log(' Max Agents: 10 per swarm');
296
+ log(' Topologies: hierarchical, mesh, ring, star');
297
+ log(' Coordination: Real-time with hooks');
298
+ log(' Memory: Cross-session persistence');
299
+ log('\n🔐 Security Settings:');
300
+ log(' TLS: Enabled in production');
301
+ log(' CORS: Configured for Claude Code');
302
+ log(' API Key Rotation: 30 days');
303
+ log(' Audit Logging: Enabled');
304
+ log('\n🔗 Integration Settings:');
305
+ log(' ruv-swarm Compatibility: 100%');
306
+ log(' DAA Integration: Enabled');
307
+ log(' GitHub Actions: Connected');
308
+ log(' SPARC Modes: 17 available');
309
+ log('\n📁 Configuration Files:');
310
+ log(' Main Config: ./mcp_config/claude-flow.json');
311
+ log(' Neural Models: ./models/');
312
+ log(' Memory Store: ./memory/');
313
+ log(' Logs: ./logs/mcp/');
308
314
  }
309
315
  function getFlag(args, flagName) {
310
316
  const index = args.indexOf(flagName);
311
317
  return index !== -1 && index + 1 < args.length ? args[index + 1] : null;
312
318
  }
313
319
  function showMcpHelp() {
314
- console.log('🔧 Claude-Flow MCP Server Commands:');
315
- console.log();
316
- console.log('COMMANDS:');
317
- console.log(' status Show MCP server status');
318
- console.log(' start [options] Start MCP server with orchestrator');
319
- console.log(' stop Stop MCP server gracefully');
320
- console.log(' tools [options] List available tools & resources');
321
- console.log(' auth <setup|status|rotate> Manage authentication');
322
- console.log(' config Show comprehensive configuration');
323
- console.log();
324
- console.log('START OPTIONS:');
325
- console.log(' --port <port> Server port (default: 3000)');
326
- console.log(' --host <host> Server host (default: localhost)');
327
- console.log(' --auto-orchestrator Auto-start orchestrator with neural/WASM');
328
- console.log(' --daemon Run in background daemon mode');
329
- console.log(' --enable-neural Enable neural network features');
330
- console.log(' --enable-wasm Enable WASM SIMD optimization');
331
- console.log();
332
- console.log('TOOLS OPTIONS:');
333
- console.log(' --category <cat> Filter by category (swarm, neural, memory, etc.)');
334
- console.log(' --verbose, -v Show detailed tool information');
335
- console.log(' --examples Show usage examples');
336
- console.log();
337
- console.log('CATEGORIES:');
338
- console.log(' swarm 🐝 Swarm coordination (12 tools)');
339
- console.log(' neural 🧠 Neural networks & AI (15 tools)');
340
- console.log(' memory 💾 Memory & persistence (12 tools)');
341
- console.log(' analysis 📊 Analysis & monitoring (13 tools)');
342
- console.log(' workflow 🔧 Workflow & automation (11 tools)');
343
- console.log(' github 🐙 GitHub integration (8 tools)');
344
- console.log(' daa 🤖 Dynamic Agent Architecture (8 tools)');
345
- console.log(' system ⚙️ System & utilities (8 tools)');
346
- console.log();
347
- console.log('EXAMPLES:');
348
- console.log(' claude-flow mcp status');
349
- console.log(' claude-flow mcp start --auto-orchestrator --daemon');
350
- console.log(' claude-flow mcp tools --category=neural --verbose');
351
- console.log(' claude-flow mcp tools --category=swarm');
352
- console.log(' claude-flow mcp config');
353
- console.log(' claude-flow mcp auth setup');
354
- console.log();
355
- console.log('🎯 Total: 87 tools & resources available');
356
- console.log('🔗 Full ruv-swarm + DAA + Claude-Flow integration');
320
+ log('🔧 Claude-Flow MCP Server Commands:');
321
+ log();
322
+ log('COMMANDS:');
323
+ log(' status Show MCP server status');
324
+ log(' start [options] Start MCP server with orchestrator');
325
+ log(' stop Stop MCP server gracefully');
326
+ log(' tools [options] List available tools & resources');
327
+ log(' auth <setup|status|rotate> Manage authentication');
328
+ log(' config Show comprehensive configuration');
329
+ log();
330
+ log('START OPTIONS:');
331
+ log(' --port <port> Server port (default: 3000)');
332
+ log(' --host <host> Server host (default: localhost)');
333
+ log(' --auto-orchestrator Auto-start orchestrator with neural/WASM');
334
+ log(' --daemon Run in background daemon mode');
335
+ log(' --enable-neural Enable neural network features');
336
+ log(' --enable-wasm Enable WASM SIMD optimization');
337
+ log();
338
+ log('TOOLS OPTIONS:');
339
+ log(' --category <cat> Filter by category (swarm, neural, memory, etc.)');
340
+ log(' --verbose, -v Show detailed tool information');
341
+ log(' --examples Show usage examples');
342
+ log();
343
+ log('CATEGORIES:');
344
+ log(' swarm 🐝 Swarm coordination (12 tools)');
345
+ log(' neural 🧠 Neural networks & AI (15 tools)');
346
+ log(' memory 💾 Memory & persistence (12 tools)');
347
+ log(' analysis 📊 Analysis & monitoring (13 tools)');
348
+ log(' workflow 🔧 Workflow & automation (11 tools)');
349
+ log(' github 🐙 GitHub integration (8 tools)');
350
+ log(' daa 🤖 Dynamic Agent Architecture (8 tools)');
351
+ log(' system ⚙️ System & utilities (8 tools)');
352
+ log();
353
+ log('EXAMPLES:');
354
+ log(' claude-flow mcp status');
355
+ log(' claude-flow mcp start --auto-orchestrator --daemon');
356
+ log(' claude-flow mcp tools --category=neural --verbose');
357
+ log(' claude-flow mcp tools --category=swarm');
358
+ log(' claude-flow mcp config');
359
+ log(' claude-flow mcp auth setup');
360
+ log();
361
+ log('🎯 Total: 87 tools & resources available');
362
+ log('🔗 Full ruv-swarm + DAA + Claude-Flow integration');
357
363
  }
358
364
 
359
365
  //# sourceMappingURL=mcp.js.map