From 7d9b45688718cdb186c2018d85f0acd19fb48148 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romuald=20Cz=C5=82onkowski?= <56956555+czlonkowski@users.noreply.github.com> Date: Sat, 29 Nov 2025 10:13:16 +0100 Subject: [PATCH] fix: pin MCP SDK version in Docker build files (v2.27.1) (#456) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: pin MCP SDK version in Docker build files (#454) The Docker image 2.27.0 was missing the Zod fix from #450 because: - package.runtime.json had @modelcontextprotocol/sdk@^1.13.2 - Dockerfile builder had @modelcontextprotocol/sdk@^1.12.1 Both now use the pinned version 1.20.1 (no caret) to match package.json. Also pinned zod@3.24.1 in Dockerfile for consistency. Fixes #454 Conceived by Romuald Członkowski - https://www.aiadvisors.pl/en 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude * chore: bump version to 2.27.1 and update CHANGELOG - Version bump from 2.27.0 to 2.27.1 - Added CHANGELOG entry for #454 fix (Docker SDK version) - Added missing CHANGELOG entry for 2.27.0 (n8n_deploy_template) Conceived by Romuald Członkowski - https://www.aiadvisors.pl/en 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --------- Co-authored-by: Claude --- CHANGELOG.md | 61 ++++++++++++++++++++++++++++++++++++++++++++ Dockerfile | 4 +-- package.json | 2 +- package.runtime.json | 4 +-- 4 files changed, 66 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 99f3710..d7fd8ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,67 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [2.27.1] - 2025-11-29 + +### 🐛 Bug Fixes + +**Issue #454: Docker Image Missing Zod Fix from #450** + +Fixed Docker image build that was missing the pinned MCP SDK version, causing `n8n_create_workflow` Zod validation errors to persist in the 2.27.0 Docker image. + +#### Root Cause + +Two files were not updated when #450 pinned the SDK version in `package.json`: +- `package.runtime.json` had `"@modelcontextprotocol/sdk": "^1.13.2"` instead of `"1.20.1"` +- `Dockerfile` builder stage had `@modelcontextprotocol/sdk@^1.12.1` hardcoded + +The Docker runtime stage uses `package.runtime.json` (not `package.json`), and the builder stage has hardcoded dependency versions. + +#### Changes + +- **package.runtime.json**: Updated SDK to pinned version `"1.20.1"` (no caret) +- **Dockerfile**: Updated builder stage SDK to `@1.20.1` and pinned `zod@3.24.1` + +#### Impact + +- Docker images now include the correct MCP SDK version with Zod fix +- `n8n_create_workflow` and other workflow tools work correctly in Docker deployments +- No changes to functionality - this is a build configuration fix + +Fixes #454 + +**Conceived by Romuald Członkowski - [AiAdvisors](https://www.aiadvisors.pl/en)** + +## [2.27.0] - 2025-11-28 + +### ✨ Features + +**n8n_deploy_template Tool** + +Added new tool for one-click deployment of n8n.io workflow templates directly to your n8n instance. + +#### Key Features + +- Fetches templates from n8n.io by ID +- Automatically upgrades node typeVersions to latest supported +- Validates workflow before deployment +- Lists required credentials for configuration +- Strips credential references (user configures in n8n UI) + +#### Usage + +```javascript +n8n_deploy_template({ + templateId: 2639, // Required: template ID from n8n.io + name: "My Custom Name", // Optional: custom workflow name + autoUpgradeVersions: true, // Default: upgrade node versions + validate: true, // Default: validate before deploy + stripCredentials: true // Default: remove credential refs +}) +``` + +**Conceived by Romuald Członkowski - [AiAdvisors](https://www.aiadvisors.pl/en)** + ## [2.26.5] - 2025-11-27 ### 🔧 Fixed diff --git a/Dockerfile b/Dockerfile index bfd4787..6963048 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,9 +13,9 @@ COPY tsconfig*.json ./ RUN --mount=type=cache,target=/root/.npm \ echo '{}' > package.json && \ npm install --no-save typescript@^5.8.3 @types/node@^22.15.30 @types/express@^5.0.3 \ - @modelcontextprotocol/sdk@^1.12.1 dotenv@^16.5.0 express@^5.1.0 axios@^1.10.0 \ + @modelcontextprotocol/sdk@1.20.1 dotenv@^16.5.0 express@^5.1.0 axios@^1.10.0 \ n8n-workflow@^1.96.0 uuid@^11.0.5 @types/uuid@^10.0.0 \ - openai@^4.77.0 zod@^3.24.1 lru-cache@^11.2.1 @supabase/supabase-js@^2.57.4 + openai@^4.77.0 zod@3.24.1 lru-cache@^11.2.1 @supabase/supabase-js@^2.57.4 # Copy source and build COPY src ./src diff --git a/package.json b/package.json index 8441c7e..65aaf00 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "n8n-mcp", - "version": "2.27.0", + "version": "2.27.1", "description": "Integration between n8n workflow automation and Model Context Protocol (MCP)", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/package.runtime.json b/package.runtime.json index c8714fa..6ae0c4d 100644 --- a/package.runtime.json +++ b/package.runtime.json @@ -1,10 +1,10 @@ { "name": "n8n-mcp-runtime", - "version": "2.26.4", + "version": "2.27.1", "description": "n8n MCP Server Runtime Dependencies Only", "private": true, "dependencies": { - "@modelcontextprotocol/sdk": "^1.13.2", + "@modelcontextprotocol/sdk": "1.20.1", "@supabase/supabase-js": "^2.57.4", "express": "^5.1.0", "express-rate-limit": "^7.1.5",