v2/examples/browser-dashboard/README-REAL.md
This demonstrates the dashboard with actual Claude Flow MCP tools instead of simulation.
Browser Dashboard (dashboard.js)
↓ WebSocket (JSON-RPC 2.0)
Node.js Bridge (server-real.js)
↓ stdio (JSON-RPC 2.0)
Claude Flow MCP Server (npx claude-flow@alpha mcp start)
↓ Direct function calls
Real MCP Tools (90 tools)
↓ Actual operations
Claude Flow Core (swarm orchestration, agents, tasks)
npx claude-flow@alpha mcp start as a child processcd examples/browser-dashboard
# Kill simulation server
pkill -f "node server.js"
# Start REAL MCP integration
node server-real.js
🚀 Starting Claude Flow MCP server...
✅ Claude Flow MCP ready
🌐 Claude Flow Dashboard Server (REAL MCP)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Dashboard: http://localhost:8080
🔌 WebSocket: ws://localhost:8080
🔥 Real MCP Integration Active
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Open http://localhost:8080 and try:
Spawn Real Agents: Click "Spawn 5 Agents"
mcp__claude-flow__agents_spawn_parallelReal Swarm Status: Automatically queries
mcp__claude-flow__swarm_statusQuery Control: Click "Pause Query"
mcp__claude-flow__query_controlByzantine Consensus: Click "Simulate $50K Payment"
mcp__agentic-payments__verify_consensusserver.js)server-real.js)📨 Client Request: mcp__claude-flow__agents_spawn_parallel
→ MCP: agents_spawn_parallel
← MCP Response: agent_spawn_1727654321
✅ Spawned 5 agents in 287ms
📨 Client Request: mcp__claude-flow__swarm_status
→ MCP: swarm_status
← MCP Response: swarm_status_1727654322
📊 Active swarms: 1, Agents: 5, Topology: mesh
📨 Client Request: mcp__agentic-payments__verify_consensus
→ MCP: verify_consensus
← MCP Response: consensus_1727654323
🗳️ Consensus reached: 13/20 in 1ms
| Feature | Simulated | Real MCP |
|---|---|---|
| Agent Spawning | Fake (instant) | Real (50-75ms) |
| Consensus | Random votes | Real Ed25519 verification |
| Swarm Status | Static data | Live orchestrator state |
| Query Control | UI only | Actual process control |
| Performance | Instant | Measured latency |
| Memory Usage | N/A | Real metrics |
MCP Server Won't Start:
# Check if claude-flow is installed
npx claude-flow@alpha --version
# Test MCP server manually
npx claude-flow@alpha mcp start
Port Already in Use:
# Kill existing servers
pkill -f "node server"
lsof -ti:8080 | xargs kill -9
# Start on different port
PORT=8081 node server-real.js
No Response from MCP:
Real Operations:
WebSocket Latency:
This is actual Claude Flow running in the browser via WebSocket → stdio bridge!