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:
Charles N Wyble
2026-02-27 11:22:07 -05:00
parent afa88abda4
commit ad9c4c450e

View File

@@ -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"]