fix(ci): update MCP SDK version check from 1.20.1 to 1.27.1

The dependency-check workflow was hardcoded to expect MCP SDK 1.20.1,
causing CI failure after the intentional upgrade to 1.27.1.

Conceived by Romuald Członkowski - https://www.aiadvisors.pl/en

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
czlonkowski
2026-03-14 13:33:42 +01:00
parent 6fc956f77e
commit fb0a501f1c

View File

@@ -77,15 +77,15 @@ jobs:
echo "Zod version: $ZOD_VERSION" echo "Zod version: $ZOD_VERSION"
echo "" echo ""
# Check MCP SDK version - must be exactly 1.20.1 # Check MCP SDK version - must be exactly 1.27.1
if [[ "$SDK_VERSION" == "not found" ]]; then if [[ "$SDK_VERSION" == "not found" ]]; then
echo "❌ FAILED: Could not determine MCP SDK version!" echo "❌ FAILED: Could not determine MCP SDK version!"
echo " The dependency may not have been installed correctly." echo " The dependency may not have been installed correctly."
exit 1 exit 1
fi fi
if [[ "$SDK_VERSION" != "1.20.1" ]]; then if [[ "$SDK_VERSION" != "1.27.1" ]]; then
echo "❌ FAILED: MCP SDK version mismatch!" echo "❌ FAILED: MCP SDK version mismatch!"
echo " Expected: 1.20.1" echo " Expected: 1.27.1"
echo " Got: $SDK_VERSION" echo " Got: $SDK_VERSION"
echo "" echo ""
echo "This can cause runtime errors. See issues #440, #444, #446, #447, #450" echo "This can cause runtime errors. See issues #440, #444, #446, #447, #450"
@@ -100,7 +100,7 @@ jobs:
exit 1 exit 1
fi fi
if [[ "$ZOD_VERSION" =~ ^4\. ]]; then if [[ "$ZOD_VERSION" =~ ^4\. ]]; then
echo "❌ FAILED: Zod v4 detected - incompatible with MCP SDK 1.20.1!" echo "❌ FAILED: Zod v4 detected - incompatible with MCP SDK 1.27.1!"
echo " Expected: 3.x" echo " Expected: 3.x"
echo " Got: $ZOD_VERSION" echo " Got: $ZOD_VERSION"
echo "" echo ""