v2/docs/reference/MCP_TOOLS.md
This document provides a comprehensive reference for all 112 MCP (Model Context Protocol) tools available in the Claude Flow ecosystem.
Claude Flow integrates with two MCP tool providers:
All tools follow the naming convention: mcp__provider__tool_name
The claude-flow tools are organized into 8 categories providing comprehensive development, coordination, and system management capabilities.
These tools manage swarm initialization, agent spawning, and coordination tasks.
mcp__claude-flow__swarm_initFunction: Initialize a new swarm with specified topology and configuration Parameters:
topology (string): Swarm topology type - "hierarchical", "mesh", "distributed", "centralized"maxAgents (number): Maximum number of agents in the swarm (default: 8)strategy (string): Coordination strategy - "auto", "manual", "adaptive"swarmId (string, optional): Custom swarm identifierUsage Example:
{
"topology": "hierarchical",
"maxAgents": 12,
"strategy": "auto",
"swarmId": "project-alpha"
}
mcp__claude-flow__agent_spawnFunction: Create and spawn new agents with specific roles and capabilities Parameters:
type (string): Agent type - "coder", "researcher", "tester", "coordinator", "architect"name (string, optional): Custom agent nameswarmId (string): Target swarm identifiercapabilities (array, optional): Specific capabilities to enableUsage Example:
{
"type": "coder",
"name": "BackendSpecialist",
"swarmId": "project-alpha",
"capabilities": ["nodejs", "database", "api-design"]
}
mcp__claude-flow__task_orchestrateFunction: Coordinate task distribution and execution across agents Parameters:
task (string): Task descriptionstrategy (string): Execution strategy - "parallel", "sequential", "adaptive"priority (number): Task priority (1-10)swarmId (string): Target swarm identifierUsage Example:
{
"task": "Implement user authentication system",
"strategy": "parallel",
"priority": 8,
"swarmId": "project-alpha"
}
mcp__claude-flow__swarm_statusFunction: Get comprehensive status of all swarms and their components Parameters:
swarmId (string, optional): Specific swarm to queryincludeMetrics (boolean): Include performance metricsUsage Example:
{
"swarmId": "project-alpha",
"includeMetrics": true
}
mcp__claude-flow__agent_listFunction: List all agents with their current status and assignments Parameters:
status (string, optional): Filter by status - "active", "idle", "offline"type (string, optional): Filter by agent typeswarmId (string, optional): Filter by swarmUsage Example:
{
"status": "active",
"swarmId": "project-alpha"
}
mcp__claude-flow__agent_metricsFunction: Retrieve detailed performance metrics for agents Parameters:
agentId (string, optional): Specific agent IDtimeframe (string): Time period - "1h", "24h", "7d", "30d"metrics (array): Specific metrics to includeUsage Example:
{
"timeframe": "24h",
"metrics": ["tasks_completed", "success_rate", "avg_response_time"]
}
mcp__claude-flow__swarm_monitorFunction: Real-time monitoring of swarm activities and performance Parameters:
interval (number): Update interval in millisecondsswarmId (string, optional): Specific swarm to monitoralerts (boolean): Enable alert notificationsUsage Example:
{
"interval": 5000,
"swarmId": "project-alpha",
"alerts": true
}
mcp__claude-flow__topology_optimizeFunction: Optimize swarm topology based on current workload and performance Parameters:
swarmId (string): Target swarm identifiercriteria (string): Optimization criteria - "performance", "cost", "reliability"autoApply (boolean): Automatically apply optimizationsUsage Example:
{
"swarmId": "project-alpha",
"criteria": "performance",
"autoApply": false
}
mcp__claude-flow__load_balanceFunction: Distribute workload evenly across available agents Parameters:
swarmId (string): Target swarm identifierstrategy (string): Balancing strategy - "round_robin", "least_loaded", "capability_based"tasks (array): Tasks to distributeUsage Example:
{
"swarmId": "project-alpha",
"strategy": "capability_based",
"tasks": ["task-1", "task-2", "task-3"]
}
mcp__claude-flow__coordination_syncFunction: Synchronize coordination state across all agents in a swarm Parameters:
swarmId (string): Target swarm identifierforce (boolean): Force synchronization even if agents are busyUsage Example:
{
"swarmId": "project-alpha",
"force": false
}
mcp__claude-flow__swarm_scaleFunction: Dynamically scale swarm size based on workload demands Parameters:
swarmId (string): Target swarm identifierdirection (string): Scaling direction - "up", "down", "auto"targetSize (number, optional): Desired number of agentsUsage Example:
{
"swarmId": "project-alpha",
"direction": "up",
"targetSize": 15
}
mcp__claude-flow__swarm_destroyFunction: Safely terminate a swarm and clean up all associated resources Parameters:
swarmId (string): Target swarm identifierpreserveData (boolean): Keep swarm data for analysisgraceful (boolean): Allow agents to complete current tasksUsage Example:
{
"swarmId": "project-alpha",
"preserveData": true,
"graceful": true
}
Advanced AI and machine learning capabilities for pattern recognition and adaptive behavior.
mcp__claude-flow__neural_statusFunction: Get status of neural network models and training processes Parameters:
modelId (string, optional): Specific model identifierincludeWeights (boolean): Include model weights in responseUsage Example:
{
"includeWeights": false
}
mcp__claude-flow__neural_trainFunction: Train neural networks on coordination patterns and task outcomes Parameters:
pattern_type (string): Pattern type - "coordination", "optimization", "prediction"epochs (number): Number of training epochsdata_source (string): Training data sourceswarmId (string, optional): Associated swarm for contextUsage Example:
{
"pattern_type": "coordination",
"epochs": 100,
"data_source": "swarm_interactions",
"swarmId": "project-alpha"
}
mcp__claude-flow__neural_patternsFunction: Analyze and extract patterns from swarm behavior and outcomes Parameters:
analysis_type (string): Analysis type - "behavior", "performance", "communication"timeframe (string): Time period to analyzeswarmId (string, optional): Target swarmUsage Example:
{
"analysis_type": "behavior",
"timeframe": "7d",
"swarmId": "project-alpha"
}
mcp__claude-flow__neural_predictFunction: Make predictions about task outcomes and optimal strategies Parameters:
input_data (object): Input data for predictionmodelId (string): Model to use for predictionconfidence_threshold (number): Minimum confidence levelUsage Example:
{
"input_data": {"task_complexity": 7, "agent_count": 5},
"modelId": "coordination_predictor",
"confidence_threshold": 0.8
}
mcp__claude-flow__model_loadFunction: Load a pre-trained neural network model Parameters:
modelId (string): Model identifierversion (string, optional): Specific model versioncache (boolean): Cache model in memoryUsage Example:
{
"modelId": "task_optimizer_v2",
"version": "1.2.0",
"cache": true
}
mcp__claude-flow__model_saveFunction: Save current neural network model state Parameters:
modelId (string): Model identifierversion (string): Version tagmetadata (object): Additional model metadataUsage Example:
{
"modelId": "task_optimizer_v2",
"version": "1.3.0",
"metadata": {"training_date": "2024-01-15", "accuracy": 0.92}
}
mcp__claude-flow__wasm_optimizeFunction: Optimize neural network execution using WebAssembly Parameters:
modelId (string): Model to optimizeoptimization_level (string): Optimization level - "basic", "aggressive", "max"target_platform (string): Target platform - "browser", "node", "edge"Usage Example:
{
"modelId": "coordination_predictor",
"optimization_level": "aggressive",
"target_platform": "node"
}
mcp__claude-flow__inference_runFunction: Run inference on loaded neural network models Parameters:
modelId (string): Model identifierinput_data (object): Input databatch_size (number, optional): Batch processing sizeUsage Example:
{
"modelId": "task_classifier",
"input_data": {"description": "Implement API endpoint", "complexity": "medium"},
"batch_size": 1
}
mcp__claude-flow__pattern_recognizeFunction: Recognize patterns in agent behavior and task execution Parameters:
data_type (string): Type of data to analyze - "logs", "metrics", "communications"pattern_types (array): Pattern types to look forswarmId (string, optional): Target swarmUsage Example:
{
"data_type": "communications",
"pattern_types": ["bottlenecks", "inefficiencies", "optimal_flows"],
"swarmId": "project-alpha"
}
mcp__claude-flow__cognitive_analyzeFunction: Perform cognitive analysis of decision-making processes Parameters:
decision_context (object): Context of the decisionanalysis_depth (string): Analysis depth - "surface", "deep", "comprehensive"include_alternatives (boolean): Include alternative decision pathsUsage Example:
{
"decision_context": {"task": "architecture_choice", "constraints": ["time", "budget"]},
"analysis_depth": "deep",
"include_alternatives": true
}
mcp__claude-flow__learning_adaptFunction: Adapt behavior based on learning from past experiences Parameters:
experience_data (object): Experience data to learn fromadaptation_type (string): Type of adaptation - "strategy", "communication", "resource_allocation"swarmId (string): Target swarmUsage Example:
{
"experience_data": {"task_type": "api_development", "outcome": "success", "duration": 240},
"adaptation_type": "strategy",
"swarmId": "project-alpha"
}
mcp__claude-flow__neural_compressFunction: Compress neural network models for efficient deployment Parameters:
modelId (string): Model to compresscompression_ratio (number): Target compression ratio (0.1 to 0.9)quality_threshold (number): Minimum quality to maintainUsage Example:
{
"modelId": "large_coordination_model",
"compression_ratio": 0.3,
"quality_threshold": 0.85
}
mcp__claude-flow__ensemble_createFunction: Create ensemble models from multiple neural networks Parameters:
modelIds (array): Models to include in ensemblevoting_strategy (string): Voting strategy - "majority", "weighted", "soft"ensembleId (string): New ensemble identifierUsage Example:
{
"modelIds": ["predictor_1", "predictor_2", "predictor_3"],
"voting_strategy": "weighted",
"ensembleId": "task_prediction_ensemble"
}
mcp__claude-flow__transfer_learnFunction: Apply transfer learning from one domain to another Parameters:
source_model (string): Source model identifiertarget_domain (string): Target domainfreeze_layers (array): Layers to freeze during transferUsage Example:
{
"source_model": "general_coordinator",
"target_domain": "mobile_development",
"freeze_layers": ["layer1", "layer2"]
}
mcp__claude-flow__neural_explainFunction: Provide explanations for neural network decisions and predictions Parameters:
modelId (string): Model to explaininput_data (object): Input data used for predictionexplanation_type (string): Explanation type - "feature_importance", "decision_path", "counterfactual"Usage Example:
{
"modelId": "task_prioritizer",
"input_data": {"urgency": 8, "complexity": 6, "resources": 3},
"explanation_type": "feature_importance"
}
Tools for managing persistent memory, state, and data across swarm sessions.
mcp__claude-flow__memory_usageFunction: Store and retrieve data in persistent memory with namespace support Parameters:
action (string): Action type - "store", "retrieve", "delete"key (string): Memory keyvalue (any, for store): Data to storenamespace (string, optional): Memory namespacetype (string, optional): Data type - "knowledge", "config", "metrics", "state"Usage Example:
{
"action": "store",
"key": "project_requirements",
"value": {"features": ["auth", "dashboard"], "deadline": "2024-02-01"},
"namespace": "project-alpha",
"type": "knowledge"
}
mcp__claude-flow__memory_searchFunction: Search memory using patterns and filters Parameters:
pattern (string): Search pattern or querynamespace (string, optional): Namespace to search intype_filter (string, optional): Filter by data typelimit (number, optional): Maximum results to returnUsage Example:
{
"pattern": "authentication",
"namespace": "project-alpha",
"type_filter": "knowledge",
"limit": 10
}
mcp__claude-flow__memory_persistFunction: Persist memory data to permanent storage Parameters:
namespace (string, optional): Specific namespace to persistcompression (boolean): Enable compressionbackup_existing (boolean): Create backup before persistingUsage Example:
{
"namespace": "project-alpha",
"compression": true,
"backup_existing": true
}
mcp__claude-flow__memory_namespaceFunction: Manage memory namespaces (create, delete, list) Parameters:
action (string): Action type - "create", "delete", "list", "info"namespace (string): Namespace namemaxSize (number, optional): Maximum namespace size in MBUsage Example:
{
"action": "create",
"namespace": "experiment-beta",
"maxSize": 500
}
mcp__claude-flow__memory_backupFunction: Create backups of memory data Parameters:
namespace (string, optional): Specific namespace to backupbackup_name (string): Backup identifierincremental (boolean): Create incremental backupUsage Example:
{
"namespace": "project-alpha",
"backup_name": "milestone_1_complete",
"incremental": false
}
mcp__claude-flow__memory_restoreFunction: Restore memory data from backups Parameters:
backup_name (string): Backup identifier to restorenamespace (string, optional): Target namespacemerge_strategy (string): Merge strategy - "overwrite", "merge", "skip_conflicts"Usage Example:
{
"backup_name": "milestone_1_complete",
"namespace": "project-alpha",
"merge_strategy": "merge"
}
mcp__claude-flow__memory_compressFunction: Compress memory data to save storage space Parameters:
namespace (string, optional): Specific namespace to compresscompression_level (number): Compression level (1-9)preserve_access_patterns (boolean): Optimize for access patternsUsage Example:
{
"namespace": "archived_projects",
"compression_level": 7,
"preserve_access_patterns": false
}
mcp__claude-flow__memory_syncFunction: Synchronize memory across multiple swarm instances Parameters:
source_namespace (string): Source namespacetarget_namespaces (array): Target namespacessync_strategy (string): Synchronization strategy - "full", "incremental", "selective"Usage Example:
{
"source_namespace": "master_project",
"target_namespaces": ["dev_branch", "test_branch"],
"sync_strategy": "incremental"
}
mcp__claude-flow__cache_manageFunction: Manage cache for frequently accessed memory data Parameters:
action (string): Action type - "clear", "optimize", "stats", "configure"cache_size (number, optional): Cache size in MBeviction_policy (string, optional): Eviction policy - "lru", "lfu", "ttl"Usage Example:
{
"action": "configure",
"cache_size": 128,
"eviction_policy": "lru"
}
mcp__claude-flow__state_snapshotFunction: Create snapshots of current swarm state Parameters:
swarmId (string): Target swarm identifiersnapshot_name (string): Snapshot identifierinclude_memory (boolean): Include memory datainclude_agent_state (boolean): Include agent statesUsage Example:
{
"swarmId": "project-alpha",
"snapshot_name": "pre_deployment",
"include_memory": true,
"include_agent_state": true
}
mcp__claude-flow__context_restoreFunction: Restore swarm context from snapshots Parameters:
snapshot_name (string): Snapshot to restoreswarmId (string): Target swarm identifierselective_restore (array, optional): Specific components to restoreUsage Example:
{
"snapshot_name": "pre_deployment",
"swarmId": "project-alpha",
"selective_restore": ["agent_states", "task_queue"]
}
mcp__claude-flow__memory_analyticsFunction: Analyze memory usage patterns and optimization opportunities Parameters:
namespace (string, optional): Specific namespace to analyzeanalysis_type (string): Analysis type - "usage", "patterns", "optimization"timeframe (string): Time period to analyzeUsage Example:
{
"namespace": "project-alpha",
"analysis_type": "optimization",
"timeframe": "30d"
}
Comprehensive monitoring, analysis, and reporting tools for system performance.
mcp__claude-flow__performance_reportFunction: Generate detailed performance reports Parameters:
timeframe (string): Time period - "1h", "24h", "7d", "30d"format (string): Report format - "summary", "detailed", "csv", "json"include_predictions (boolean): Include performance predictionsswarmId (string, optional): Specific swarm to report onUsage Example:
{
"timeframe": "24h",
"format": "detailed",
"include_predictions": true,
"swarmId": "project-alpha"
}
mcp__claude-flow__bottleneck_analyzeFunction: Identify and analyze performance bottlenecks Parameters:
component (string): Component to analyze - "agents", "tasks", "communication", "memory"analysis_depth (string): Analysis depth - "quick", "thorough", "comprehensive"swarmId (string, optional): Target swarmUsage Example:
{
"component": "communication",
"analysis_depth": "thorough",
"swarmId": "project-alpha"
}
mcp__claude-flow__token_usageFunction: Track and analyze token consumption across operations Parameters:
operation (string, optional): Specific operation to analyzebreakdown_by (string): Breakdown criteria - "agent", "task", "time", "operation"optimize_suggestions (boolean): Include optimization suggestionsUsage Example:
{
"operation": "code_generation",
"breakdown_by": "agent",
"optimize_suggestions": true
}
mcp__claude-flow__task_statusFunction: Get comprehensive status of tasks across swarms Parameters:
taskId (string, optional): Specific task identifierswarmId (string, optional): Filter by swarmstatus_filter (string, optional): Filter by status - "pending", "in_progress", "completed", "failed"Usage Example:
{
"swarmId": "project-alpha",
"status_filter": "in_progress"
}
mcp__claude-flow__task_resultsFunction: Retrieve detailed results and outputs from completed tasks Parameters:
taskId (string): Task identifierinclude_logs (boolean): Include execution logsinclude_artifacts (boolean): Include generated artifactsUsage Example:
{
"taskId": "task_api_impl_001",
"include_logs": true,
"include_artifacts": true
}
mcp__claude-flow__benchmark_runFunction: Run performance benchmarks on swarm operations Parameters:
benchmark_type (string): Benchmark type - "throughput", "latency", "resource_usage", "accuracy"test_duration (number): Test duration in secondsconcurrent_operations (number): Number of concurrent operationsUsage Example:
{
"benchmark_type": "throughput",
"test_duration": 300,
"concurrent_operations": 10
}
mcp__claude-flow__metrics_collectFunction: Collect and aggregate metrics from all system components Parameters:
metrics (array): Specific metrics to collectgranularity (string): Data granularity - "minute", "hour", "day"retention_period (number): How long to keep metrics (days)Usage Example:
{
"metrics": ["cpu_usage", "memory_usage", "task_completion_rate"],
"granularity": "minute",
"retention_period": 30
}
mcp__claude-flow__trend_analysisFunction: Analyze trends in performance and behavior over time Parameters:
metric (string): Metric to analyzetimeframe (string): Analysis periodprediction_horizon (string): Future prediction periodalert_thresholds (object, optional): Set alert thresholdsUsage Example:
{
"metric": "task_completion_rate",
"timeframe": "7d",
"prediction_horizon": "3d",
"alert_thresholds": {"warning": 0.8, "critical": 0.6}
}
mcp__claude-flow__cost_analysisFunction: Analyze costs associated with swarm operations Parameters:
cost_type (string): Cost type - "tokens", "compute", "storage", "total"breakdown_by (string): Cost breakdown - "swarm", "agent", "task", "operation"budget_tracking (boolean): Track against budget limitsUsage Example:
{
"cost_type": "total",
"breakdown_by": "swarm",
"budget_tracking": true
}
mcp__claude-flow__quality_assessFunction: Assess quality of outputs and processes Parameters:
assessment_type (string): Assessment type - "code_quality", "task_completion", "communication"quality_metrics (array): Specific quality metrics to evaluateswarmId (string, optional): Target swarmUsage Example:
{
"assessment_type": "code_quality",
"quality_metrics": ["complexity", "maintainability", "test_coverage"],
"swarmId": "project-alpha"
}
mcp__claude-flow__error_analysisFunction: Analyze errors and failures to identify improvement opportunities Parameters:
error_category (string, optional): Error category to focus ontimeframe (string): Analysis periodinclude_resolution (boolean): Include resolution suggestionsseverity_filter (string, optional): Filter by severityUsage Example:
{
"error_category": "communication_failures",
"timeframe": "7d",
"include_resolution": true,
"severity_filter": "high"
}
mcp__claude-flow__usage_statsFunction: Generate usage statistics and insights Parameters:
stat_type (string): Statistics type - "agent_utilization", "feature_usage", "resource_consumption"aggregation (string): Aggregation level - "hourly", "daily", "weekly"comparative_analysis (boolean): Include comparative analysisUsage Example:
{
"stat_type": "agent_utilization",
"aggregation": "daily",
"comparative_analysis": true
}
mcp__claude-flow__health_checkFunction: Perform comprehensive health checks on system components Parameters:
component (string, optional): Specific component to checkcheck_depth (string): Check depth - "basic", "standard", "comprehensive"auto_remediate (boolean): Automatically fix detected issuesUsage Example:
{
"component": "memory_system",
"check_depth": "comprehensive",
"auto_remediate": false
}
Tools for creating and managing automated workflows and processes.
mcp__claude-flow__workflow_createFunction: Create new automated workflows Parameters:
workflow_name (string): Workflow identifiersteps (array): Workflow steps definitiontriggers (array): Workflow triggersschedule (string, optional): Cron schedule for automated executionUsage Example:
{
"workflow_name": "daily_health_check",
"steps": [
{"action": "health_check", "params": {}},
{"action": "generate_report", "params": {"format": "summary"}}
],
"triggers": ["schedule", "system_alert"],
"schedule": "0 9 * * *"
}
mcp__claude-flow__sparc_modeFunction: Execute SPARC (Specification, Pseudocode, Architecture, Refinement, Completion) workflows Parameters:
mode (string): SPARC mode - "specification", "pseudocode", "architecture", "refinement", "completion"project_context (object): Project context and requirementsprevious_artifacts (array, optional): Artifacts from previous SPARC phasesUsage Example:
{
"mode": "architecture",
"project_context": {
"description": "E-commerce API",
"requirements": ["authentication", "product_catalog", "order_processing"]
},
"previous_artifacts": ["specification_doc", "pseudocode_outline"]
}
mcp__claude-flow__workflow_executeFunction: Execute defined workflows Parameters:
workflow_id (string): Workflow identifier to executeexecution_params (object, optional): Runtime parametersasync_execution (boolean): Execute asynchronouslyUsage Example:
{
"workflow_id": "daily_health_check",
"execution_params": {"verbose": true},
"async_execution": false
}
mcp__claude-flow__workflow_exportFunction: Export workflow definitions for sharing or backup Parameters:
workflow_ids (array): Workflows to exportformat (string): Export format - "json", "yaml", "xml"include_history (boolean): Include execution historyUsage Example:
{
"workflow_ids": ["daily_health_check", "deployment_pipeline"],
"format": "yaml",
"include_history": false
}
mcp__claude-flow__automation_setupFunction: Set up automation rules and triggers Parameters:
rule_name (string): Automation rule nameconditions (array): Trigger conditionsactions (array): Actions to performenabled (boolean): Enable rule immediatelyUsage Example:
{
"rule_name": "auto_scale_on_load",
"conditions": [{"metric": "cpu_usage", "threshold": 80, "duration": "5m"}],
"actions": [{"type": "scale_swarm", "direction": "up", "amount": 2}],
"enabled": true
}
mcp__claude-flow__pipeline_createFunction: Create CI/CD-style pipelines Parameters:
pipeline_name (string): Pipeline identifierstages (array): Pipeline stagesparallel_execution (boolean): Allow parallel stage executionfailure_strategy (string): Failure handling - "abort", "continue", "retry"Usage Example:
{
"pipeline_name": "code_quality_pipeline",
"stages": [
{"name": "lint", "commands": ["npm run lint"]},
{"name": "test", "commands": ["npm test"]},
{"name": "build", "commands": ["npm run build"]}
],
"parallel_execution": false,
"failure_strategy": "abort"
}
mcp__claude-flow__scheduler_manageFunction: Manage task scheduling and cron jobs Parameters:
action (string): Action type - "create", "update", "delete", "list", "status"schedule_id (string, optional): Schedule identifiercron_expression (string, optional): Cron schedule expressiontask_definition (object, optional): Task to scheduleUsage Example:
{
"action": "create",
"schedule_id": "weekly_optimization",
"cron_expression": "0 2 * * 0",
"task_definition": {"type": "topology_optimize", "swarmId": "production"}
}
mcp__claude-flow__trigger_setupFunction: Configure event-driven triggers Parameters:
trigger_name (string): Trigger identifierevent_type (string): Event type to listen forconditions (object): Trigger conditionswebhook_url (string, optional): Webhook endpoint for notificationsUsage Example:
{
"trigger_name": "deployment_complete",
"event_type": "task_completed",
"conditions": {"task_type": "deployment", "status": "success"},
"webhook_url": "https://api.example.com/deploy-webhook"
}
mcp__claude-flow__workflow_templateFunction: Manage workflow templates for reusability Parameters:
action (string): Action type - "create", "update", "delete", "list", "instantiate"template_name (string): Template identifiertemplate_definition (object, optional): Template definitionparameters (object, optional): Template parameters for instantiationUsage Example:
{
"action": "instantiate",
"template_name": "api_development_template",
"parameters": {
"project_name": "user-service",
"database_type": "postgresql"
}
}
mcp__claude-flow__batch_processFunction: Execute batch processing operations Parameters:
batch_name (string): Batch operation identifieroperations (array): Operations to execute in batchconcurrency_limit (number): Maximum concurrent operationsretry_failed (boolean): Retry failed operationsUsage Example:
{
"batch_name": "migrate_projects",
"operations": [
{"type": "update_project", "project_id": "proj1"},
{"type": "update_project", "project_id": "proj2"}
],
"concurrency_limit": 5,
"retry_failed": true
}
mcp__claude-flow__parallel_executeFunction: Execute multiple operations in parallel Parameters:
operations (array): Operations to executemax_concurrency (number): Maximum concurrent operationstimeout (number): Timeout per operation in secondscollect_results (boolean): Collect and return all resultsUsage Example:
{
"operations": [
{"tool": "health_check", "params": {"component": "agents"}},
{"tool": "health_check", "params": {"component": "memory"}},
{"tool": "health_check", "params": {"component": "neural"}}
],
"max_concurrency": 3,
"timeout": 30,
"collect_results": true
}
Comprehensive GitHub integration for repository management and collaboration.
mcp__claude-flow__github_repo_analyzeFunction: Analyze GitHub repositories for structure, patterns, and insights Parameters:
repo_url (string): GitHub repository URLanalysis_type (string): Analysis type - "structure", "activity", "contributors", "issues", "code_quality"depth (string): Analysis depth - "shallow", "moderate", "deep"include_history (boolean): Include commit history analysisUsage Example:
{
"repo_url": "https://github.com/example/project",
"analysis_type": "code_quality",
"depth": "moderate",
"include_history": true
}
mcp__claude-flow__github_pr_manageFunction: Manage GitHub pull requests (create, review, merge) Parameters:
action (string): Action type - "create", "review", "merge", "close", "list"repo (string): Repository identifierpr_number (number, optional): Pull request numbertitle (string, optional): PR title for creationdescription (string, optional): PR descriptionbase_branch (string, optional): Base branch for PRUsage Example:
{
"action": "create",
"repo": "example/project",
"title": "Add user authentication feature",
"description": "Implements JWT-based authentication system",
"base_branch": "main"
}
mcp__claude-flow__github_issue_trackFunction: Track and manage GitHub issues Parameters:
action (string): Action type - "create", "update", "close", "list", "assign"repo (string): Repository identifierissue_number (number, optional): Issue numbertitle (string, optional): Issue titlelabels (array, optional): Issue labelsassignee (string, optional): Issue assigneeUsage Example:
{
"action": "create",
"repo": "example/project",
"title": "Bug: Login form validation",
"labels": ["bug", "frontend"],
"assignee": "dev-team"
}
mcp__claude-flow__github_release_coordFunction: Coordinate GitHub releases and versioning Parameters:
action (string): Action type - "create", "update", "delete", "list"repo (string): Repository identifiertag_name (string, optional): Release tagrelease_name (string, optional): Release titledescription (string, optional): Release descriptiondraft (boolean, optional): Create as draftUsage Example:
{
"action": "create",
"repo": "example/project",
"tag_name": "v2.1.0",
"release_name": "Version 2.1.0 - Feature Release",
"description": "Added new dashboard and improved performance",
"draft": false
}
mcp__claude-flow__github_workflow_autoFunction: Automate GitHub Actions workflows Parameters:
repo (string): Repository identifierworkflow_action (string): Action type - "trigger", "status", "list", "create"workflow_name (string, optional): Workflow nameinputs (object, optional): Workflow inputsbranch (string, optional): Target branchUsage Example:
{
"repo": "example/project",
"workflow_action": "trigger",
"workflow_name": "deploy-to-production",
"inputs": {"environment": "production"},
"branch": "main"
}
mcp__claude-flow__github_code_reviewFunction: Perform automated code reviews using AI Parameters:
repo (string): Repository identifierpr_number (number, optional): Pull request to reviewreview_type (string): Review type - "security", "performance", "style", "comprehensive"auto_comment (boolean): Automatically comment on findingsreview_criteria (array, optional): Specific criteria to checkUsage Example:
{
"repo": "example/project",
"pr_number": 42,
"review_type": "comprehensive",
"auto_comment": true,
"review_criteria": ["security_vulnerabilities", "performance_issues", "code_style"]
}
mcp__claude-flow__github_sync_coordFunction: Coordinate synchronization between GitHub and local development Parameters:
repos (array): Repositories to synchronizesync_direction (string): Sync direction - "push", "pull", "bidirectional"conflict_resolution (string): Conflict resolution strategysync_branches (array, optional): Specific branches to syncUsage Example:
{
"repos": ["example/project", "example/shared-lib"],
"sync_direction": "bidirectional",
"conflict_resolution": "manual_review",
"sync_branches": ["main", "develop"]
}
mcp__claude-flow__github_metricsFunction: Collect and analyze GitHub repository metrics Parameters:
repo (string): Repository identifiermetrics (array): Metrics to collect - "commits", "contributors", "issues", "prs", "releases"timeframe (string): Analysis periodexport_format (string, optional): Export format for metricsUsage Example:
{
"repo": "example/project",
"metrics": ["commits", "issues", "prs"],
"timeframe": "30d",
"export_format": "csv"
}
Advanced dynamic agent management and architecture tools.
mcp__claude-flow__daa_agent_createFunction: Create dynamic agents with adaptive capabilities Parameters:
agent_type (string): Agent type or capability profileadaptation_rules (array): Rules for dynamic adaptationresource_constraints (object): Resource allocation constraintslifecycle_policy (string): Agent lifecycle management policyUsage Example:
{
"agent_type": "adaptive_coder",
"adaptation_rules": [
{"condition": "high_complexity", "action": "request_specialist"},
{"condition": "low_workload", "action": "hibernate"}
],
"resource_constraints": {"max_memory": "512MB", "max_cpu": "2_cores"},
"lifecycle_policy": "auto_scale"
}
mcp__claude-flow__daa_capability_matchFunction: Match agent capabilities to task requirements Parameters:
task_requirements (object): Required capabilities for taskavailable_agents (array, optional): Agents to considermatch_criteria (string): Matching criteria - "exact", "partial", "adaptive"optimization_goal (string): Optimization goal - "speed", "quality", "cost"Usage Example:
{
"task_requirements": {
"skills": ["python", "machine_learning", "data_analysis"],
"experience_level": "senior",
"availability": "immediate"
},
"match_criteria": "adaptive",
"optimization_goal": "quality"
}
mcp__claude-flow__daa_resource_allocFunction: Dynamically allocate resources to agents based on demand Parameters:
allocation_strategy (string): Strategy - "fair", "priority_based", "demand_based", "predictive"resource_pool (object): Available resourcesconstraints (object): Allocation constraintsmonitoring_interval (number): Resource monitoring interval in secondsUsage Example:
{
"allocation_strategy": "demand_based",
"resource_pool": {"cpu_cores": 16, "memory_gb": 64, "storage_gb": 1000},
"constraints": {"min_cpu_per_agent": 1, "max_memory_per_agent": "8GB"},
"monitoring_interval": 30
}
mcp__claude-flow__daa_lifecycle_manageFunction: Manage dynamic agent lifecycles (creation, scaling, termination) Parameters:
lifecycle_action (string): Action - "spawn", "scale", "hibernate", "terminate", "migrate"agent_ids (array, optional): Specific agents to managescaling_policy (object): Scaling policies and triggersmigration_target (string, optional): Target for agent migrationUsage Example:
{
"lifecycle_action": "scale",
"scaling_policy": {
"scale_up_threshold": 80,
"scale_down_threshold": 20,
"cooldown_period": 300
}
}
mcp__claude-flow__daa_communicationFunction: Manage dynamic communication patterns between agents Parameters:
communication_pattern (string): Pattern - "broadcast", "peer_to_peer", "hierarchical", "mesh"message_routing (object): Message routing configurationprotocol_adaptation (boolean): Enable protocol adaptationbandwidth_management (object): Bandwidth allocation rulesUsage Example:
{
"communication_pattern": "mesh",
"message_routing": {"priority_queues": true, "load_balancing": true},
"protocol_adaptation": true,
"bandwidth_management": {"max_per_agent": "10Mbps", "priority_levels": 3}
}
mcp__claude-flow__daa_consensusFunction: Implement consensus mechanisms for distributed decision making Parameters:
consensus_algorithm (string): Algorithm - "raft", "byzantine", "proof_of_stake", "democratic"decision_topic (string): Topic requiring consensusvoting_power (object, optional): Voting power distributiontimeout_seconds (number): Consensus timeoutUsage Example:
{
"consensus_algorithm": "democratic",
"decision_topic": "architecture_choice",
"voting_power": {"senior_agents": 2, "junior_agents": 1},
"timeout_seconds": 120
}
mcp__claude-flow__daa_fault_toleranceFunction: Implement fault tolerance and recovery mechanisms Parameters:
fault_detection (object): Fault detection configurationrecovery_strategy (string): Recovery strategy - "restart", "migrate", "replicate", "degrade"health_monitoring (object): Health monitoring settingsbackup_agents (number): Number of backup agents to maintainUsage Example:
{
"fault_detection": {"heartbeat_interval": 10, "failure_threshold": 3},
"recovery_strategy": "migrate",
"health_monitoring": {"check_interval": 30, "metrics": ["cpu", "memory", "response_time"]},
"backup_agents": 2
}
mcp__claude-flow__daa_optimizationFunction: Optimize dynamic agent architecture for performance and efficiency Parameters:
optimization_target (string): Target - "performance", "cost", "reliability", "energy"constraints (object): Optimization constraintsoptimization_algorithm (string): Algorithm to usecontinuous_optimization (boolean): Enable continuous optimizationUsage Example:
{
"optimization_target": "performance",
"constraints": {"max_cost": 1000, "min_reliability": 0.99},
"optimization_algorithm": "genetic",
"continuous_optimization": true
}
Core system management and utility functions.
mcp__claude-flow__terminal_executeFunction: Execute terminal commands with safety controls Parameters:
command (string): Command to executeworking_directory (string, optional): Working directorytimeout (number, optional): Execution timeout in secondscapture_output (boolean): Capture command outputenvironment_vars (object, optional): Environment variablesUsage Example:
{
"command": "npm test",
"working_directory": "/path/to/project",
"timeout": 300,
"capture_output": true,
"environment_vars": {"NODE_ENV": "test"}
}
mcp__claude-flow__config_manageFunction: Manage system configuration settings Parameters:
action (string): Action - "get", "set", "update", "delete", "list", "backup", "restore"config_key (string, optional): Configuration keyconfig_value (any, optional): Configuration valuenamespace (string, optional): Configuration namespaceUsage Example:
{
"action": "set",
"config_key": "swarm.default_topology",
"config_value": "hierarchical",
"namespace": "system"
}
mcp__claude-flow__features_detectFunction: Detect available features and capabilities Parameters:
component (string, optional): Specific component to checkdetailed_info (boolean): Include detailed feature informationcompatibility_check (boolean): Check feature compatibilityUsage Example:
{
"component": "neural_networks",
"detailed_info": true,
"compatibility_check": true
}
mcp__claude-flow__security_scanFunction: Perform security scans on system components Parameters:
scan_type (string): Scan type - "vulnerability", "compliance", "access_control", "data_integrity"scope (string): Scan scope - "system", "agents", "communications", "storage"severity_threshold (string): Minimum severity to reportremediation_suggestions (boolean): Include remediation suggestionsUsage Example:
{
"scan_type": "vulnerability",
"scope": "system",
"severity_threshold": "medium",
"remediation_suggestions": true
}
mcp__claude-flow__backup_createFunction: Create system backups Parameters:
backup_type (string): Backup type - "full", "incremental", "differential"components (array): Components to backupcompression (boolean): Enable compressionencryption (boolean): Enable encryptionretention_days (number): Backup retention periodUsage Example:
{
"backup_type": "incremental",
"components": ["memory", "configs", "agent_states"],
"compression": true,
"encryption": true,
"retention_days": 30
}
mcp__claude-flow__restore_systemFunction: Restore system from backups Parameters:
backup_id (string): Backup identifier to restorerestore_components (array): Components to restoreverification (boolean): Verify backup integrity before restorerollback_plan (boolean): Create rollback point before restoreUsage Example:
{
"backup_id": "backup_2024_01_15_001",
"restore_components": ["memory", "configs"],
"verification": true,
"rollback_plan": true
}
mcp__claude-flow__log_analysisFunction: Analyze system logs for insights and issues Parameters:
log_source (string): Log source - "system", "agents", "tasks", "communications"analysis_type (string): Analysis type - "errors", "performance", "patterns", "anomalies"timeframe (string): Time period to analyzeexport_results (boolean): Export analysis resultsUsage Example:
{
"log_source": "agents",
"analysis_type": "errors",
"timeframe": "24h",
"export_results": true
}
mcp__claude-flow__diagnostic_runFunction: Run comprehensive system diagnostics Parameters:
diagnostic_level (string): Diagnostic level - "quick", "standard", "comprehensive"components (array, optional): Specific components to diagnoseinclude_recommendations (boolean): Include improvement recommendationsauto_fix (boolean): Automatically fix detected issuesUsage Example:
{
"diagnostic_level": "comprehensive",
"components": ["memory", "agents", "neural_networks"],
"include_recommendations": true,
"auto_fix": false
}
The ruv-swarm tools provide advanced swarm intelligence, distributed computing, and collaborative AI capabilities. All ruv-swarm tools use the prefix mcp__ruv-swarm__.
mcp__ruv-swarm__memory_usageFunction: Advanced distributed memory management across swarm networks Parameters:
action (string): Action type - "store", "retrieve", "sync", "replicate", "compress"key (string): Memory key with hierarchical supportvalue (any, for store): Data to store with automatic serializationnamespace (string, optional): Memory namespace for isolationreplication_factor (number, optional): Number of replicas across nodesconsistency_level (string, optional): Consistency level - "eventual", "strong", "bounded"Usage Example:
{
"action": "store",
"key": "distributed/project_state",
"value": {"phase": "implementation", "completion": 0.75},
"namespace": "project-alpha",
"replication_factor": 3,
"consistency_level": "strong"
}
mcp__ruv-swarm__swarm_monitorFunction: Real-time monitoring of distributed swarm operations Parameters:
monitoring_mode (string): Mode - "realtime", "batch", "event_driven"metrics (array): Metrics to monitor - "performance", "health", "communication", "resource_usage"alert_thresholds (object): Alert threshold configurationdashboard_update (boolean): Update monitoring dashboardUsage Example:
{
"monitoring_mode": "realtime",
"metrics": ["performance", "health", "communication"],
"alert_thresholds": {"cpu_usage": 80, "memory_usage": 75},
"dashboard_update": true
}
mcp__ruv-swarm__task_orchestrateFunction: Advanced task orchestration with intelligent agent assignment Parameters:
orchestration_strategy (string): Strategy - "capability_based", "load_balanced", "priority_weighted", "ml_optimized"task_graph (object): Task dependency graphresource_constraints (object): Resource allocation constraintsoptimization_goals (array): Goals - "speed", "quality", "cost", "energy_efficiency"Usage Example:
{
"orchestration_strategy": "ml_optimized",
"task_graph": {
"nodes": ["research", "design", "implement", "test"],
"edges": [["research", "design"], ["design", "implement"], ["implement", "test"]]
},
"resource_constraints": {"max_parallel_tasks": 5, "memory_limit": "16GB"},
"optimization_goals": ["speed", "quality"]
}
mcp__ruv-swarm__neural_trainFunction: Distributed neural network training across swarm nodes Parameters:
training_mode (string): Mode - "federated", "distributed", "ensemble", "transfer"model_architecture (object): Neural network architecture definitiontraining_data (string): Training data source or identifierhyperparameters (object): Training hyperparametersconvergence_criteria (object): Training stop conditionsUsage Example:
{
"training_mode": "federated",
"model_architecture": {"type": "transformer", "layers": 12, "hidden_size": 768},
"training_data": "swarm_collaboration_logs",
"hyperparameters": {"learning_rate": 0.001, "batch_size": 32},
"convergence_criteria": {"min_accuracy": 0.95, "max_epochs": 100}
}
mcp__ruv-swarm__consensus_voteFunction: Implement distributed consensus voting mechanisms Parameters:
vote_type (string): Vote type - "simple_majority", "weighted", "byzantine_tolerant", "proof_of_stake"proposal (object): Proposal details and optionsvoting_power (object, optional): Voting weight distributionquorum_threshold (number): Minimum participation for valid votetimeout_duration (number): Vote timeout in secondsUsage Example:
{
"vote_type": "weighted",
"proposal": {
"id": "architecture_decision_001",
"description": "Choose database architecture",
"options": ["PostgreSQL", "MongoDB", "Hybrid"]
},
"voting_power": {"senior_agents": 2.0, "junior_agents": 1.0},
"quorum_threshold": 0.67,
"timeout_duration": 300
}
mcp__ruv-swarm__agent_spawnFunction: Spawn intelligent agents with adaptive capabilities Parameters:
agent_template (string): Agent template or typespecialization (array): Agent specializations and skillsautonomy_level (string): Autonomy level - "supervised", "semi_autonomous", "fully_autonomous"learning_enabled (boolean): Enable continuous learningcollaboration_preferences (object): Collaboration settingsUsage Example:
{
"agent_template": "adaptive_researcher",
"specialization": ["data_analysis", "pattern_recognition", "report_generation"],
"autonomy_level": "semi_autonomous",
"learning_enabled": true,
"collaboration_preferences": {"preferred_team_size": 3, "communication_style": "structured"}
}
mcp__ruv-swarm__swarm_statusFunction: Comprehensive swarm status with predictive analytics Parameters:
status_depth (string): Status depth - "overview", "detailed", "comprehensive", "predictive"include_predictions (boolean): Include future state predictionshealth_assessment (boolean): Perform health assessmentperformance_analysis (boolean): Include performance analysisexport_format (string, optional): Export format - "json", "dashboard", "report"Usage Example:
{
"status_depth": "comprehensive",
"include_predictions": true,
"health_assessment": true,
"performance_analysis": true,
"export_format": "dashboard"
}
mcp__ruv-swarm__collective_intelligenceFunction: Harness collective intelligence for problem solving Parameters:
intelligence_mode (string): Mode - "aggregated", "emergent", "collective_reasoning", "wisdom_of_crowds"problem_context (object): Problem definition and contextparticipation_criteria (object): Agent participation requirementssynthesis_method (string): Method for combining insightsconfidence_weighting (boolean): Weight contributions by confidenceUsage Example:
{
"intelligence_mode": "collective_reasoning",
"problem_context": {
"domain": "software_architecture",
"complexity": "high",
"constraints": ["scalability", "maintainability", "cost"]
},
"participation_criteria": {"min_experience": "intermediate", "domain_expertise": true},
"synthesis_method": "weighted_consensus",
"confidence_weighting": true
}
mcp__ruv-swarm__dynamic_topologyFunction: Dynamically adapt swarm topology based on performance Parameters:
adaptation_trigger (string): Trigger - "performance_threshold", "workload_change", "failure_detection", "optimization_cycle"topology_options (array): Available topology configurationstransition_strategy (string): Transition strategy - "gradual", "immediate", "rolling"performance_metrics (object): Metrics to optimize forUsage Example:
{
"adaptation_trigger": "performance_threshold",
"topology_options": ["hierarchical", "mesh", "star", "hybrid"],
"transition_strategy": "gradual",
"performance_metrics": {"latency": 100, "throughput": 1000, "error_rate": 0.01}
}
mcp__ruv-swarm__resource_federationFunction: Federate resources across multiple swarm instances Parameters:
federation_policy (string): Policy - "fair_share", "priority_based", "market_based", "need_based"resource_types (array): Resources to federate - "compute", "memory", "storage", "bandwidth"sharing_constraints (object): Constraints on resource sharingbilling_model (string, optional): Billing model for resource usageUsage Example:
{
"federation_policy": "priority_based",
"resource_types": ["compute", "memory"],
"sharing_constraints": {"max_share_percentage": 0.7, "reserved_for_local": 0.3},
"billing_model": "usage_based"
}
mcp__ruv-swarm__load_predictionFunction: Predict future load patterns for proactive scaling Parameters:
prediction_horizon (string): Prediction timeframe - "minutes", "hours", "days", "weeks"prediction_model (string): Model type - "linear", "seasonal", "ml_based", "hybrid"historical_data_period (string): Historical data to useconfidence_intervals (boolean): Include prediction confidence intervalsUsage Example:
{
"prediction_horizon": "hours",
"prediction_model": "ml_based",
"historical_data_period": "30d",
"confidence_intervals": true
}
mcp__ruv-swarm__fault_recoveryFunction: Implement advanced fault detection and recovery Parameters:
recovery_strategy (string): Strategy - "restart", "migrate", "replicate", "degrade_gracefully", "self_heal"fault_detection_sensitivity (string): Sensitivity - "low", "medium", "high", "adaptive"recovery_timeout (number): Maximum time for recovery attemptscascade_prevention (boolean): Prevent cascade failuresUsage Example:
{
"recovery_strategy": "self_heal",
"fault_detection_sensitivity": "adaptive",
"recovery_timeout": 120,
"cascade_prevention": true
}
mcp__ruv-swarm__communication_optimizeFunction: Optimize communication patterns and protocols Parameters:
optimization_target (string): Target - "latency", "bandwidth", "reliability", "energy"communication_patterns (array): Current communication patternsprotocol_adaptation (boolean): Enable protocol adaptationcompression_strategies (array): Available compression methodsUsage Example:
{
"optimization_target": "latency",
"communication_patterns": ["broadcast", "peer_to_peer", "hierarchical"],
"protocol_adaptation": true,
"compression_strategies": ["gzip", "lz4", "adaptive"]
}
mcp__ruv-swarm__knowledge_synthesisFunction: Synthesize knowledge from distributed agents Parameters:
synthesis_method (string): Method - "weighted_average", "expert_consensus", "evidence_based", "emergent_patterns"knowledge_domains (array): Domains to synthesize knowledge fromconflict_resolution (string): Method for resolving conflicting informationquality_filtering (object): Quality filters for knowledge sourcesUsage Example:
{
"synthesis_method": "evidence_based",
"knowledge_domains": ["technical_specifications", "user_requirements", "best_practices"],
"conflict_resolution": "weighted_voting",
"quality_filtering": {"min_confidence": 0.8, "source_credibility": "high"}
}
mcp__ruv-swarm__adaptive_learningFunction: Enable adaptive learning across the swarm Parameters:
learning_mode (string): Mode - "continuous", "episodic", "reinforcement", "meta_learning"knowledge_sharing (boolean): Enable knowledge sharing between agentslearning_objectives (array): Specific learning objectivesadaptation_rate (string): Rate of adaptation - "slow", "medium", "fast", "adaptive"Usage Example:
{
"learning_mode": "continuous",
"knowledge_sharing": true,
"learning_objectives": ["task_efficiency", "collaboration_patterns", "error_reduction"],
"adaptation_rate": "adaptive"
}
mcp__ruv-swarm__behavioral_analysisFunction: Analyze agent and swarm behavioral patterns Parameters:
analysis_scope (string): Scope - "individual_agents", "agent_groups", "entire_swarm", "cross_swarm"behavioral_dimensions (array): Dimensions to analyzepattern_detection (boolean): Detect behavioral patternsanomaly_detection (boolean): Detect anomalous behaviorsUsage Example:
{
"analysis_scope": "entire_swarm",
"behavioral_dimensions": ["communication_frequency", "task_selection", "collaboration_preferences"],
"pattern_detection": true,
"anomaly_detection": true
}
mcp__ruv-swarm__performance_predictionFunction: Predict swarm performance under different conditions Parameters:
prediction_scenarios (array): Scenarios to predict performance forperformance_metrics (array): Metrics to predictmodel_complexity (string): Prediction model complexityuncertainty_quantification (boolean): Include uncertainty estimatesUsage Example:
{
"prediction_scenarios": [
{"agent_count": 10, "task_complexity": "high", "load": "peak"},
{"agent_count": 15, "task_complexity": "medium", "load": "normal"}
],
"performance_metrics": ["throughput", "latency", "success_rate"],
"model_complexity": "advanced",
"uncertainty_quantification": true
}
mcp__ruv-swarm__sentiment_analysisFunction: Analyze sentiment and morale within swarm communications Parameters:
analysis_timeframe (string): Timeframe for sentiment analysiscommunication_channels (array): Channels to analyzesentiment_dimensions (array): Dimensions of sentiment to tracktrend_analysis (boolean): Include sentiment trend analysisUsage Example:
{
"analysis_timeframe": "7d",
"communication_channels": ["task_coordination", "peer_feedback", "status_updates"],
"sentiment_dimensions": ["confidence", "satisfaction", "stress", "collaboration_quality"],
"trend_analysis": true
}
mcp__ruv-swarm__insight_generationFunction: Generate insights from swarm data and interactions Parameters:
insight_categories (array): Categories of insights to generatedata_sources (array): Data sources to analyzeinsight_depth (string): Depth of analysisactionable_recommendations (boolean): Include actionable recommendationsUsage Example:
{
"insight_categories": ["efficiency_improvements", "collaboration_optimization", "resource_utilization"],
"data_sources": ["task_logs", "communication_history", "performance_metrics"],
"insight_depth": "comprehensive",
"actionable_recommendations": true
}
mcp__ruv-swarm__predictive_maintenanceFunction: Predict and prevent swarm system issues Parameters:
prediction_horizon (string): How far ahead to predictmaintenance_categories (array): Categories of maintenance to predictalert_thresholds (object): Thresholds for maintenance alertsautomated_actions (boolean): Enable automated preventive actionsUsage Example:
{
"prediction_horizon": "weeks",
"maintenance_categories": ["agent_performance_degradation", "resource_exhaustion", "communication_bottlenecks"],
"alert_thresholds": {"degradation_rate": 0.1, "resource_usage": 0.9},
"automated_actions": true
}
mcp__ruv-swarm__quantum_simulateFunction: Simulate quantum computing algorithms for optimization problems Parameters:
algorithm_type (string): Quantum algorithm - "vqe", "qaoa", "grover", "shor", "custom"problem_encoding (object): Problem encoding for quantum simulationqubit_count (number): Number of qubits to simulatenoise_model (string, optional): Quantum noise model to applyUsage Example:
{
"algorithm_type": "qaoa",
"problem_encoding": {"type": "max_cut", "graph_nodes": 10},
"qubit_count": 16,
"noise_model": "depolarizing"
}
mcp__ruv-swarm__blockchain_consensusFunction: Implement blockchain-based consensus for critical decisions Parameters:
consensus_mechanism (string): Mechanism - "proof_of_work", "proof_of_stake", "delegated_pos", "practical_byzantine"block_parameters (object): Blockchain block parametersvalidator_selection (string): How to select validatorsfinality_requirements (object): Requirements for transaction finalityUsage Example:
{
"consensus_mechanism": "proof_of_stake",
"block_parameters": {"block_time": 30, "max_transactions": 100},
"validator_selection": "stake_weighted",
"finality_requirements": {"confirmations": 6, "time_threshold": 180}
}
mcp__ruv-swarm__evolutionary_optimizeFunction: Use evolutionary algorithms for swarm optimization Parameters:
optimization_target (string): What to optimizepopulation_size (number): Size of population for evolutionmutation_rate (number): Mutation rate for genetic algorithmselection_pressure (string): Selection pressure leveltermination_criteria (object): When to stop evolutionUsage Example:
{
"optimization_target": "task_allocation_strategy",
"population_size": 50,
"mutation_rate": 0.1,
"selection_pressure": "moderate",
"termination_criteria": {"max_generations": 100, "convergence_threshold": 0.01}
}
mcp__ruv-swarm__swarm_roboticsFunction: Coordinate physical or virtual robotic swarms Parameters:
coordination_mode (string): Mode - "centralized", "distributed", "hybrid", "emergent"robot_capabilities (array): Capabilities of individual robotsformation_control (object): Formation control parameterspath_planning (string): Path planning algorithmUsage Example:
{
"coordination_mode": "distributed",
"robot_capabilities": ["movement", "sensing", "communication", "manipulation"],
"formation_control": {"formation_type": "line", "spacing": 2.0, "flexibility": 0.5},
"path_planning": "rrt_star"
}
mcp__ruv-swarm__bio_inspired_algorithmsFunction: Implement bio-inspired algorithms for swarm behavior Parameters:
algorithm_type (string): Algorithm - "ant_colony", "particle_swarm", "bee_algorithm", "flocking", "stigmergy"bio_parameters (object): Biological parameters for the algorithmadaptation_rules (array): Rules for algorithm adaptationemergence_detection (boolean): Detect emergent behaviorsUsage Example:
{
"algorithm_type": "ant_colony",
"bio_parameters": {"pheromone_evaporation": 0.1, "alpha": 1.0, "beta": 2.0},
"adaptation_rules": [
{"condition": "stagnation", "action": "increase_exploration"},
{"condition": "convergence", "action": "maintain_exploitation"}
],
"emergence_detection": true
}
Many claude-flow tools support batch operations for efficiency:
{
"tool": "mcp__claude-flow__parallel_execute",
"params": {
"operations": [
{"tool": "memory_usage", "params": {"action": "retrieve", "key": "project_status"}},
{"tool": "agent_metrics", "params": {"timeframe": "1h"}},
{"tool": "performance_report", "params": {"format": "summary"}}
],
"max_concurrency": 3
}
}
All tools provide structured error responses:
{
"success": false,
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Swarm with ID 'project-alpha' not found",
"details": {"swarmId": "project-alpha", "available_swarms": ["project-beta"]}
}
}
Tools can be chained for complex workflows:
[
{"tool": "mcp__claude-flow__swarm_init", "params": {"topology": "hierarchical"}},
{"tool": "mcp__claude-flow__agent_spawn", "params": {"type": "coordinator"}},
{"tool": "mcp__ruv-swarm__neural_train", "params": {"pattern_type": "coordination"}}
]
mcp__claude-flow__parallel_execute for concurrent operations{
"workflow": [
{
"tool": "mcp__claude-flow__swarm_init",
"params": {"topology": "hierarchical", "maxAgents": 8}
},
{
"tool": "mcp__claude-flow__agent_spawn",
"params": {"type": "architect", "specialization": ["system_design"]}
},
{
"tool": "mcp__claude-flow__agent_spawn",
"params": {"type": "coder", "specialization": ["backend"]}
},
{
"tool": "mcp__claude-flow__agent_spawn",
"params": {"type": "coder", "specialization": ["frontend"]}
},
{
"tool": "mcp__claude-flow__task_orchestrate",
"params": {"task": "Build e-commerce platform", "strategy": "parallel"}
}
]
}
{
"workflow": [
{
"tool": "mcp__ruv-swarm__collective_intelligence",
"params": {"intelligence_mode": "collective_reasoning", "problem_context": {"domain": "machine_learning"}}
},
{
"tool": "mcp__ruv-swarm__neural_train",
"params": {"training_mode": "federated", "model_architecture": {"type": "transformer"}}
},
{
"tool": "mcp__claude-flow__performance_report",
"params": {"timeframe": "24h", "include_predictions": true}
}
]
}
swarm_status and memory_usageFor detailed setup instructions, see the Integration Guide.
This documentation is automatically generated and updated. Last updated: 2024-08-13