hack/

directory
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2026 License: Apache-2.0

README

hack/: repository automation scripts

Scripts are grouped by purpose. See the layout below.

Layout

hack/
  boilerplate.go.txt          # Go codegen header template
  ci/                         # CI and pre-commit helpers
    go-test.sh
    smoke-ci.sh
    staticcheck.sh
  dev/                        # Workstation / contributor setup
    deps.sh
    dev-setup.sh
  deploy/
    mcpruntime-org/           # Public k3s cluster (mcpruntime.org)
      backup.sh              # Full online K3s/API/local-path recovery bundle
      setup.sh                # Full platform install
      clean.sh                # Wipe MCP Runtime namespaces (with backup)
      restore.sh              # Re-apply TLS/OIDC/bootstrap backups
      rollout.sh              # Build/push Sentinel API+UI only
      multitenancy-test.sh    # Platform API multi-tenant smoke test
      lib/                    # Shared bash helpers (env, backup, clean, registry)

mcpruntime.org k3s deployment

Configure config/deployments/mcpruntime-org.env (copy from .example), then:

hack/deploy/mcpruntime-org/backup.sh --setup
hack/deploy/mcpruntime-org/setup.sh
hack/deploy/mcpruntime-org/clean.sh --yes --wait
hack/deploy/mcpruntime-org/rollout.sh
PLATFORM_URL=... MCP_URL=... REGISTRY_HOST=... hack/deploy/mcpruntime-org/multitenancy-test.sh

Use backup.sh --full --online-copy before destructive cleanup or for full node recovery; see docs/reference-deployment.md for coverage and limits.

See docs/reference-deployment.md for the full runbook.

CI / dev

hack/ci/staticcheck.sh ./...
hack/ci/smoke-ci.sh
hack/dev/deps.sh check
hack/dev/dev-setup.sh all

Directories

Path Synopsis
Command e2e-image-cache ensures a local Docker image via content-hash GHCR reuse (pull on hit, build+optional push on miss).
Command e2e-image-cache ensures a local Docker image via content-hash GHCR reuse (pull on hit, build+optional push on miss).
platformmanifest command
Command platformmanifest prints the platform release component manifest (platform-manifest.json) for a release version, generated from the CLI's component catalog so `mcp-runtime update` and releases stay in sync.
Command platformmanifest prints the platform release component manifest (platform-manifest.json) for a release version, generated from the CLI's component catalog so `mcp-runtime update` and releases stay in sync.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL