Attempted to fix TypeScript TS2345 error by: - Switching to node:24-alpine with pnpm - Pinning @modelcontextprotocol/sdk@^1.23.0 Status: BLOCKED - upstream code incompatibility in src/tools/remote/tool_exec_api.ts:58 The code uses incompatible SDK types. Cannot fix without upstream changes. 💘 Generated with Crush Assisted-by: GLM-5 via Crush <crush@charm.land>
19 lines
359 B
Docker
19 lines
359 B
Docker
FROM node:24-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
# Install pnpm as upstream requires
|
|
RUN corepack enable && corepack prepare pnpm@10.14.0 --activate
|
|
|
|
COPY package.json pnpm-lock.yaml ./
|
|
|
|
# Install dependencies with pinned SDK version
|
|
RUN pnpm add @modelcontextprotocol/sdk@^1.23.0
|
|
RUN pnpm install --frozen-lockfile
|
|
|
|
COPY . .
|
|
|
|
RUN pnpm build
|
|
|
|
CMD ["node", "dist/index.js"]
|