@testdriverai/agent 7.11.162-test → 7.11.163-test
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/mcp-server/Dockerfile
CHANGED
|
@@ -1,25 +1,39 @@
|
|
|
1
|
+
# Hosted TestDriver MCP server (Streamable HTTP + Auth0 OAuth).
|
|
2
|
+
#
|
|
3
|
+
# Build context is the repo root. The server is not self-contained: at runtime
|
|
4
|
+
# it reads ../../package.json (the SDK version), imports ../../../sdk.js when a
|
|
5
|
+
# session starts, and ../../lib/init-project.js for the init tool. So the image
|
|
6
|
+
# keeps the SDK layout intact (/app/sdk/mcp-server inside /app/sdk) and installs
|
|
7
|
+
# both the SDK's and the MCP server's production dependencies.
|
|
8
|
+
|
|
1
9
|
FROM node:22-alpine AS builder
|
|
2
10
|
|
|
3
|
-
WORKDIR /app
|
|
11
|
+
WORKDIR /app/sdk/mcp-server
|
|
4
12
|
|
|
5
13
|
COPY sdk/mcp-server/package*.json ./
|
|
6
14
|
RUN npm ci --ignore-scripts
|
|
7
15
|
|
|
8
16
|
COPY sdk/mcp-server/ ./
|
|
9
|
-
RUN npm run build
|
|
17
|
+
RUN npm run build
|
|
10
18
|
|
|
11
19
|
FROM node:22-alpine AS runtime
|
|
12
20
|
|
|
13
|
-
WORKDIR /app
|
|
21
|
+
WORKDIR /app/sdk
|
|
22
|
+
COPY sdk/package*.json ./
|
|
23
|
+
RUN npm ci --ignore-scripts --omit=dev
|
|
14
24
|
|
|
25
|
+
WORKDIR /app/sdk/mcp-server
|
|
15
26
|
COPY sdk/mcp-server/package*.json ./
|
|
16
|
-
RUN npm ci --ignore-scripts --omit
|
|
27
|
+
RUN npm ci --ignore-scripts --omit=dev
|
|
28
|
+
|
|
29
|
+
WORKDIR /app/sdk
|
|
30
|
+
COPY sdk/ ./
|
|
31
|
+
COPY --from=builder /app/sdk/mcp-server/dist ./mcp-server/dist
|
|
17
32
|
|
|
18
|
-
|
|
33
|
+
WORKDIR /app/sdk/mcp-server
|
|
19
34
|
|
|
20
35
|
ENV NODE_ENV=production
|
|
21
36
|
ENV PORT=8080
|
|
22
|
-
# Hosted Streamable HTTP transport with Auth0 OAuth enforcement, bound for Fly.
|
|
23
37
|
ENV TD_MCP_TRANSPORT=http
|
|
24
38
|
ENV TD_MCP_AUTH=oauth
|
|
25
39
|
ENV TD_MCP_HOST=0.0.0.0
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Overrides the root .dockerignore (which excludes sdk/) for the MCP server image.
|
|
2
|
+
# Only the SDK package is needed; everything else in the repo is excluded.
|
|
3
|
+
*
|
|
4
|
+
!sdk
|
|
5
|
+
**/node_modules
|
|
6
|
+
**/.env
|
|
7
|
+
sdk/docs
|
|
8
|
+
sdk/examples
|
|
9
|
+
sdk/test
|
|
10
|
+
sdk/vscode-extension
|
|
11
|
+
sdk/mcp-server/dist
|