snow-flow 11.0.0 → 11.0.2

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.
@@ -0,0 +1,52 @@
1
+ # MCP HTTP Server image
2
+ # ---------------------------------------------------------------------------
3
+ # Builds a Bun-based container that serves the ServiceNow unified MCP
4
+ # catalog over streamable HTTP. Ships with a generic HTTP-callback resolver
5
+ # so tenant credential resolution stays in the deployment that owns the
6
+ # tenant DB (see transports/http-resolver.ts + http-entry.ts).
7
+ #
8
+ # Env at runtime:
9
+ # MCP_RESOLVER_URL — full URL of the downstream resolver endpoint
10
+ # MCP_INTERNAL_TOKEN — shared secret (X-Internal-Auth)
11
+ # MCP_HTTP_PORT — listen port, default 8082
12
+ #
13
+ # Build (from repo root):
14
+ # docker build -f packages/opencode/Dockerfile.mcp-http -t snow-flow-mcp-http packages/opencode
15
+ #
16
+ # Or use `.github/workflows/publish-mcp-http-image.yml` which pushes to
17
+ # ghcr.io/groeimetai/snow-flow-mcp-http:latest.
18
+
19
+ FROM oven/bun:1.3 AS builder
20
+
21
+ WORKDIR /app
22
+
23
+ # bun.lockb is at the repo root in this monorepo, but the opencode package
24
+ # has its own package.json with all the deps needed for the MCP server.
25
+ COPY package.json ./
26
+ COPY bunfig.toml ./bunfig.toml
27
+ COPY tsconfig.json ./
28
+
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
34
+
35
+ COPY src/ ./src/
36
+
37
+ FROM oven/bun:1.3
38
+
39
+ WORKDIR /app
40
+ COPY --from=builder /app /app
41
+
42
+ # Non-root for the runtime stage. bun base image ships a `bun` user (uid 1000).
43
+ USER bun
44
+
45
+ ENV MCP_HTTP_PORT=8082
46
+ EXPOSE 8082
47
+
48
+ # Health endpoint lives on /health — docker-compose healthcheck probes it.
49
+ HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3 \
50
+ CMD wget --quiet -O /dev/null http://localhost:${MCP_HTTP_PORT}/health || exit 1
51
+
52
+ CMD ["bun", "run", "src/servicenow/servicenow-mcp-unified/transports/http-entry.ts"]