snow-flow 11.0.1 → 11.0.3

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.
@@ -26,10 +26,11 @@ COPY package.json ./
26
26
  COPY bunfig.toml ./bunfig.toml
27
27
  COPY tsconfig.json ./
28
28
 
29
- # Install only what the MCP server + its tool catalog needs. Bun resolves
30
- # workspace-style `catalog:` specifiers; if any show up we'll regenerate
31
- # them in the published package. For now we rely on a straight install.
32
- RUN bun install --frozen-lockfile --production || bun install --production
29
+ # Install only what the MCP server + its tool catalog needs.
30
+ # `--ignore-scripts` skips snow-flow's own postinstall (which sets up the
31
+ # CLI bin shim not needed for the MCP-server runtime and the script file
32
+ # isn't copied into this build stage).
33
+ RUN bun install --production --ignore-scripts
33
34
 
34
35
  COPY src/ ./src/
35
36
 
@@ -45,7 +46,8 @@ ENV MCP_HTTP_PORT=8082
45
46
  EXPOSE 8082
46
47
 
47
48
  # Health endpoint lives on /health — docker-compose healthcheck probes it.
49
+ # bun is already in the image; wget is not, so we use bun's built-in fetch.
48
50
  HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3 \
49
- CMD wget --quiet -O /dev/null http://localhost:${MCP_HTTP_PORT}/health || exit 1
51
+ CMD bun -e "fetch('http://localhost:' + (process.env.MCP_HTTP_PORT || '8082') + '/health').then(r => process.exit(r.ok ? 0 : 1)).catch(() => process.exit(1))" || exit 1
50
52
 
51
53
  CMD ["bun", "run", "src/servicenow/servicenow-mcp-unified/transports/http-entry.ts"]