🔖 Checkpoint: Edit /workspaces/claude-code-flow/src/mcp/mcp-server.js

This commit is contained in:
rUv committed 2025-08-16 14:48:17 +00:00
1 parent d4434b13d8
commit ec5fe56754
3 files changed
+5 -2

No files matched your search

+1
View File
@@ -0,0 +1 @@
{"branch": "checkpoint/pre-edit-20250816-144757", "file": "/workspaces/claude-code-flow/src/mcp/mcp-server.js", "timestamp": "2025-08-16T14:47:57Z", "type": "pre-edit", "original_branch": "alpha90"}
+1
View File
@@ -0,0 +1 @@
{"tag": "checkpoint-20250816-144759", "file": "/workspaces/claude-code-flow/src/mcp/mcp-server.js", "timestamp": "2025-08-16T14:47:59Z", "type": "post-edit", "branch": "alpha90", "diff_summary": " .claude-flow/metrics/agent-metrics.json | 18 +- .claude-flow/metrics/performance.json | 4 +- .claude-flow/metrics/system-metrics.json | 580 ++++++++++++++++++++++++++++++- .claude-flow/metrics/task-metrics.json | 11 +- .claude/checkpoints/1755355672.json | 1 + .claude/checkpoints/1755355674.json | 1 + claude-flow-wiki | 0 src/mcp/mcp-server.js | 9 + 8 files changed, 590 insertions(+), 34 deletions(-) "}
+3 -2
View File
@@ -1050,16 +1050,17 @@ class ClaudeFlowMCPServer {
// Simulate tool execution based on the tool name
switch (name) {
case 'swarm_init':
const swarmId = `swarm_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;
// Track swarm creation
if (global.agentTracker) {
const swarmId = `swarm_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;
global.agentTracker.trackSwarm(swarmId, {
topology: args.topology || 'mesh',
maxAgents: args.maxAgents || 5,
strategy: args.strategy || 'balanced',
});
}
const swarmId = `swarm_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;
const swarmData = {
id: swarmId,
name: `Swarm-${new Date().toISOString().split('T')[0]}`,