Commit 3e41a67
committed
fix: allow any JSON Schema type for outputSchema
The MCP spec does not require outputSchema to have type: 'object' at the
root level - it can be any valid JSON Schema. This allows tools to return
arrays, primitives, or other structures for list/batch responses.
inputSchema still correctly requires type: 'object' since tool inputs are
always named parameters.
Fixes #11491 parent 3c50d07 commit 3e41a67
2 files changed
+5
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
423 | | - | |
| 423 | + | |
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
428 | | - | |
| 428 | + | |
| 429 | + | |
429 | 430 | | |
430 | 431 | | |
431 | 432 | | |
432 | | - | |
| 433 | + | |
433 | 434 | | |
434 | 435 | | |
435 | 436 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1012 | 1012 | | |
1013 | 1013 | | |
1014 | 1014 | | |
1015 | | - | |
1016 | 1015 | | |
1017 | | - | |
1018 | | - | |
1019 | | - | |
1020 | | - | |
1021 | | - | |
1022 | | - | |
1023 | | - | |
1024 | | - | |
| 1016 | + | |
1025 | 1017 | | |
1026 | 1018 | | |
1027 | 1019 | | |
| |||
0 commit comments