From f45a81b65675f65d4bbd48e53a657ca91bb3011e Mon Sep 17 00:00:00 2001 From: Grimmer Kang Date: Wed, 13 Aug 2025 14:31:56 +0800 Subject: [PATCH] fix: upgrade @modelcontextprotocol/sdk to v1.17.2 for transport handling fix Upgrades the MCP SDK to version 1.17.2 which includes a critical fix for transport handling in multi-client scenarios. The previous SDK version had a bug where the Protocol class would overwrite its transport reference, causing responses to be sent to the wrong client when multiple clients were connected. This was particularly problematic for StreamableHTTP transport in production environments. The fix ensures that each request maintains its proper transport context through closure capture, guaranteeing responses are sent to the correct client. All existing tests pass with the new version, confirming compatibility. Related: modelcontextprotocol/typescript-sdk#820 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0003c11..11b5176 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,7 @@ "zod": "^3.25.50" }, "peerDependencies": { - "@modelcontextprotocol/sdk": "^1.12.0", + "@modelcontextprotocol/sdk": "^1.17.2", "next": ">=13.0.0" }, "peerDependenciesMeta": {