Skip to content

[Server] Leave non-finite parameter defaults out of the input schema - #759

Open
andre-schade wants to merge 1 commit into
modelcontextprotocol:mainfrom
andre-schade:fix/non-finite-default
Open

andre-schade wants to merge 1 commit into
modelcontextprotocol:mainfrom
andre-schade:fix/non-finite-default

Conversation

@andre-schade

Copy link
Copy Markdown

Fixes #756

A parameter default of INF, -INF or NAN was copied into the schema's "default", which cannot be encoded as JSON. Since tools/list is one response, that single tool made the whole list fail with -32603.

Non-finite float defaults are now left out of the schema. Finite defaults are unchanged.

🤖 Generated 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.

[Server] A float $x = INF default makes tools/list fail for all tools

2 participants