fix(discourse-mcp): attempt SDK version pinning (still blocked)
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>
This commit is contained in:
@@ -2,12 +2,17 @@ FROM node:24-alpine
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY package.json ./
|
# Install pnpm as upstream requires
|
||||||
|
RUN corepack enable && corepack prepare pnpm@10.14.0 --activate
|
||||||
|
|
||||||
RUN npm install
|
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 . .
|
COPY . .
|
||||||
|
|
||||||
RUN npm run build
|
RUN pnpm build
|
||||||
|
|
||||||
CMD ["node", "dist/index.js"]
|
CMD ["node", "dist/index.js"]
|
||||||
|
|||||||
Reference in New Issue
Block a user