Commit 8042e68
fix(mcp-core): disable structuredOutputs for embedded agents (#655)
Add structuredOutputs: false alongside strictJsonSchema: false to fully
disable OpenAI's strict mode for both tool parameter schemas and output
schemas. This ensures Zod's .optional() and .nullable() work correctly
in embedded agents (search_events, search_issues).
Previously only strictJsonSchema: false was set, which allowed optional
output fields but still enforced strict mode on tool parameter schemas.
Fixes #623
Co-authored-by: Claude Code <[email protected]>1 parent 9468bf3 commit 8042e68
1 file changed
+12
-6
lines changedLines changed: 12 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
53 | 58 | | |
54 | 59 | | |
55 | 60 | | |
56 | | - | |
| 61 | + | |
57 | 62 | | |
58 | 63 | | |
59 | 64 | | |
| 65 | + | |
60 | 66 | | |
61 | 67 | | |
62 | 68 | | |
| |||
0 commit comments