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