feat: Atomic update mcp image

This commit is contained in:
Ran
2026-02-05 02:40:10 +08:00
parent dd6d570eba
commit cb36b68ee4
12 changed files with 300 additions and 19 deletions
+32
View File
@@ -9,6 +9,8 @@ node = "25"
bun = "latest"
# pnpm for workspace management
pnpm = "10"
# Lima for macOS
lima = { version = "latest", platform = "darwin" }
[task_config]
dir = "{{cwd}}"
@@ -24,6 +26,24 @@ run = "pnpm install"
description = "Install Go dependencies"
run = "go mod download"
[tasks.lima-up]
run = """
if [ "$(uname -s)" = "Darwin" ]; then
limactl start default
fi
"""
[tasks.lima-down]
run = """
if [ "$(uname -s)" = "Darwin" ]; then
limactl stop default
fi
"""
[tasks.containerd-install]
description = "Install containerd or verify in Lima"
run = "scripts/containerd-install.sh"
[tasks.swagger-generate]
description = "Generate Swagger documentation"
run = "cd internal/handlers && go generate"
@@ -45,6 +65,18 @@ description = "Install CLI"
depends = ["//:pnpm-install"]
run = "cd packages/cli && npm install -g"
[tasks.mcp-image-up]
description = "Build MCP container image"
run = "scripts/mcp-image-up.sh"
[tasks.mcp-image-down]
description = "Remove MCP container image"
run = "scripts/mcp-image-down.sh"
[tasks.compile-mcp]
description = "Build MCP binary into /app and signal container"
run = "scripts/compile-mcp.sh"
[tasks.dev]
description = "Start development environment"
depends = [