Complete Hive platform functionality and expand cluster to 7 agents

Major Features Added:
- Fix Socket.IO connectivity by updating Dockerfile to use socket_app
- Resolve distributed workflows API to return arrays instead of errors
- Expand agent coverage from 3 to 7 agents (added OAK and ROSEWOOD)
- Create comprehensive systemd service for MCP server with auto-discovery
- Add daemon mode with periodic agent discovery every 5 minutes
- Implement comprehensive test suite with 100% pass rate

Infrastructure Improvements:
- Enhanced database connection handling with retry logic
- Improved agent registration with persistent storage
- Added proper error handling for distributed workflows endpoint
- Created management scripts for service lifecycle operations

Agent Cluster Expansion:
- ACACIA: deepseek-r1:7b (kernel_dev)
- WALNUT: starcoder2:15b (pytorch_dev)
- IRONWOOD: deepseek-coder-v2 (profiler)
- OAK: codellama:latest (docs_writer)
- OAK-TESTER: deepseek-r1:latest (tester)
- ROSEWOOD: deepseek-coder-v2:latest (kernel_dev)
- ROSEWOOD-VISION: llama3.2-vision:11b (tester)

System Status: All 7 agents healthy, Socket.IO operational, MCP server fully functional

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
anthonyrawlins
2025-07-10 08:41:34 +10:00
parent 8c3adf6d8f
commit fc0eec91ef
16 changed files with 1599 additions and 84 deletions

View File

@@ -0,0 +1,52 @@
[Unit]
Description=Hive MCP Server - Distributed AI Orchestration
Documentation=https://github.com/anthropics/hive-mcp-server
After=network-online.target
Wants=network-online.target
StartLimitIntervalSec=30
StartLimitBurst=3
[Service]
Type=simple
User=tony
Group=tony
WorkingDirectory=/home/tony/AI/projects/hive/mcp-server
# Environment variables
Environment=NODE_ENV=production
Environment=HIVE_API_URL=https://hive.home.deepblack.cloud/api
Environment=HIVE_WS_URL=wss://hive.home.deepblack.cloud/socket.io
Environment=LOG_LEVEL=info
Environment=AUTO_DISCOVERY=true
Environment=DISCOVERY_INTERVAL=300000
# Main service command
ExecStart=/usr/bin/node dist/index.js --daemon
ExecReload=/bin/kill -HUP $MAINPID
# Restart policy
Restart=always
RestartSec=10
TimeoutStartSec=30
TimeoutStopSec=15
# Security settings
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=read-only
ReadWritePaths=/home/tony/AI/projects/hive/mcp-server/logs
ReadWritePaths=/home/tony/AI/projects/hive/mcp-server/data
# Resource limits
LimitNOFILE=65536
MemoryMax=512M
CPUQuota=50%
# Logging
StandardOutput=journal
StandardError=journal
SyslogIdentifier=hive-mcp
[Install]
WantedBy=multi-user.target