Skip to content

[Server] Fix iterable parameters being declared as objects - #736

Open
skybleak333 wants to merge 1 commit into
modelcontextprotocol:mainfrom
skybleak333:schema-iterable-parameter
Open

skybleak333 wants to merge 1 commit into
modelcontextprotocol:mainfrom
skybleak333:schema-iterable-parameter

Conversation

@skybleak333

Copy link
Copy Markdown
Contributor

An iterable $items parameter was advertised as {"type": "object"}, so {"items": [1, 2]} got -32602 Expected object, but received array, although iterable<T> already maps to array and the argument is cast like an array one. It now gets {"type": "array"}, which means a JSON object is refused instead, as for array, hence the [BC Break] entry.

Found, fixed and written up with Claude Code.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant