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 +1 @@
1
- {"version":3,"sources":["../../../../src/cli/simple-commands/mcp.js"],"sourcesContent":["// mcp.js - MCP server management commands\nimport { printSuccess, printError, printWarning } from '../utils.js';\n\nexport async function mcpCommand(subArgs, flags) {\n const mcpCmd = subArgs[0];\n\n switch (mcpCmd) {\n case 'status':\n await showMcpStatus(subArgs, flags);\n break;\n\n case 'start':\n await startMcpServer(subArgs, flags);\n break;\n\n case 'stop':\n await stopMcpServer(subArgs, flags);\n break;\n\n case 'tools':\n await listMcpTools(subArgs, flags);\n break;\n\n case 'auth':\n await manageMcpAuth(subArgs, flags);\n break;\n\n case 'config':\n await showMcpConfig(subArgs, flags);\n break;\n\n default:\n showMcpHelp();\n }\n}\n\nasync function showMcpStatus(subArgs, flags) {\n printSuccess('MCP Server Status:');\n console.log('🌐 Status: Stopped (orchestrator not running)');\n console.log('šŸ”§ Configuration: Default settings');\n console.log('šŸ”Œ Connections: 0 active');\n console.log('šŸ“” Tools: Ready to load');\n console.log('šŸ” Authentication: Not configured');\n}\n\nasync function startMcpServer(subArgs, flags) {\n const autoOrchestrator = subArgs.includes('--auto-orchestrator') || flags.autoOrchestrator;\n const daemon = subArgs.includes('--daemon') || flags.daemon;\n const stdio = subArgs.includes('--stdio') || flags.stdio || true; // Default to stdio mode\n\n if (stdio) {\n // Start MCP server in stdio mode (like ruv-swarm)\n printSuccess('Starting Claude Flow MCP server in stdio mode...');\n\n if (autoOrchestrator) {\n console.log('šŸš€ Auto-starting orchestrator...');\n console.log('🧠 Neural network capabilities: ENABLED');\n console.log('šŸ”§ WASM SIMD optimization: ACTIVE');\n console.log('šŸ“Š Performance monitoring: ENABLED');\n console.log('šŸ Swarm coordination: READY');\n }\n\n // Import and start the MCP server\n try {\n const { fileURLToPath } = await import('url');\n const path = await import('path');\n const { spawn } = await import('child_process');\n\n const __filename = fileURLToPath(import.meta.url);\n const __dirname = path.dirname(__filename);\n // TODO: Switch to new TypeScript server (server-standalone.js) after fixing import resolution\n // For now, using old mcp-server.js for local testing\n // Phase 4 tools will be available after NPM publish\n const mcpServerPath = path.join(__dirname, '../../mcp/mcp-server.js');\n\n // Check if the file exists, and log the path for debugging\n const fs = await import('fs');\n if (!fs.existsSync(mcpServerPath)) {\n console.error(`MCP server file not found at: ${mcpServerPath}`);\n console.error(`Current directory: ${process.cwd()}`);\n console.error(`Script directory: ${__dirname}`);\n throw new Error(`MCP server file not found: ${mcpServerPath}`);\n }\n\n // Start the MCP server process\n const serverProcess = spawn('node', [mcpServerPath], {\n stdio: 'inherit',\n env: {\n ...process.env,\n CLAUDE_FLOW_AUTO_ORCHESTRATOR: autoOrchestrator ? 'true' : 'false',\n CLAUDE_FLOW_NEURAL_ENABLED: 'true',\n CLAUDE_FLOW_WASM_ENABLED: 'true',\n },\n });\n\n serverProcess.on('exit', (code) => {\n if (code !== 0) {\n console.error(`MCP server exited with code ${code}`);\n }\n });\n\n // Keep the process alive\n await new Promise(() => {}); // Never resolves, keeps server running\n } catch (error) {\n console.error('Failed to start MCP server:', error.message);\n\n // Fallback to status display\n console.log('šŸš€ MCP server would start with:');\n console.log(' Protocol: stdio');\n console.log(' Tools: 87 Claude-Flow integration tools');\n console.log(' Orchestrator: ' + (autoOrchestrator ? 'AUTO-STARTED' : 'Manual'));\n console.log(' Mode: ' + (daemon ? 'DAEMON' : 'Interactive'));\n }\n } else {\n // HTTP mode (for future implementation)\n const port = getFlag(subArgs, '--port') || flags.port || 3000;\n const host = getFlag(subArgs, '--host') || flags.host || 'localhost';\n\n printSuccess(`Starting Claude Flow MCP server on ${host}:${port}...`);\n console.log('šŸš€ HTTP mode not yet implemented, use --stdio for full functionality');\n }\n}\n\nasync function stopMcpServer(subArgs, flags) {\n printSuccess('Stopping MCP server...');\n console.log('šŸ›‘ Server would be gracefully shut down');\n console.log('šŸ“ Active connections would be closed');\n console.log('šŸ’¾ State would be persisted');\n}\n\nasync function listMcpTools(subArgs, flags) {\n const verbose = subArgs.includes('--verbose') || subArgs.includes('-v') || flags.verbose;\n const category = getFlag(subArgs, '--category') || flags.category;\n\n printSuccess('Claude-Flow MCP Tools & Resources (87 total):');\n\n if (!category || category === 'swarm') {\n console.log('\\nšŸ SWARM COORDINATION (12 tools):');\n console.log(' • swarm_init Initialize swarm with topology');\n console.log(' • agent_spawn Create specialized AI agents');\n console.log(' • task_orchestrate Orchestrate complex workflows');\n console.log(' • swarm_status Monitor swarm health/performance');\n console.log(' • agent_list List active agents & capabilities');\n console.log(' • agent_metrics Agent performance metrics');\n console.log(' • swarm_monitor Real-time swarm monitoring');\n console.log(' • topology_optimize Auto-optimize swarm topology');\n console.log(' • load_balance Distribute tasks efficiently');\n console.log(' • coordination_sync Sync agent coordination');\n console.log(' • swarm_scale Auto-scale agent count');\n console.log(' • swarm_destroy Gracefully shutdown swarm');\n }\n\n if (!category || category === 'neural') {\n console.log('\\n🧠 NEURAL NETWORKS & AI (15 tools):');\n console.log(' • neural_status Check neural network status');\n console.log(' • neural_train Train neural patterns');\n console.log(' • neural_patterns Analyze cognitive patterns');\n console.log(' • neural_predict Make AI predictions');\n console.log(' • model_load Load pre-trained models');\n console.log(' • model_save Save trained models');\n console.log(' • wasm_optimize WASM SIMD optimization');\n console.log(' • inference_run Run neural inference');\n console.log(' • pattern_recognize Pattern recognition');\n console.log(' • cognitive_analyze Cognitive behavior analysis');\n console.log(' • learning_adapt Adaptive learning');\n console.log(' • neural_compress Compress neural models');\n console.log(' • ensemble_create Create model ensembles');\n console.log(' • transfer_learn Transfer learning');\n console.log(' • neural_explain AI explainability');\n }\n\n if (!category || category === 'memory') {\n console.log('\\nšŸ’¾ MEMORY & PERSISTENCE (12 tools):');\n console.log(' • memory_usage Store/retrieve persistent data');\n console.log(' • memory_search Search memory with patterns');\n console.log(' • memory_persist Cross-session persistence');\n console.log(' • memory_namespace Namespace management');\n console.log(' • memory_backup Backup memory stores');\n console.log(' • memory_restore Restore from backups');\n console.log(' • memory_compress Compress memory data');\n console.log(' • memory_sync Sync across instances');\n console.log(' • cache_manage Manage coordination cache');\n console.log(' • state_snapshot Create state snapshots');\n console.log(' • context_restore Restore execution context');\n console.log(' • memory_analytics Analyze memory usage');\n }\n\n if (!category || category === 'analysis') {\n console.log('\\nšŸ“Š ANALYSIS & MONITORING (13 tools):');\n console.log(' • task_status Check task execution status');\n console.log(' • task_results Get task completion results');\n console.log(' • benchmark_run Performance benchmarks');\n console.log(' • bottleneck_analyze Identify bottlenecks');\n console.log(' • performance_report Generate performance reports');\n console.log(' • token_usage Analyze token consumption');\n console.log(' • metrics_collect Collect system metrics');\n console.log(' • trend_analysis Analyze performance trends');\n console.log(' • cost_analysis Cost and resource analysis');\n console.log(' • quality_assess Quality assessment');\n console.log(' • error_analysis Error pattern analysis');\n console.log(' • usage_stats Usage statistics');\n console.log(' • health_check System health monitoring');\n }\n\n if (!category || category === 'workflow') {\n console.log('\\nšŸ”§ WORKFLOW & AUTOMATION (11 tools):');\n console.log(' • workflow_create Create custom workflows');\n console.log(' • workflow_execute Execute predefined workflows');\n console.log(' • workflow_export Export workflow definitions');\n console.log(' • sparc_mode Run SPARC development modes');\n console.log(' • automation_setup Setup automation rules');\n console.log(' • pipeline_create Create CI/CD pipelines');\n console.log(' • scheduler_manage Manage task scheduling');\n console.log(' • trigger_setup Setup event triggers');\n console.log(' • workflow_template Manage workflow templates');\n console.log(' • batch_process Batch processing');\n console.log(' • parallel_execute Execute tasks in parallel');\n }\n\n if (!category || category === 'github') {\n console.log('\\nšŸ™ GITHUB INTEGRATION (8 tools):');\n console.log(' • github_repo_analyze Repository analysis');\n console.log(' • github_pr_manage Pull request management');\n console.log(' • github_issue_track Issue tracking & triage');\n console.log(' • github_release_coord Release coordination');\n console.log(' • github_workflow_auto Workflow automation');\n console.log(' • github_code_review Automated code review');\n console.log(' • github_sync_coord Multi-repo sync coordination');\n console.log(' • github_metrics Repository metrics');\n }\n\n if (!category || category === 'daa') {\n console.log('\\nšŸ¤– DAA (Dynamic Agent Architecture) (8 tools):');\n console.log(' • daa_agent_create Create dynamic agents');\n console.log(' • daa_capability_match Match capabilities to tasks');\n console.log(' • daa_resource_alloc Resource allocation');\n console.log(' • daa_lifecycle_manage Agent lifecycle management');\n console.log(' • daa_communication Inter-agent communication');\n console.log(' • daa_consensus Consensus mechanisms');\n console.log(' • daa_fault_tolerance Fault tolerance & recovery');\n console.log(' • daa_optimization Performance optimization');\n }\n\n if (!category || category === 'system') {\n console.log('\\nāš™ļø SYSTEM & UTILITIES (8 tools):');\n console.log(' • terminal_execute Execute terminal commands');\n console.log(' • config_manage Configuration management');\n console.log(' • features_detect Feature detection');\n console.log(' • security_scan Security scanning');\n console.log(' • backup_create Create system backups');\n console.log(' • restore_system System restoration');\n console.log(' • log_analysis Log analysis & insights');\n console.log(' • diagnostic_run System diagnostics');\n }\n\n if (verbose) {\n console.log('\\nšŸ“‹ DETAILED TOOL INFORMATION:');\n console.log(' šŸ”„ HIGH-PRIORITY TOOLS:');\n console.log(\n ' swarm_init: Initialize coordination with 4 topologies (hierarchical, mesh, ring, star)',\n );\n console.log(\n ' agent_spawn: 8 agent types (researcher, coder, analyst, architect, tester, coordinator, reviewer, optimizer)',\n );\n console.log(' neural_train: Train 27 neural models with WASM SIMD acceleration');\n console.log(\n ' memory_usage: 5 operations (store, retrieve, list, delete, search) with TTL & namespacing',\n );\n console.log(' performance_report: Real-time metrics with 24h/7d/30d timeframes');\n\n console.log('\\n ⚔ PERFORMANCE FEATURES:');\n console.log(' • 2.8-4.4x speed improvement with parallel execution');\n console.log(' • 32.3% token reduction through optimization');\n console.log(' • 84.8% SWE-Bench solve rate with swarm coordination');\n console.log(' • WASM neural processing with SIMD optimization');\n console.log(' • Cross-session memory persistence');\n\n console.log('\\n šŸ”— INTEGRATION CAPABILITIES:');\n console.log(' • Full ruv-swarm feature parity (rebranded)');\n console.log(' • Claude Code native tool integration');\n console.log(' • GitHub Actions workflow automation');\n console.log(' • SPARC methodology with 17 modes');\n console.log(' • MCP protocol compatibility');\n }\n\n console.log('\\nšŸ“” Status: 87 tools & resources available when server is running');\n console.log('šŸŽÆ Categories: swarm, neural, memory, analysis, workflow, github, daa, system');\n console.log('šŸ”— Compatibility: ruv-swarm + DAA + Claude-Flow unified platform');\n console.log('\\nšŸ’” Usage: claude-flow mcp tools --category=<category> --verbose');\n}\n\nasync function manageMcpAuth(subArgs, flags) {\n const authCmd = subArgs[1];\n\n switch (authCmd) {\n case 'setup':\n printSuccess('Setting up MCP authentication...');\n console.log('šŸ” Authentication configuration:');\n console.log(' Type: API Key based');\n console.log(' Scope: Claude-Flow tools');\n console.log(' Security: TLS encrypted');\n break;\n\n case 'status':\n printSuccess('MCP Authentication Status:');\n console.log('šŸ” Status: Not configured');\n console.log('šŸ”‘ API Keys: 0 active');\n console.log('šŸ›”ļø Security: Default settings');\n break;\n\n case 'rotate':\n printSuccess('Rotating MCP authentication keys...');\n console.log('šŸ”„ New API keys would be generated');\n console.log('ā™»ļø Old keys would be deprecated gracefully');\n break;\n\n default:\n console.log('Auth commands: setup, status, rotate');\n console.log('Examples:');\n console.log(' claude-flow mcp auth setup');\n console.log(' claude-flow mcp auth status');\n }\n}\n\nasync function showMcpConfig(subArgs, flags) {\n printSuccess('Claude-Flow MCP Server Configuration:');\n console.log('\\nšŸ“‹ Server Settings:');\n console.log(' Host: localhost');\n console.log(' Port: 3000');\n console.log(' Protocol: HTTP/STDIO');\n console.log(' Timeout: 30000ms');\n console.log(' Auto-Orchestrator: Enabled');\n\n console.log('\\nšŸ”§ Tool Configuration:');\n console.log(' Available Tools: 87 total');\n console.log(' Categories: 8 (swarm, neural, memory, analysis, workflow, github, daa, system)');\n console.log(' Authentication: API Key + OAuth');\n console.log(' Rate Limiting: 1000 req/min');\n console.log(' WASM Support: Enabled with SIMD');\n\n console.log('\\n🧠 Neural Network Settings:');\n console.log(' Models: 27 pre-trained models available');\n console.log(' Training: Real-time adaptive learning');\n console.log(' Inference: WASM optimized');\n console.log(' Pattern Recognition: Enabled');\n\n console.log('\\nšŸ Swarm Configuration:');\n console.log(' Max Agents: 10 per swarm');\n console.log(' Topologies: hierarchical, mesh, ring, star');\n console.log(' Coordination: Real-time with hooks');\n console.log(' Memory: Cross-session persistence');\n\n console.log('\\nšŸ” Security Settings:');\n console.log(' TLS: Enabled in production');\n console.log(' CORS: Configured for Claude Code');\n console.log(' API Key Rotation: 30 days');\n console.log(' Audit Logging: Enabled');\n\n console.log('\\nšŸ”— Integration Settings:');\n console.log(' ruv-swarm Compatibility: 100%');\n console.log(' DAA Integration: Enabled');\n console.log(' GitHub Actions: Connected');\n console.log(' SPARC Modes: 17 available');\n\n console.log('\\nšŸ“ Configuration Files:');\n console.log(' Main Config: ./mcp_config/claude-flow.json');\n console.log(' Neural Models: ./models/');\n console.log(' Memory Store: ./memory/');\n console.log(' Logs: ./logs/mcp/');\n}\n\nfunction getFlag(args, flagName) {\n const index = args.indexOf(flagName);\n return index !== -1 && index + 1 < args.length ? args[index + 1] : null;\n}\n\nfunction showMcpHelp() {\n console.log('šŸ”§ Claude-Flow MCP Server Commands:');\n console.log();\n console.log('COMMANDS:');\n console.log(' status Show MCP server status');\n console.log(' start [options] Start MCP server with orchestrator');\n console.log(' stop Stop MCP server gracefully');\n console.log(' tools [options] List available tools & resources');\n console.log(' auth <setup|status|rotate> Manage authentication');\n console.log(' config Show comprehensive configuration');\n console.log();\n console.log('START OPTIONS:');\n console.log(' --port <port> Server port (default: 3000)');\n console.log(' --host <host> Server host (default: localhost)');\n console.log(' --auto-orchestrator Auto-start orchestrator with neural/WASM');\n console.log(' --daemon Run in background daemon mode');\n console.log(' --enable-neural Enable neural network features');\n console.log(' --enable-wasm Enable WASM SIMD optimization');\n console.log();\n console.log('TOOLS OPTIONS:');\n console.log(\n ' --category <cat> Filter by category (swarm, neural, memory, etc.)',\n );\n console.log(' --verbose, -v Show detailed tool information');\n console.log(' --examples Show usage examples');\n console.log();\n console.log('CATEGORIES:');\n console.log(' swarm šŸ Swarm coordination (12 tools)');\n console.log(' neural 🧠 Neural networks & AI (15 tools)');\n console.log(' memory šŸ’¾ Memory & persistence (12 tools)');\n console.log(' analysis šŸ“Š Analysis & monitoring (13 tools)');\n console.log(' workflow šŸ”§ Workflow & automation (11 tools)');\n console.log(' github šŸ™ GitHub integration (8 tools)');\n console.log(' daa šŸ¤– Dynamic Agent Architecture (8 tools)');\n console.log(' system āš™ļø System & utilities (8 tools)');\n console.log();\n console.log('EXAMPLES:');\n console.log(' claude-flow mcp status');\n console.log(' claude-flow mcp start --auto-orchestrator --daemon');\n console.log(' claude-flow mcp tools --category=neural --verbose');\n console.log(' claude-flow mcp tools --category=swarm');\n console.log(' claude-flow mcp config');\n console.log(' claude-flow mcp auth setup');\n console.log();\n console.log('šŸŽÆ Total: 87 tools & resources available');\n console.log('šŸ”— Full ruv-swarm + DAA + Claude-Flow integration');\n}\n"],"names":["printSuccess","mcpCommand","subArgs","flags","mcpCmd","showMcpStatus","startMcpServer","stopMcpServer","listMcpTools","manageMcpAuth","showMcpConfig","showMcpHelp","console","log","autoOrchestrator","includes","daemon","stdio","fileURLToPath","path","spawn","__filename","url","__dirname","dirname","mcpServerPath","join","fs","existsSync","error","process","cwd","Error","serverProcess","env","CLAUDE_FLOW_AUTO_ORCHESTRATOR","CLAUDE_FLOW_NEURAL_ENABLED","CLAUDE_FLOW_WASM_ENABLED","on","code","Promise","message","port","getFlag","host","verbose","category","authCmd","args","flagName","index","indexOf","length"],"mappings":"AACA,SAASA,YAAY,QAAkC,cAAc;AAErE,OAAO,eAAeC,WAAWC,OAAO,EAAEC,KAAK;IAC7C,MAAMC,SAASF,OAAO,CAAC,EAAE;IAEzB,OAAQE;QACN,KAAK;YACH,MAAMC,cAAcH,SAASC;YAC7B;QAEF,KAAK;YACH,MAAMG,eAAeJ,SAASC;YAC9B;QAEF,KAAK;YACH,MAAMI,cAAcL,SAASC;YAC7B;QAEF,KAAK;YACH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QAAQC,GAAG,CAAC;IACZD,QAAQC,GAAG,CAAC;IACZD,QAAQC,GAAG,CAAC;IACZD,QAAQC,GAAG,CAAC;IACZD,QAAQC,GAAG;IACXD,QAAQC,GAAG,CAAC;IACZD,QAAQC,GAAG,CAAC;AACd"}
1
+ {"version":3,"sources":["../../../../src/cli/simple-commands/mcp.js"],"sourcesContent":["// mcp.js - MCP server management commands\nimport { printSuccess, printError, printWarning } from '../utils.js';\n\n// Module-level state to track stdio mode\nlet isStdioMode = false;\n\n// Smart logging helpers that respect stdio mode\n// In stdio mode: route to stderr to keep stdout clean for JSON-RPC\n// In HTTP mode: route to stdout for normal behavior\nconst log = (...args) => (isStdioMode ? console.error(...args) : console.log(...args));\nconst success = (msg) => (isStdioMode ? console.error(`āœ… ${msg}`) : printSuccess(msg));\nconst error = (msg) => (isStdioMode ? console.error(`āŒ ${msg}`) : printError(msg));\nconst warning = (msg) => (isStdioMode ? console.error(`āš ļø ${msg}`) : printWarning(msg));\n\nexport async function mcpCommand(subArgs, flags) {\n const mcpCmd = subArgs[0];\n\n switch (mcpCmd) {\n case 'status':\n await showMcpStatus(subArgs, flags);\n break;\n\n case 'start':\n await startMcpServer(subArgs, flags);\n break;\n\n case 'stop':\n await stopMcpServer(subArgs, flags);\n break;\n\n case 'tools':\n await listMcpTools(subArgs, flags);\n break;\n\n case 'auth':\n await manageMcpAuth(subArgs, flags);\n break;\n\n case 'config':\n await showMcpConfig(subArgs, flags);\n break;\n\n default:\n showMcpHelp();\n }\n}\n\nasync function showMcpStatus(subArgs, flags) {\n success('MCP Server Status:');\n log('🌐 Status: Stopped (orchestrator not running)');\n log('šŸ”§ Configuration: Default settings');\n log('šŸ”Œ Connections: 0 active');\n log('šŸ“” Tools: Ready to load');\n log('šŸ” Authentication: Not configured');\n}\n\nasync function startMcpServer(subArgs, flags) {\n const autoOrchestrator = subArgs.includes('--auto-orchestrator') || flags.autoOrchestrator;\n const daemon = subArgs.includes('--daemon') || flags.daemon;\n const stdio = subArgs.includes('--stdio') || flags.stdio || true; // Default to stdio mode\n\n // Set module-level stdio flag for all helper functions\n isStdioMode = stdio;\n\n if (stdio) {\n // Start MCP server in stdio mode (like ruv-swarm)\n success('Starting Claude Flow MCP server in stdio mode...');\n\n if (autoOrchestrator) {\n log('šŸš€ Auto-starting orchestrator...');\n log('🧠 Neural network capabilities: ENABLED');\n log('šŸ”§ WASM SIMD optimization: ACTIVE');\n log('šŸ“Š Performance monitoring: ENABLED');\n log('šŸ Swarm coordination: READY');\n }\n\n // Import and start the MCP server\n try {\n const { fileURLToPath } = await import('url');\n const path = await import('path');\n const { spawn } = await import('child_process');\n\n const __filename = fileURLToPath(import.meta.url);\n const __dirname = path.dirname(__filename);\n // TODO: Switch to new TypeScript server (server-standalone.js) after fixing import resolution\n // For now, using old mcp-server.js for local testing\n // Phase 4 tools will be available after NPM publish\n const mcpServerPath = path.join(__dirname, '../../mcp/mcp-server.js');\n\n // Check if the file exists, and log the path for debugging\n const fs = await import('fs');\n if (!fs.existsSync(mcpServerPath)) {\n error(`MCP server file not found at: ${mcpServerPath}`);\n error(`Current directory: ${process.cwd()}`);\n error(`Script directory: ${__dirname}`);\n throw new Error(`MCP server file not found: ${mcpServerPath}`);\n }\n\n // Start the MCP server process\n const serverProcess = spawn('node', [mcpServerPath], {\n stdio: 'inherit',\n env: {\n ...process.env,\n CLAUDE_FLOW_AUTO_ORCHESTRATOR: autoOrchestrator ? 'true' : 'false',\n CLAUDE_FLOW_NEURAL_ENABLED: 'true',\n CLAUDE_FLOW_WASM_ENABLED: 'true',\n },\n });\n\n serverProcess.on('exit', (code) => {\n if (code !== 0) {\n error(`MCP server exited with code ${code}`);\n }\n });\n\n // Keep the process alive\n await new Promise(() => {}); // Never resolves, keeps server running\n } catch (err) {\n error('Failed to start MCP server: ' + err.message);\n\n // Fallback to status display\n log('šŸš€ MCP server would start with:');\n log(' Protocol: stdio');\n log(' Tools: 87 Claude-Flow integration tools');\n log(' Orchestrator: ' + (autoOrchestrator ? 'AUTO-STARTED' : 'Manual'));\n log(' Mode: ' + (daemon ? 'DAEMON' : 'Interactive'));\n }\n } else {\n // HTTP mode (for future implementation)\n const port = getFlag(subArgs, '--port') || flags.port || 3000;\n const host = getFlag(subArgs, '--host') || flags.host || 'localhost';\n\n success(`Starting Claude Flow MCP server on ${host}:${port}...`);\n log('šŸš€ HTTP mode not yet implemented, use --stdio for full functionality');\n }\n}\n\nasync function stopMcpServer(subArgs, flags) {\n success('Stopping MCP server...');\n log('šŸ›‘ Server would be gracefully shut down');\n log('šŸ“ Active connections would be closed');\n log('šŸ’¾ State would be persisted');\n}\n\nasync function listMcpTools(subArgs, flags) {\n const verbose = subArgs.includes('--verbose') || subArgs.includes('-v') || flags.verbose;\n const category = getFlag(subArgs, '--category') || flags.category;\n\n success('Claude-Flow MCP Tools & Resources (87 total):');\n\n if (!category || category === 'swarm') {\n log('\\nšŸ SWARM COORDINATION (12 tools):');\n log(' • swarm_init Initialize swarm with topology');\n log(' • agent_spawn Create specialized AI agents');\n log(' • task_orchestrate Orchestrate complex workflows');\n log(' • swarm_status Monitor swarm health/performance');\n log(' • agent_list List active agents & capabilities');\n log(' • agent_metrics Agent performance metrics');\n log(' • swarm_monitor Real-time swarm monitoring');\n log(' • topology_optimize Auto-optimize swarm topology');\n log(' • load_balance Distribute tasks efficiently');\n log(' • coordination_sync Sync agent coordination');\n log(' • swarm_scale Auto-scale agent count');\n log(' • swarm_destroy Gracefully shutdown swarm');\n }\n\n if (!category || category === 'neural') {\n log('\\n🧠 NEURAL NETWORKS & AI (15 tools):');\n log(' • neural_status Check neural network status');\n log(' • neural_train Train neural patterns');\n log(' • neural_patterns Analyze cognitive patterns');\n log(' • neural_predict Make AI predictions');\n log(' • model_load Load pre-trained models');\n log(' • model_save Save trained models');\n log(' • wasm_optimize WASM SIMD optimization');\n log(' • inference_run Run neural inference');\n log(' • pattern_recognize Pattern recognition');\n log(' • cognitive_analyze Cognitive behavior analysis');\n log(' • learning_adapt Adaptive learning');\n log(' • neural_compress Compress neural models');\n log(' • ensemble_create Create model ensembles');\n log(' • transfer_learn Transfer learning');\n log(' • neural_explain AI explainability');\n }\n\n if (!category || category === 'memory') {\n log('\\nšŸ’¾ MEMORY & PERSISTENCE (12 tools):');\n log(' • memory_usage Store/retrieve persistent data');\n log(' • memory_search Search memory with patterns');\n log(' • memory_persist Cross-session persistence');\n log(' • memory_namespace Namespace management');\n log(' • memory_backup Backup memory stores');\n log(' • memory_restore Restore from backups');\n log(' • memory_compress Compress memory data');\n log(' • memory_sync Sync across instances');\n log(' • cache_manage Manage coordination cache');\n log(' • state_snapshot Create state snapshots');\n log(' • context_restore Restore execution context');\n log(' • memory_analytics Analyze memory usage');\n }\n\n if (!category || category === 'analysis') {\n log('\\nšŸ“Š ANALYSIS & MONITORING (13 tools):');\n log(' • task_status Check task execution status');\n log(' • task_results Get task completion results');\n log(' • benchmark_run Performance benchmarks');\n log(' • bottleneck_analyze Identify bottlenecks');\n log(' • performance_report Generate performance reports');\n log(' • token_usage Analyze token consumption');\n log(' • metrics_collect Collect system metrics');\n log(' • trend_analysis Analyze performance trends');\n log(' • cost_analysis Cost and resource analysis');\n log(' • quality_assess Quality assessment');\n log(' • error_analysis Error pattern analysis');\n log(' • usage_stats Usage statistics');\n log(' • health_check System health monitoring');\n }\n\n if (!category || category === 'workflow') {\n log('\\nšŸ”§ WORKFLOW & AUTOMATION (11 tools):');\n log(' • workflow_create Create custom workflows');\n log(' • workflow_execute Execute predefined workflows');\n log(' • workflow_export Export workflow definitions');\n log(' • sparc_mode Run SPARC development modes');\n log(' • automation_setup Setup automation rules');\n log(' • pipeline_create Create CI/CD pipelines');\n log(' • scheduler_manage Manage task scheduling');\n log(' • trigger_setup Setup event triggers');\n log(' • workflow_template Manage workflow templates');\n log(' • batch_process Batch processing');\n log(' • parallel_execute Execute tasks in parallel');\n }\n\n if (!category || category === 'github') {\n log('\\nšŸ™ GITHUB INTEGRATION (8 tools):');\n log(' • github_repo_analyze Repository analysis');\n log(' • github_pr_manage Pull request management');\n log(' • github_issue_track Issue tracking & triage');\n log(' • github_release_coord Release coordination');\n log(' • github_workflow_auto Workflow automation');\n log(' • github_code_review Automated code review');\n log(' • github_sync_coord Multi-repo sync coordination');\n log(' • github_metrics Repository metrics');\n }\n\n if (!category || category === 'daa') {\n log('\\nšŸ¤– DAA (Dynamic Agent Architecture) (8 tools):');\n log(' • daa_agent_create Create dynamic agents');\n log(' • daa_capability_match Match capabilities to tasks');\n log(' • daa_resource_alloc Resource allocation');\n log(' • daa_lifecycle_manage Agent lifecycle management');\n log(' • daa_communication Inter-agent communication');\n log(' • daa_consensus Consensus mechanisms');\n log(' • daa_fault_tolerance Fault tolerance & recovery');\n log(' • daa_optimization Performance optimization');\n }\n\n if (!category || category === 'system') {\n log('\\nāš™ļø SYSTEM & UTILITIES (8 tools):');\n log(' • terminal_execute Execute terminal commands');\n log(' • config_manage Configuration management');\n log(' • features_detect Feature detection');\n log(' • security_scan Security scanning');\n log(' • backup_create Create system backups');\n log(' • restore_system System restoration');\n log(' • log_analysis Log analysis & insights');\n log(' • diagnostic_run System diagnostics');\n }\n\n if (verbose) {\n log('\\nšŸ“‹ DETAILED TOOL INFORMATION:');\n log(' šŸ”„ HIGH-PRIORITY TOOLS:');\n log(\n ' swarm_init: Initialize coordination with 4 topologies (hierarchical, mesh, ring, star)',\n );\n log(\n ' agent_spawn: 8 agent types (researcher, coder, analyst, architect, tester, coordinator, reviewer, optimizer)',\n );\n log(' neural_train: Train 27 neural models with WASM SIMD acceleration');\n log(\n ' memory_usage: 5 operations (store, retrieve, list, delete, search) with TTL & namespacing',\n );\n log(' performance_report: Real-time metrics with 24h/7d/30d timeframes');\n\n log('\\n ⚔ PERFORMANCE FEATURES:');\n log(' • 2.8-4.4x speed improvement with parallel execution');\n log(' • 32.3% token reduction through optimization');\n log(' • 84.8% SWE-Bench solve rate with swarm coordination');\n log(' • WASM neural processing with SIMD optimization');\n log(' • Cross-session memory persistence');\n\n log('\\n šŸ”— INTEGRATION CAPABILITIES:');\n log(' • Full ruv-swarm feature parity (rebranded)');\n log(' • Claude Code native tool integration');\n log(' • GitHub Actions workflow automation');\n log(' • SPARC methodology with 17 modes');\n log(' • MCP protocol compatibility');\n }\n\n log('\\nšŸ“” Status: 87 tools & resources available when server is running');\n log('šŸŽÆ Categories: swarm, neural, memory, analysis, workflow, github, daa, system');\n log('šŸ”— Compatibility: ruv-swarm + DAA + Claude-Flow unified platform');\n log('\\nšŸ’” Usage: claude-flow mcp tools --category=<category> --verbose');\n}\n\nasync function manageMcpAuth(subArgs, flags) {\n const authCmd = subArgs[1];\n\n switch (authCmd) {\n case 'setup':\n success('Setting up MCP authentication...');\n log('šŸ” Authentication configuration:');\n log(' Type: API Key based');\n log(' Scope: Claude-Flow tools');\n log(' Security: TLS encrypted');\n break;\n\n case 'status':\n success('MCP Authentication Status:');\n log('šŸ” Status: Not configured');\n log('šŸ”‘ API Keys: 0 active');\n log('šŸ›”ļø Security: Default settings');\n break;\n\n case 'rotate':\n success('Rotating MCP authentication keys...');\n log('šŸ”„ New API keys would be generated');\n log('ā™»ļø Old keys would be deprecated gracefully');\n break;\n\n default:\n log('Auth commands: setup, status, rotate');\n log('Examples:');\n log(' claude-flow mcp auth setup');\n log(' claude-flow mcp auth status');\n }\n}\n\nasync function showMcpConfig(subArgs, flags) {\n success('Claude-Flow MCP Server Configuration:');\n log('\\nšŸ“‹ Server Settings:');\n log(' Host: localhost');\n log(' Port: 3000');\n log(' Protocol: HTTP/STDIO');\n log(' Timeout: 30000ms');\n log(' Auto-Orchestrator: Enabled');\n\n log('\\nšŸ”§ Tool Configuration:');\n log(' Available Tools: 87 total');\n log(' Categories: 8 (swarm, neural, memory, analysis, workflow, github, daa, system)');\n log(' Authentication: API Key + OAuth');\n log(' Rate Limiting: 1000 req/min');\n log(' WASM Support: Enabled with SIMD');\n\n log('\\n🧠 Neural Network Settings:');\n log(' Models: 27 pre-trained models available');\n log(' Training: Real-time adaptive learning');\n log(' Inference: WASM optimized');\n log(' Pattern Recognition: Enabled');\n\n log('\\nšŸ Swarm Configuration:');\n log(' Max Agents: 10 per swarm');\n log(' Topologies: hierarchical, mesh, ring, star');\n log(' Coordination: Real-time with hooks');\n log(' Memory: Cross-session persistence');\n\n log('\\nšŸ” Security Settings:');\n log(' TLS: Enabled in production');\n log(' CORS: Configured for Claude Code');\n log(' API Key Rotation: 30 days');\n log(' Audit Logging: Enabled');\n\n log('\\nšŸ”— Integration Settings:');\n log(' ruv-swarm Compatibility: 100%');\n log(' DAA Integration: Enabled');\n log(' GitHub Actions: Connected');\n log(' SPARC Modes: 17 available');\n\n log('\\nšŸ“ Configuration Files:');\n log(' Main Config: ./mcp_config/claude-flow.json');\n log(' Neural Models: ./models/');\n log(' Memory Store: ./memory/');\n log(' Logs: ./logs/mcp/');\n}\n\nfunction getFlag(args, flagName) {\n const index = args.indexOf(flagName);\n return index !== -1 && index + 1 < args.length ? args[index + 1] : null;\n}\n\nfunction showMcpHelp() {\n log('šŸ”§ Claude-Flow MCP Server Commands:');\n log();\n log('COMMANDS:');\n log(' status Show MCP server status');\n log(' start [options] Start MCP server with orchestrator');\n log(' stop Stop MCP server gracefully');\n log(' tools [options] List available tools & resources');\n log(' auth <setup|status|rotate> Manage authentication');\n log(' config Show comprehensive configuration');\n log();\n log('START OPTIONS:');\n log(' --port <port> Server port (default: 3000)');\n log(' --host <host> Server host (default: localhost)');\n log(' --auto-orchestrator Auto-start orchestrator with neural/WASM');\n log(' --daemon Run in background daemon mode');\n log(' --enable-neural Enable neural network features');\n log(' --enable-wasm Enable WASM SIMD optimization');\n log();\n log('TOOLS OPTIONS:');\n log(' --category <cat> Filter by category (swarm, neural, memory, etc.)');\n log(' --verbose, -v Show detailed tool information');\n log(' --examples Show usage examples');\n log();\n log('CATEGORIES:');\n log(' swarm šŸ Swarm coordination (12 tools)');\n log(' neural 🧠 Neural networks & AI (15 tools)');\n log(' memory šŸ’¾ Memory & persistence (12 tools)');\n log(' analysis šŸ“Š Analysis & monitoring (13 tools)');\n log(' workflow šŸ”§ Workflow & automation (11 tools)');\n log(' github šŸ™ GitHub integration (8 tools)');\n log(' daa šŸ¤– Dynamic Agent Architecture (8 tools)');\n log(' system āš™ļø System & utilities (8 tools)');\n log();\n log('EXAMPLES:');\n log(' claude-flow mcp status');\n log(' claude-flow mcp start --auto-orchestrator --daemon');\n log(' claude-flow mcp tools --category=neural --verbose');\n log(' claude-flow mcp tools --category=swarm');\n log(' claude-flow mcp config');\n log(' claude-flow mcp auth setup');\n log();\n log('šŸŽÆ Total: 87 tools & resources available');\n log('šŸ”— Full ruv-swarm + DAA + Claude-Flow integration');\n}\n"],"names":["printSuccess","printError","printWarning","isStdioMode","log","args","console","error","success","msg","warning","mcpCommand","subArgs","flags","mcpCmd","showMcpStatus","startMcpServer","stopMcpServer","listMcpTools","manageMcpAuth","showMcpConfig","showMcpHelp","autoOrchestrator","includes","daemon","stdio","fileURLToPath","path","spawn","__filename","url","__dirname","dirname","mcpServerPath","join","fs","existsSync","process","cwd","Error","serverProcess","env","CLAUDE_FLOW_AUTO_ORCHESTRATOR","CLAUDE_FLOW_NEURAL_ENABLED","CLAUDE_FLOW_WASM_ENABLED","on","code","Promise","err","message","port","getFlag","host","verbose","category","authCmd","flagName","index","indexOf","length"],"mappings":"AACA,SAASA,YAAY,EAAEC,UAAU,EAAEC,YAAY,QAAQ,cAAc;AAGrE,IAAIC,cAAc;AAKlB,MAAMC,MAAM,CAAC,GAAGC,OAAUF,cAAcG,QAAQC,KAAK,IAAIF,QAAQC,QAAQF,GAAG,IAAIC;AAChF,MAAMG,UAAU,CAACC,MAASN,cAAcG,QAAQC,KAAK,CAAC,CAAC,EAAE,EAAEE,KAAK,IAAIT,aAAaS;AACjF,MAAMF,QAAQ,CAACE,MAASN,cAAcG,QAAQC,KAAK,CAAC,CAAC,EAAE,EAAEE,KAAK,IAAIR,WAAWQ;AAC7E,MAAMC,UAAU,CAACD,MAASN,cAAcG,QAAQC,KAAK,CAAC,CAAC,IA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AI;IACJA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA,IAAI;IAEJA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA,IAAI;IAEJA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA,IAAI;IAEJA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA,IAAI;IAEJA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA,IAAI;IAEJA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA,IAAI;AACN;AAEA,SAAS+C,QAAQ9C,IAAI,EAAEmD,QAAQ;IAC7B,MAAMC,QAAQpD,KAAKqD,OAAO,CAACF;IAC3B,OAAOC,UAAU,CAAC,KAAKA,QAAQ,IAAIpD,KAAKsD,MAAM,GAAGtD,IAAI,CAACoD,QAAQ,EAAE,GAAG;AACrE;AAEA,SAASpC;IACPjB,IAAI;IACJA;IACAA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA;IACAA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA;IACAA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA;IACAA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA;IACAA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA,IAAI;IACJA;IACAA,IAAI;IACJA,IAAI;AACN"}
@@ -12,7 +12,7 @@ try {
12
12
  BUILD_DATE = new Date().toISOString().split('T')[0];
13
13
  } catch (error) {
14
14
  console.warn('Warning: Could not read version from package.json, using fallback');
15
- VERSION = '2.0.0-alpha.101';
15
+ VERSION = '2.0.0-alpha.91';
16
16
  BUILD_DATE = new Date().toISOString().split('T')[0];
17
17
  }
18
18
  export { VERSION, BUILD_DATE };
@@ -23,4 +23,4 @@ export function displayVersion() {
23
23
  console.log(getVersionString());
24
24
  }
25
25
 
26
- //# sourceMappingURL=version.js.map
26
+ //# sourceMappingURL=version.js.mapp
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/core/version.js"],"sourcesContent":["/**\n * Centralized version management (JavaScript version)\n * Reads version from package.json to ensure consistency\n */\n\nimport { readFileSync } from 'fs';\nimport { join, dirname } from 'path';\nimport { fileURLToPath } from 'url';\n\n// Get the directory of this module\nconst __filename = fileURLToPath(import.meta.url);\nconst __dirname = dirname(__filename);\n\n// Read version from package.json\nlet VERSION;\nlet BUILD_DATE;\n\ntry {\n // Navigate to project root and read package.json\n const packageJsonPath = join(__dirname, '../../package.json');\n const packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf-8'));\n VERSION = packageJson.version;\n BUILD_DATE = new Date().toISOString().split('T')[0];\n} catch (error) {\n // Fallback version if package.json can't be read\n console.warn('Warning: Could not read version from package.json, using fallback');\n VERSION = '2.0.0-alpha.101';\n BUILD_DATE = new Date().toISOString().split('T')[0];\n}\n\nexport { VERSION, BUILD_DATE };\n\n// Helper function to get formatted version string\nexport function getVersionString(includeV = true) {\n return includeV ? `v${VERSION}` : VERSION;\n}\n\n// Helper function for version display in CLI\nexport function displayVersion() {\n console.log(getVersionString());\n}"],"names":["readFileSync","join","dirname","fileURLToPath","__filename","url","__dirname","VERSION","BUILD_DATE","packageJsonPath","packageJson","JSON","parse","version","Date","toISOString","split","error","console","warn","getVersionString","includeV","displayVersion","log"],"mappings":"AAKA,SAASA,YAAY,QAAQ,KAAK;AAClC,SAASC,IAAI,EAAEC,OAAO,QAAQ,OAAO;AACrC,SAASC,aAAa,QAAQ,MAAM;AAGpC,MAAMC,aAAaD,cAAc,YAAYE,GAAG;AAChD,MAAMC,YAAYJ,QAAQE;AAG1B,IAAIG;AACJ,IAAIC;AAEJ,IAAI;IAEF,MAAMC,kBAAkBR,KAAKK,WAAW;IACxC,MAAMI,cAAcC,KAAKC,KAAK,CAACZ,aAAaS,iBAAiB;IAC7DF,UAAUG,YAAYG,OAAO;IAC7BL,aAAa,IAAIM,OAAOC,WAAW,GAAGC,KAAK,CAAC,IAAI,CAAC,EAAE;AACrD,EAAE,OAAOC,OAAO;IAEdC,QAAQC,IAAI,CAAC;IACbZ,UAAU;IACVC,aAAa,IAAIM,OAAOC,WAAW,GAAGC,KAAK,CAAC,IAAI,CAAC,EAAE;AACrD;AAEA,SAAST,OAAO,EAAEC,UAAU,GAAG;AAG/B,OAAO,SAASY,iBAAiBC,WAAW,IAAI;IAC9C,OAAOA,WAAW,CAAC,CAAC,EAAEd,SAAS,GAAGA;AACpC;AAGA,OAAO,SAASe;IACdJ,QAAQK,GAAG,CAACH;AACd"}
1
+ {"version":3,"sources":["../../../src/core/version.ts"],"sourcesContent":["/**\n * Centralized version management\n * Reads version from package.json to ensure consistency\n */\n\nimport { readFileSync } from 'fs';\nimport { join, dirname } from 'path';\nimport { fileURLToPath } from 'url';\n\n// Get the directory of this module\nconst __filename = fileURLToPath(import.meta.url);\nconst __dirname = dirname(__filename);\n\n// Read version from package.json\nlet VERSION: string;\nlet BUILD_DATE: string;\n\ntry {\n // Navigate to project root and read package.json\n const packageJsonPath = join(__dirname, '../../package.json');\n const packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf-8'));\n VERSION = packageJson.version;\n BUILD_DATE = new Date().toISOString().split('T')[0];\n} catch (error) {\n // Fallback version if package.json can't be read\n console.warn('Warning: Could not read version from package.json, using fallback');\n VERSION = '2.0.0-alpha.91';\n BUILD_DATE = new Date().toISOString().split('T')[0];\n}\n\nexport { VERSION, BUILD_DATE };\n\n// Helper function to get formatted version string\nexport function getVersionString(includeV = true): string {\n return includeV ? `v${VERSION}` : VERSION;\n}\n\n// Helper function for version display in CLI\nexport function displayVersion(): void {\n console.log(getVersionString());\n}"],"names":["readFileSync","join","dirname","fileURLToPath","__filename","url","__dirname","VERSION","BUILD_DATE","packageJsonPath","packageJson","JSON","parse","version","Date","toISOString","split","error","console","warn","getVersionString","includeV","displayVersion","log"],"mappings":"AAKA,SAASA,YAAY,QAAQ,KAAK;AAClC,SAASC,IAAI,EAAEC,OAAO,QAAQ,OAAO;AACrC,SAASC,aAAa,QAAQ,MAAM;AAGpC,MAAMC,aAAaD,cAAc,YAAYE,GAAG;AAChD,MAAMC,YAAYJ,QAAQE;AAG1B,IAAIG;AACJ,IAAIC;AAEJ,IAAI;IAEF,MAAMC,kBAAkBR,KAAKK,WAAW;IACxC,MAAMI,cAAcC,KAAKC,KAAK,CAACZ,aAAaS,iBAAiB;IAC7DF,UAAUG,YAAYG,OAAO;IAC7BL,aAAa,IAAIM,OAAOC,WAAW,GAAGC,KAAK,CAAC,IAAI,CAAC,EAAE;AACrD,EAAE,OAAOC,OAAO;IAEdC,QAAQC,IAAI,CAAC;IACbZ,UAAU;IACVC,aAAa,IAAIM,OAAOC,WAAW,GAAGC,KAAK,CAAC,IAAI,CAAC,EAAE;AACrD;AAEA,SAAST,OAAO,EAAEC,UAAU,GAAG;AAG/B,OAAO,SAASY,iBAAiBC,WAAW,IAAI;IAC9C,OAAOA,WAAW,CAAC,CAAC,EAAEd,SAAS,GAAGA;AACpC;AAGA,OAAO,SAASe;IACdJ,QAAQK,GAAG,CAACH;AACd"}
@@ -166,4 +166,14 @@ export class MetricsReader {
166
166
  }
167
167
  }
168
168
 
169
+ //# sourceMappingURL=metrics-reader.js.map processCount: 0,
170
+ orchestratorRunning: false,
171
+ port: null,
172
+ connections: 0
173
+ };
174
+ }
175
+ }
176
+ };
177
+ export { MetricsReader };
178
+
169
179
  //# sourceMappingURL=metrics-reader.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-flow",
3
- "version": "2.7.4",
3
+ "version": "2.7.6",
4
4
  "description": "Enterprise-grade AI agent orchestration with WASM-powered ReasoningBank memory and AgentDB vector database (always uses latest agentic-flow)",
5
5
  "mcpName": "io.github.ruvnet/claude-flow",
6
6
  "main": "cli.mjs",