feat: always-on remote node — MCP over HTTP, TLS/token, Docker, CI, sqlc #9
Reference in New Issue
Block a user
Delete Branch "feat/remote-node"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Deploys knox as a headless, always-on replica so agents keep their memory when the laptop is off.
Closes #8. Supersedes #5 (its hardening commit is merged in here; close #5 after this lands).
What changed
MCP transport + SDK
mark3labs/mcp-gov0.17 (stdio only, five releases behind) to the officialmodelcontextprotocol/go-sdkv1.8. Tool inputs are typed structs, so schemas are generated instead of hand-built.knox mcp --http(Streamable HTTP). stdio remains the default.Transport security without a public name
KNOX_AUTH_TOKENguards gossip and MCP HTTP;KNOX_TLS_CERT/KEYserve TLS;knox tls initmints a self-signed cert whose SANs are whatever addresses clients dial. Verified: 401 without the token, 200 with, cert valid for the overlay IP.Daemon hygiene
--versionreports the VCS revision.KNOX_LOCAL_SOURCES=nonemakes a node ingest nothing but still derive.Deployment topology fixes (all found by actually running a replica)
KNOX_LISTEN_ADDRsplit fromKNOX_PEER_ADDR: a container cannot bind the host's overlay IP, and previously the gossip server silently failed to start.entriesempty on a push-only node.Packaging + CI
/datavolume).:latest+:<sha>, and restarts the stack when installed. BuildKit cache mounts keep module downloads warm.sqlc pilot
internal/db/schema.sql(embedded); read paths behind the MCP tools are generated.entries.created_atexisted only as a runtimeALTER. It is now declared in the schema, andsqlcdb_pilot_test.gofails if generated code disagrees withdb.Open.CREATE VIRTUAL TABLE, soMATCH/bm25cannot be generated.Verification
go vet ./...,go test ./...,gofmtcleanscripts/conformance.sh— official MCP suite, exit 0 againstconformance-baseline.yml(documents the capabilities knox does not implement: resources, prompts, completions, fixture tools)Deploy
Infrastructure lives in
tf-net/apps/knox(separate repo); this branch is what is currently running in production.927e61fa45to24d28c4cc5