Commit 9503eed
committed
fix: Remove unsupported 'version' parameter from FastMCP initialization
Remove version parameter that causes TypeError in MCP SDK 1.12.3+
Refactor FastMCP initialization to use standard pattern
Extract instructions and dependencies as constants
Add create_server() function for better code organization
Maintain full compatibility with existing functionality
Fixes compatibility issue: TypeError: FastMCP.init() got an unexpected keyword argument 'version'
This occurs because the current MCP SDK (1.12.3+) does not support the version parameter in FastMCP initialization.1 parent e6c4675 commit 9503eed
File tree
1 file changed
+17
-9
lines changed- src/amazon-sns-sqs-mcp-server/awslabs/amazon_sns_sqs_mcp_server
1 file changed
+17
-9
lines changedLines changed: 17 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| 22 | + | |
| 23 | + | |
23 | 24 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
31 | 40 | | |
32 | 41 | | |
33 | 42 | | |
| |||
51 | 60 | | |
52 | 61 | | |
53 | 62 | | |
54 | | - | |
55 | 63 | | |
56 | 64 | | |
0 commit comments