🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

docker-wts-build

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docker-wts-build

Docker builds via Windows Task Scheduler — MCP server for Cline

Source
pipPyPI
Version
0.1.2
Weekly downloads
68
Maintainers
1

docker-wts-build

Docker builds via Windows Task Scheduler — an MCP server for Cline.

Problem

VS Code terminal has a ~10 minute timeout. Docker builds (especially with torch, cudnn, etc.) can take 30+ minutes. If Cline interrupts the task, the build is lost.

Solution

This MCP server schedules Docker builds as Windows Task Scheduler tasks. The build runs outside VS Code, survives interruptions, and logs progress to files for later inspection.

Installation

pip install docker-wts-build

Configuration

Set these environment variables (in cline_mcp_settings.json):

VariableRequiredDefaultDescription
DWTB_PROJECT_DIRYesPath to project with docker-compose.yml
DWTB_COMPOSE_FILENodocker-compose.ymlCompose file name
DWTB_CUSTOM_SERVICESNoSemicolon-separated service list
DWTB_LOGS_DIRNo{project_dir}/builds/logsLogs directory
DWTB_TASK_PREFIXNoDockerBuildTask name prefix
DWTB_TASK_TIMEOUT_MSNo28800000 (8h)Task timeout
DWTB_MAX_TASK_AGE_DAYSNo30Default cleanup age

Usage

As MCP server (for Cline)

Add to cline_mcp_settings.json:

{
  "mcpServers": {
    "docker-wts-build": {
      "autoApprove": ["schedule_build", "check_build", "cleanup_builds"],
      "disabled": false,
      "timeout": 120,
      "command": "python",
      "args": ["-m", "docker_wts_build"],
      "env": {
        "DWTB_PROJECT_DIR": "C:\\path\\to\\my-project",
        "DWTB_CUSTOM_SERVICES": "service-1;service-2;service-3"
      },
      "type": "stdio"
    }
  }
}

CLI mode (for testing)

# Schedule a build of all services
python -m docker_wts_build --schedule build_all

# Schedule a single service build
python -m docker_wts_build --schedule build --service my-service

# Rebuild a single service (rm + build + up)
python -m docker_wts_build --schedule rebuild --service my-service

# Check all builds
python -m docker_wts_build --check

# Check a specific build
python -m docker_wts_build --check DockerBuild_20260427_195000

# Clean up old builds (default: 30 days)
python -m docker_wts_build --cleanup

# Clean up builds older than 14 days
python -m docker_wts_build --cleanup 14

# Show version
python -m docker_wts_build --version

How it works

  • schedule_build creates a .cmd wrapper file with environment variables, registers it as a Windows Task Scheduler task, and runs it immediately.
  • The task runs builder.py outside VS Code, executing docker compose commands and logging output to files.
  • check_build queries Task Scheduler status and reads log files.
  • cleanup_builds removes old tasks and log files.

Requirements

  • Windows (uses schtasks.exe)
  • Docker Desktop
  • Python 3.10+
  • mcp package (installed automatically)

License

MIT

Keywords

docker

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts