Skip to content

Containerised, more secure, general purpose Claude swarm launcher script.

License

Notifications You must be signed in to change notification settings

DreamLab-AI/old-agent-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

22 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Multi-Agent Docker - Unified Container

A high-performance, GPU-accelerated development environment combining AI tools, GUI applications, and MCP servers in a single optimized container.

Quick Start

# Build and start
docker-compose up -d --build

# Access VNC desktop
# VNC: localhost:5901 (password: password)
# Web: http://localhost:6901

# Enter container shell
docker exec -it multi-agent-container bash

Features

πŸ–₯️ GUI Desktop (VNC)

  • XFCE Desktop - Lightweight environment with D-Bus support
  • Resolution - 1600x1200 (configurable)
  • Access - VNC port 5901, noVNC port 6901
  • VNC Password - password
  • User Password - password (for desktop prompts)

πŸ› οΈ Development Tools

  • Python 3.12 - ML stack (PyTorch, CUDA 12.9.1)
  • Node.js 22+ - claude-flow, playwright, goalie
  • Rust - Full toolchain
  • Blender 4.5.1 - CLI accessible: blender
  • QGIS - Geospatial tools
  • LaTeX - Full environment

πŸ”Œ MCP Servers (Local)

  • Port 9876 - Blender MCP
  • Port 9877 - QGIS MCP
  • Port 9878 - PBR Generator MCP
  • Port 9879 - Playwright MCP
  • Port 9880 - Web Summary MCP (Google AI Studio)
  • Port 9500 - Main MCP TCP Server
  • Port 3002 - WebSocket Bridge

πŸ“¦ MCP Tools (Direct)

  • imagemagick-mcp - Image creation/manipulation
  • kicad-mcp - Electronic design automation
  • ngspice-mcp - Circuit simulation

Configuration

Environment Variables (.env)

DOCKER_MEMORY=32g                      # RAM allocation
DOCKER_CPUS=16                         # CPU cores
HOST_UID=1000                          # User ID
HOST_GID=1000                          # Group ID
EXTERNAL_DIR=/path/to/projects         # External project mount

External Projects

Projects from EXTERNAL_DIR are mounted at /workspace/ext inside the container, accessible from both VNC desktop and CLI.

Architecture

Single Unified Container

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  multi-agent-container                   β”‚
β”‚                                          β”‚
β”‚  VNC/XFCE Desktop ─┬─ Development Tools β”‚
β”‚  Blender, QGIS    β”‚  Python/Node/Rust  β”‚
β”‚  Chromium         β”‚  Claude CLI        β”‚
β”‚                   β”‚                     β”‚
β”‚  Local MCP Servers (9876-9879)         β”‚
β”‚  Direct GPU Access (NVIDIA)            β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Benefits:

  • No network overhead (previous dual-container setup eliminated)
  • Direct GPU access for all tools
  • Unified logging and management
  • Faster startup and MCP communication

Resource Configuration

Default Allocation

  • Memory - 32GB (configurable)
  • CPUs - 16 cores (configurable)
  • Shared Memory - 4GB (for GUI/browsers)
  • GPU - All NVIDIA GPUs with full capabilities

High-Performance Tuning

For systems with >64GB RAM:

# docker-compose.yml
deploy:
  resources:
    limits:
      memory: 64g
      cpus: "32"
shm_size: '8gb'

Directory Structure

multi-agent-docker/
β”œβ”€β”€ README.md                  # This file
β”œβ”€β”€ Dockerfile                 # Container definition
β”œβ”€β”€ docker-compose.yml         # Service configuration
β”œβ”€β”€ entrypoint.sh             # Container startup
β”œβ”€β”€ supervisord.conf          # Service management
β”œβ”€β”€ setup-workspace.sh        # Workspace initialization
β”œβ”€β”€ docs/                     # Documentation
β”‚   β”œβ”€β”€ UNIFIED-CONTAINER-MIGRATION.md
β”‚   β”œβ”€β”€ SECURITY.md
β”‚   └── ...
β”œβ”€β”€ core-assets/              # Scripts and tools
β”‚   β”œβ”€β”€ scripts/              # MCP servers and utilities
β”‚   β”œβ”€β”€ mcp-tools/            # Direct MCP tools
β”‚   └── mcp.json             # MCP configuration
β”œβ”€β”€ gui-tools-assets/         # GUI MCP server scripts
β”‚   β”œβ”€β”€ addon.py              # Blender MCP addon
β”‚   β”œβ”€β”€ playwright-mcp-server.js
β”‚   β”œβ”€β”€ qgis-mcp-server.js
β”‚   └── pbr-mcp-simple.py
└── workspace/                # Persistent workspace
    └── ext/                  # External projects

Usage

VNC Desktop

# VNC Client
Host: localhost:5901
Password: password

# noVNC Browser
URL: http://localhost:6901
Password: password

Container Shell

# As dev user
docker exec -it multi-agent-container bash

# As root
docker exec -u root -it multi-agent-container bash

MCP Services

# Check all services
docker exec multi-agent-container supervisorctl status

# Test MCP tool
docker exec -u dev multi-agent-container \
  python3 /app/core-assets/mcp-tools/imagemagick_mcp.py

Troubleshooting

VNC Issues

# Check VNC and desktop status
docker exec multi-agent-container supervisorctl status vnc xfce dbus

# Restart desktop
docker exec multi-agent-container supervisorctl restart vnc xfce dbus

MCP Server Issues

# Check supervisor status
docker exec -it multi-agent-container supervisorctl status

# Restart specific server
docker exec -it multi-agent-container supervisorctl restart playwright-mcp-server

GPU Issues

# Verify NVIDIA runtime
docker exec multi-agent-container nvidia-smi

# Check GPU environment
docker exec multi-agent-container env | grep NVIDIA

Documentation

Development

Helper Scripts

  • ./multi-agent.sh shell - Enter container as dev user
  • ./setup-workspace.sh - Initialize workspace (runs automatically)
  • ./mcp-helper.sh - MCP utility commands

Logs

# Container logs
docker-compose logs -f multi-agent

# Service logs
docker exec multi-agent-container supervisorctl tail -f vnc

Performance

Optimized for:

  • AI Development - GPU acceleration, ML frameworks
  • 3D Modeling - Blender with GPU rendering
  • Browser Automation - Playwright with Chromium/Firefox/WebKit
  • Geospatial Analysis - QGIS with full capabilities
  • Multi-Agent Systems - Claude-Flow orchestration

License

See project root for licensing information.

Support

For issues or questions:

  1. Check the Migration Guide
  2. Review troubleshooting section
  3. File an issue in the project repository

About

Containerised, more secure, general purpose Claude swarm launcher script.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published