Commit 3475f29
authored
feat: add MCP SDK 1.24+ compatibility (#19)
Support both (SDK 1.23-) and (SDK 1.24+) property
names in RegisteredTool to maintain backwards compatibility.
Changes:
- Update RegisteredTool type to accept either callback or handler
- Add utility functions to abstract property name detection
- Extract MCP SDK compat helpers into dedicated module
- Preserve original property name when wrapping tools
- Remove 1.24 version restriction from CI compatibility workflow
Tested with MCP SDK versions 1.23.0 and 1.24.2.1 parent 08a7cb6 commit 3475f29
File tree
7 files changed
+322
-177
lines changed- .github/workflows
- src
- modules
- tests
7 files changed
+322
-177
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
44 | | - | |
45 | | - | |
| 43 | + | |
46 | 44 | | |
47 | 45 | | |
48 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments