check_schema_version
CommandCheck the Flyway schema version of the SQLite database on a Docker volume
Build Docker image and start/redeploy the MCP Task Orchestrator container, reusing the last-used config by default
> /plugin marketplace add jpicklyk/task-orchestrator> /plugin install task-orchestrator@task-orchestrator-marketplace
description: Build Docker image and start/redeploy the MCP Task Orchestrator container, reusing the last-used config by default
Build the MCP Task Orchestrator Docker image and start (or redeploy) the detached HTTP container that the active `.mcp.json` connects to. The Dockerfile handles its own Gradle build internally — no local build step needed.
On every deploy the command **detects the current container's settings and defaults to reusing them**, so you never have to re-specify things like `API_AUTH_MODE=none` after the first time. You can always review or change them via the chooser.
**Usage:** `/deploy_to_docker [image-tag] [--build-only] [--run] [--reuse]`
**Default (no flags):** Build the image, detect the existing container's config, then present a **[Reuse / Reconfigure]** chooser. Reuse redeploys with the same settings; Reconfigure walks the REST-mode / config-mount prompts. Matches the active `.mcp.json` (`type: http`, `url: http://localhost:3001/mcp`) — reachable after `/mcp reconnect mcp-task-orchestrator`.
**Arguments:**
**Examples:**
---
docker build --target runtime-current -t <image-tag> .
Multi-stage build compiles from source — no prior `./gradlew build`.
docker images | grep task-orchestrator
Report image ID and size.
**If `--build-only`:** skip to Step 5 — no container.
Read what the existing container was last started with (this is the source of truth for a redeploy — run it **before** removing the container):
# REST env + debug
docker inspect mcp-task-orchestrator-http --format '{{range .Config.Env}}{{println .}}{{end}}' 2>/dev/null \
| grep -E 'API_ENABLED|API_AUTH_MODE|API_ALLOW_UNAUTHENTICATED|MCP_ALLOW_UNAUTHENTICATED|UPGRADE_BACKUP|API_TOKENS_PATH|LOG_LEVEL' || echo '(no existing container)'
# config mount present?
docker inspect mcp-task-orchestrator-http --format '{{range .Mounts}}{{.Source}} -> {{.Destination}}{{println}}{{end}}' 2>/dev/null \
| grep -q '/project/.taskorchestrator' && echo 'config-mount: floor' || echo 'config-mount: none'Derive the **REST mode** from the env: `API_ENABLED=false` → **off**; `API_ENABLED=true` + `API_AUTH_MODE=none` → **unauthenticated**; `+ API_AUTH_MODE=bearer` → **bearer**. REST **off** over HTTP also requires `MCP_ALLOW_UNAUTHENTICATED=true`: a detected container with `API_ENABLED=false` but without it is flagged in the summary, because a 4.0 image refuses to start in that combination (`MCP_AUTH`; see [fleet deployment](../../current/docs/fleet-deployment.md)). Reuse then adds the missing flag.
If no container exists, fall back (in order) to: the persisted file `${HOME}/.taskorchestrator/deploy.env` (see 4d); else the **defaults** — HTTP transport, REST **off** (`-e API_ENABLED=false -e MCP_ALLOW_UNAUTHENTICATED=true`), **floor** config mount, loopback `127.0.0.1:3001`, debug off.
Build a one-line `DETECTED` summary, e.g. `HTTP · REST=unauthenticated (local) · config-mount=none · debug=off · 127.0.0.1:3001 · image=task-orchestrator:current`.
AskUserQuestion(questions: [{
question: "Detected config: <DETECTED>. Reuse it, or reconfigure?",
header: "Deploy config",
multiSelect: false,
options: [
{ label: "Reuse detected settings", description: "Redeploy with the settings shown above — no further prompts" },
{ label: "Reconfigure", description: "Choose transport / REST API mode / config mount" }
]
}])Reuse → 4d. Reconfigure → 4c.
**Transport** (ask only on `--run`; the default/reconfigure path assumes **HTTP**, since `.mcp.json` uses HTTP):
AskUserQuestion(questions: [{
question: "Which transport mode?", header: "Transport", multiSelect: false,
options: [
{ label: "HTTP (Recommended)", description: "Serves /mcp on 127.0.0.1:3001, detached daemon — matches .mcp.json" },
{ label: "STDIO", description: "stdin/stdout, no port; interactive -i run (does not match the http .mcp.json)" }
]
}])For **STDIO**, use the legacy interactive run (`docker run --rm -i -v mcp-task-data:/app/data [-v <pwd>/deploy/global-config/.taskorchestrator:/project/.taskorchestrator:ro -e AGENT_CONFIG_DIR=/project] [-e LOG_LEVEL=DEBUG -e DATABASE_SHOW_SQL=true] <image-tag>`) and skip the HTTP questions below.
For **HTTP**, ask:
**REST API mode** — pre-note the detected value as recommended:
AskUserQuestion(questions: [{
question: "REST API mode? (the /api/v1 layer used by config-sync)", header: "REST API", multiSelect: false,
options: [
{ label: "Off (MCP only)", description: "API_ENABLED=false + MCP_ALLOW_UNAUTHENTICATED=true — the /mcp endpoint oServer-enforced workflow discipline for AI agents. Prompt-based frameworks hope the LLM follows instructions. This one blocks the call if it doesn't.
Check the Flyway schema version of the SQLite database on a Docker volume
Reviewed all command files in `.claude/commands/analysis/` directory to ensure proper usage of: - `mcp__claude-flow__*` tools…
This compatibility command keeps `/oh-my-claudecode:ask` available without loading the full `ask` skill description in every…