Commit f6ffc37
fix: add .default([]) to content arrays and fix test capabilities
- Add transformArrayDefaults to schema generation for backwards compatibility
- CallToolResultSchema.content and ToolResultContentSchema.content now default to []
- Fix mcp.test.ts server capabilities to use correct tasks.requests.tools.call structure
This fixes test failures caused by stricter schema validation requiring content arrays.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 0ee2baf commit f6ffc37
File tree
3 files changed
+55
-4
lines changed- scripts
- src/generated
- test/server
3 files changed
+55
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
92 | 102 | | |
93 | 103 | | |
94 | 104 | | |
| |||
616 | 626 | | |
617 | 627 | | |
618 | 628 | | |
| 629 | + | |
619 | 630 | | |
620 | 631 | | |
621 | 632 | | |
| |||
740 | 751 | | |
741 | 752 | | |
742 | 753 | | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
743 | 787 | | |
744 | 788 | | |
745 | 789 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2259 | 2259 | | |
2260 | 2260 | | |
2261 | 2261 | | |
2262 | | - | |
| 2262 | + | |
| 2263 | + | |
2263 | 2264 | | |
2264 | 2265 | | |
2265 | 2266 | | |
| |||
2389 | 2390 | | |
2390 | 2391 | | |
2391 | 2392 | | |
2392 | | - | |
| 2393 | + | |
| 2394 | + | |
| 2395 | + | |
| 2396 | + | |
2393 | 2397 | | |
2394 | 2398 | | |
2395 | 2399 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6456 | 6456 | | |
6457 | 6457 | | |
6458 | 6458 | | |
6459 | | - | |
6460 | | - | |
| 6459 | + | |
| 6460 | + | |
| 6461 | + | |
| 6462 | + | |
| 6463 | + | |
6461 | 6464 | | |
6462 | 6465 | | |
6463 | 6466 | | |
| |||
0 commit comments