Skip to content

Conversation

@jba
Copy link
Collaborator

@jba jba commented Dec 17, 2025

Some MCP clients want a "properties" keyword on a tool schema, even if it is empty.
For an example, see golang/go#76777.

This PR makes an empty map in Schema.Properties marshal as "{}" instead of omitting it.

Technically, this is a breaking change, but it is extremely unlikely that it will matter to anyone (except in a good way).

Some MCP clients want a "properties" keyword on a tool schema, even
if it is empty.
For an example, see golang/go#76777.

This PR makes an empty map in Schema.Properties marshal as "{}" instead
of omitting it.

Technically, this is a breaking change, but it is extremely unlikely
that it will matter to anyone (except in a good way).
@jba jba requested a review from baptmont December 17, 2025 19:45
@jba jba enabled auto-merge (squash) December 18, 2025 15:38
@jba jba merged commit 48061fe into google:main Dec 18, 2025
6 checks passed
jba added a commit that referenced this pull request Dec 19, 2025
manusa added a commit to containers/kubernetes-mcp-server that referenced this pull request Dec 22, 2025
The marshaling of empty properties to an empty JSON object was fixed:
- google/jsonschema-go#59
- google/jsonschema-go#60

Released in https://github.com/google/jsonschema-go/releases/tag/v0.4.2

Signed-off-by: Marc Nuri <marc@marcnuri.com>
manusa added a commit to containers/kubernetes-mcp-server that referenced this pull request Dec 22, 2025
The marshaling of empty properties to an empty JSON object was fixed:
- google/jsonschema-go#59
- google/jsonschema-go#60

Released in https://github.com/google/jsonschema-go/releases/tag/v0.4.2

Signed-off-by: Marc Nuri <marc@marcnuri.com>
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.

2 participants