Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

🔖 Checkpoint: Edit /workspaces/claude-code-flow/src/mcp/ruv-swarm-tools.ts

rUve79bf3d93975
diff --git a/.claude/checkpoints/1755360795.json b/.claude/checkpoints/1755360795.json
new file mode 100644
index 0000000000..c15eaaaef0
--- /dev/null
+++ b/.claude/checkpoints/1755360795.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250816-161315", "file": "/workspaces/claude-code-flow/src/mcp/fixes/mcp-error-fixes.js", "timestamp": "2025-08-16T16:13:15Z", "type": "pre-edit", "original_branch": "alpha90"}
diff --git a/.claude/checkpoints/1755360796.json b/.claude/checkpoints/1755360796.json
new file mode 100644
index 0000000000..7be16f4ca6
--- /dev/null
+++ b/.claude/checkpoints/1755360796.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250816-161316", "file": "/workspaces/claude-code-flow/src/mcp/fixes/mcp-error-fixes.js", "timestamp": "2025-08-16T16:13:16Z", "type": "post-edit", "branch": "alpha90", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 120 ++++++++++++++++++++++++ .claude-flow/metrics/task-metrics.json | 6 +- .claude/checkpoints/task-1755360502.json | 1 + claude-flow-wiki | 0 src/mcp/fixes/mcp-error-fixes.js | 152 +++++++++++++++++++++++++++++++ 6 files changed, 277 insertions(+), 4 deletions(-) "}
diff --git a/src/mcp/ruv-swarm-tools.ts b/src/mcp/ruv-swarm-tools.ts
index 416c7f0e85..39ef0251eb 100644
--- a/src/mcp/ruv-swarm-tools.ts
+++ b/src/mcp/ruv-swarm-tools.ts
@@ -11,6 +11,20 @@ import { execAsync } from '../utils/helpers.js';
import { existsSync } from 'fs';
import { join } from 'path';
+// Import error fixes for agent_metrics, swarm_monitor, neural_train
+let errorFixes: any;
+try {
+ errorFixes = require('./fixes/mcp-error-fixes.js');
+} catch (e) {
+ // Fallback if module not found
+ errorFixes = {
+ fixAgentMetrics: (d: any) => d,
+ fixSwarmMonitor: (d: any) => d,
+ fixNeuralTrain: (d: any) => d,
+ wrapRuvSwarmResponse: (n: string, d: any) => d,
+ };
+}
+
export interface RuvSwarmToolContext extends MCPContext {
workingDirectory?: string;
swarmId?: string;