You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: update MCP SDK compatibility range to >=1.11
Updates minimum MCP SDK version requirement from 1.3 to 1.11 across the project.
This ensures compatibility with newer SDK features while maintaining backward compatibility
with versions 1.11 and above.
Changes:
- Update GitHub workflow to test versions >=1.11
- Update devDependency to @modelcontextprotocol/sdk@1.11
- Update peerDependencies requirement to >=1.11
- Update compatibility module for SDK version 1.11+ support
* This module ensures compatibility with Model Context Protocol TypeScript SDK.
8
+
* MCPCat only supports MCP SDK version 1.11 and above.
9
+
*
10
+
* Version 1.11+ is required because it introduced stable APIs for:
11
+
* - Tool registration and handling
12
+
* - Request handler access patterns
13
+
* - Client version detection
14
+
* - Server info structure
15
+
*/
16
+
4
17
// Function to log compatibility information
5
18
exportfunctionlogCompatibilityWarning(): void{
6
19
writeToLog(
7
-
"MCPCat SDK Compatibility: This version supports MCP SDK versions v1.0 - v1.12",
20
+
"MCPCat SDK Compatibility: This version only supports Model Context Protocol TypeScript SDK v1.11 and above. Please upgrade if using an older version.",
8
21
);
9
22
}
10
23
@@ -30,7 +43,7 @@ export function isCompatibleServerType(
30
43
if(!server||typeofserver!=="object"){
31
44
logCompatibilityWarning();
32
45
thrownewError(
33
-
"MCPCat SDK compatibility error: Server must be an object.",
46
+
"MCPCat SDK compatibility error: Server must be an object. Ensure you're using MCP SDK v1.11 or higher.",
34
47
);
35
48
}
36
49
@@ -42,13 +55,13 @@ export function isCompatibleServerType(
42
55
){
43
56
logCompatibilityWarning();
44
57
thrownewError(
45
-
"MCPCat SDK compatibility error: High-level server must have _registeredTools object.",
58
+
"MCPCat SDK compatibility error: High-level server must have _registeredTools object. This requires MCP SDK v1.11 or higher.",
46
59
);
47
60
}
48
61
if(typeofserver.tool!=="function"){
49
62
logCompatibilityWarning();
50
63
thrownewError(
51
-
"MCPCat SDK compatibility error: High-level server must have tool() method.",
64
+
"MCPCat SDK compatibility error: High-level server must have tool() method. This requires MCP SDK v1.11 or higher.",
52
65
);
53
66
}
54
67
@@ -69,29 +82,29 @@ function validateLowLevelServer(server: any): void {
69
82
if(typeofserver.setRequestHandler!=="function"){
70
83
logCompatibilityWarning();
71
84
thrownewError(
72
-
"MCPCat SDK compatibility error: Server must have a setRequestHandler method.",
85
+
"MCPCat SDK compatibility error: Server must have a setRequestHandler method. This requires MCP SDK v1.11 or higher.",
0 commit comments