Skip to content

The open-source agent harness - the runtime layer that turns an LLM into a working agent.

Fix container dependency installation.

debajyoti-truefoundrya5bdd36112bd
diff --git a/packages/server/.env.example b/packages/server/.env.example
index f9c44d191..7ac6e8eed 100644
--- a/packages/server/.env.example
+++ b/packages/server/.env.example
@@ -35,7 +35,7 @@ MODEL_API_KEY=<your-api-key>
# every MCP server in mcp.yaml; MCP_{NAME}_HEADERS overrides per server.
# Example: MCP server "github" -> MCP_GITHUB_HEADERS
# ---------------------------------------------------------------------------
-# MCP_HEADERS={}
+# MCP_HEADERS={"Authorization":"Bearer <mcp-token>"}
# MCP_GITHUB_HEADERS={"Authorization":"Bearer <github-mcp-token>"}
# ---------------------------------------------------------------------------
diff --git a/packages/server/Dockerfile b/packages/server/Dockerfile
index 9622adf44..c0c709bd9 100644
--- a/packages/server/Dockerfile
+++ b/packages/server/Dockerfile
@@ -19,6 +19,10 @@ FROM base AS builder
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc tsconfig.base.json ./
COPY packages/harness/package.json packages/harness/package.json
COPY packages/server/package.json packages/server/package.json
+# The root postinstall hook runs build:gen in @truefoundry/utils, which needs
+# the generator script and the sandbox Python sources it inlines.
+COPY packages/harness/scripts packages/harness/scripts
+COPY packages/harness/src/core/sandbox/scripts packages/harness/src/core/sandbox/scripts
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
COPY packages/harness packages/harness
COPY packages/server packages/server
@@ -31,6 +35,9 @@ FROM base AS prod-deps
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc ./
COPY packages/harness/package.json packages/harness/package.json
COPY packages/server/package.json packages/server/package.json
+# Same as builder: the root postinstall hook needs the build:gen inputs.
+COPY packages/harness/scripts packages/harness/scripts
+COPY packages/harness/src/core/sandbox/scripts packages/harness/src/core/sandbox/scripts
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile --prod
# ---------------------------------------------------------------------------