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

This commit is contained in:
rUv committed 2025-08-16 14:46:52 +00:00
1 parent d2de52c652
commit e654f1f959
3 files changed
+10

No files matched your search

+1
View File
@@ -0,0 +1 @@
{"branch": "checkpoint/pre-edit-20250816-144638", "file": "/workspaces/claude-code-flow/src/mcp/implementations/agent-tracker.js", "timestamp": "2025-08-16T14:46:38Z", "type": "pre-edit", "original_branch": "alpha90"}
+1
View File
@@ -0,0 +1 @@
{"tag": "checkpoint-20250816-144639", "file": "/workspaces/claude-code-flow/src/mcp/implementations/agent-tracker.js", "timestamp": "2025-08-16T14:46:39Z", "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 | 544 ++++++++++++++++++++++++++++++- .claude-flow/metrics/task-metrics.json | 11 +- claude-flow-wiki | 0 src/mcp/implementations/agent-tracker.js | 122 +++++++ 6 files changed, 665 insertions(+), 34 deletions(-) "}
+8
View File
@@ -1098,6 +1098,14 @@ class ClaudeFlowMCPServer {
};
case 'agent_spawn':
// Track spawned agent
if (global.agentTracker && args.swarmId) {
global.agentTracker.trackAgent(result.agentId, {
...args,
id: result.agentId,
status: 'active'
});
}
const agentId = `agent_${Date.now()}_${Math.random().toString(36).substr(2, 6)}`;
const resolvedType = resolveLegacyAgentType(args.type);
const agentData = {