feat: always-on remote node (Docker + MCP over HTTP) with TLS/token and CI image build #8

Closed
opened 2026-11-04 06:57:09 +00:00 by david · 0 comments
Owner

Deploy a headless knox replica on dhg.lol so agents keep their memory when the laptop is off.

Scope

  • Transport: MCP over Streamable HTTP (official modelcontextprotocol/go-sdk), replacing the mark3labs stdio-only server. Bearer token + TLS; self-signed cert so no public DNS name is required.
  • Daemon hygiene: SIGTERM shutdown, --version with VCS revision, KNOX_LOCAL_SOURCES=none for replicate-only nodes, no Obsidian vault adoption on a headless host.
  • Packaging: multi-stage Dockerfile (static, non-root, /data volume).
  • Deploy: tf-net/apps/knox via the shared casaos-app module (compose + SOPS + restic).
  • CI: Gitea workflow builds the image on the host daemon through the runner's docker socket.

Related

  • Continues PR #5 (HTTP hardening), branched from fix/review-hardening-2.
  • Closes #2 (Prometheus metrics are live since M5 of the gossip spec).

Verification

  • go test ./..., go vet, gofmt
  • scripts/conformance.sh against the baseline
  • stdio + HTTP smoke test (30 tools, typed schemas)
Deploy a headless knox replica on `dhg.lol` so agents keep their memory when the laptop is off. ## Scope - **Transport**: MCP over Streamable HTTP (official `modelcontextprotocol/go-sdk`), replacing the mark3labs stdio-only server. Bearer token + TLS; self-signed cert so no public DNS name is required. - **Daemon hygiene**: SIGTERM shutdown, `--version` with VCS revision, `KNOX_LOCAL_SOURCES=none` for replicate-only nodes, no Obsidian vault adoption on a headless host. - **Packaging**: multi-stage Dockerfile (static, non-root, `/data` volume). - **Deploy**: `tf-net/apps/knox` via the shared `casaos-app` module (compose + SOPS + restic). - **CI**: Gitea workflow builds the image on the host daemon through the runner's docker socket. ## Related - Continues PR #5 (HTTP hardening), branched from `fix/review-hardening-2`. - Closes #2 (Prometheus metrics are live since M5 of the gossip spec). ## Verification - `go test ./...`, `go vet`, `gofmt` - `scripts/conformance.sh` against the baseline - stdio + HTTP smoke test (30 tools, typed schemas)
david closed this issue 2026-11-05 02:14:34 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: david/knox#8