Skip to content

fix: normalize mcp tool schemas for openai compatibility#138

Merged
andreynering merged 1 commit intomainfrom
schema-fix
Feb 13, 2026
Merged

fix: normalize mcp tool schemas for openai compatibility#138
andreynering merged 1 commit intomainfrom
schema-fix

Conversation

@andreynering
Copy link
Member

Convert JSON Schema type arrays to anyOf and ensure bare array types have items, preventing OpenAI "array schema missing items" errors.

Assisted-by: Claude Opus 4.6 via Crush crush@charm.land


This is needed for Docker MCP on Crush. Without this fix, any prompt for OpenAI models fails like this:

Screenshot 2026-02-13 at 16 23 14

Convert JSON Schema type arrays to `anyOf` and ensure bare array types
have items, preventing OpenAI "array schema missing items" errors.

Assisted-by: Claude Opus 4.6 via Crush <crush@charm.land>
@andreynering andreynering self-assigned this Feb 13, 2026
@andreynering andreynering enabled auto-merge (squash) February 13, 2026 20:17
@andreynering andreynering merged commit e1c26df into main Feb 13, 2026
17 checks passed
@andreynering andreynering deleted the schema-fix branch February 13, 2026 20:18
andreynering added a commit to charmbracelet/crush that referenced this pull request Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants