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/mcp-server.js

rUvbc42afd09baa
diff --git a/.claude/checkpoints/task-1754074145.json b/.claude/checkpoints/task-1754074145.json
new file mode 100644
index 0000000000..8234bca4ba
--- /dev/null
+++ b/.claude/checkpoints/task-1754074145.json
@@ -0,0 +1 @@
+{"checkpoint": "task-20250801-184904", "task": "{{user_prompt}} ", "timestamp": "2025-08-01T18:49:05Z", "commit": "7f78de1c8174e6ce69e1d04577a4cfa4c959edca", "github_release": "true"}
diff --git a/src/mcp/mcp-server.js b/src/mcp/mcp-server.js
index ca1873b10d..82d4ca7427 100644
--- a/src/mcp/mcp-server.js
+++ b/src/mcp/mcp-server.js
@@ -15,6 +15,22 @@ import { memoryStore } from '../memory/fallback-store.js';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
+// Legacy agent type mapping for backward compatibility
+const LEGACY_AGENT_MAPPING = {
+ analyst: 'code-analyzer',
+ coordinator: 'task-orchestrator',
+ optimizer: 'perf-analyzer',
+ documenter: 'api-docs',
+ monitor: 'performance-benchmarker',
+ specialist: 'system-architect',
+ architect: 'system-architect',
+};
+
+// Resolve legacy agent types to current equivalents
+function resolveLegacyAgentType(legacyType) {
+ return LEGACY_AGENT_MAPPING[legacyType] || legacyType;
+}
+
class ClaudeFlowMCPServer {
constructor() {
this.version = '2.0.0-alpha.59';