Skip to content

Conversation

@findleyr
Copy link
Contributor

@findleyr findleyr commented Sep 23, 2025

As discussed at length in #518, coupling our schema fields to
jsonschema.Schema limits our user's ability to use a different schema
package, and makes it impossible for our client to talk to some
backends.

This CL relaxes the type of *jsonschema.Schema fields to be of type
any, which is a breaking change but is unlikely to affect most server
code. (It is a nontrivial change for clients).

Fixes #518

As discussed at length in modelcontextprotocol#518, coupling our schema fields to
jsonschema.Schema limits our user's ability to use a different schema
package, and makes it impossible for our client to talk to some
backends.

This CL relaxes the type of `*jsonschema.Schema` fields to be of type
`any`, which is a breaking change but is unlikely to affect most server
code. (It *is* a nontrivial change for clients).

Fixes modelcontextprotocol#518
@findleyr findleyr marked this pull request as ready for review September 26, 2025 15:46
@findleyr findleyr requested a review from jba September 26, 2025 15:46
@findleyr findleyr merged commit 964574b into modelcontextprotocol:main Sep 26, 2025
5 checks passed
@slacaze slacaze mentioned this pull request Sep 29, 2025
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.

Proposal: decouple the JSON schema representation

2 participants