snow-flow 11.0.0 → 11.0.1
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,51 @@
|
|
|
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. 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
|
|
33
|
+
|
|
34
|
+
COPY src/ ./src/
|
|
35
|
+
|
|
36
|
+
FROM oven/bun:1.3
|
|
37
|
+
|
|
38
|
+
WORKDIR /app
|
|
39
|
+
COPY --from=builder /app /app
|
|
40
|
+
|
|
41
|
+
# Non-root for the runtime stage. bun base image ships a `bun` user (uid 1000).
|
|
42
|
+
USER bun
|
|
43
|
+
|
|
44
|
+
ENV MCP_HTTP_PORT=8082
|
|
45
|
+
EXPOSE 8082
|
|
46
|
+
|
|
47
|
+
# Health endpoint lives on /health — docker-compose healthcheck probes it.
|
|
48
|
+
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
|
|
50
|
+
|
|
51
|
+
CMD ["bun", "run", "src/servicenow/servicenow-mcp-unified/transports/http-entry.ts"]
|