From ad9c4c450ece34df606fd8b4d7da6b8dd4ba39f3 Mon Sep 17 00:00:00 2001 From: Charles N Wyble Date: Fri, 27 Feb 2026 11:22:07 -0500 Subject: [PATCH] fix(discourse-mcp): attempt SDK version pinning (still blocked) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- dockerfiles/discourse-mcp/Dockerfile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/dockerfiles/discourse-mcp/Dockerfile b/dockerfiles/discourse-mcp/Dockerfile index 61f5ba2..c071253 100644 --- a/dockerfiles/discourse-mcp/Dockerfile +++ b/dockerfiles/discourse-mcp/Dockerfile @@ -2,12 +2,17 @@ FROM node:24-alpine 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 . . -RUN npm run build +RUN pnpm build CMD ["node", "dist/index.js"]