Skip to content

Conversation

@avichaym
Copy link

@avichaym avichaym commented Feb 9, 2026

What is the purpose of the change

MCPTool deserialization fails with UnrecognizedPropertyException when a default ObjectMapper encounters the name and description fields serialized from the parent Tool class. These fields are not declared in MCPTool's @JsonCreator constructor.

This breaks checkpoint/restore and any JSON round-trip of MCPTool.

Brief change log

  • Add @JsonIgnoreProperties(ignoreUnknown = true) to MCPTool
  • Add regression test testJsonDeserializationWithDefaultMapper that uses a default ObjectMapper (the existing testJsonSerialization masked the bug by disabling FAIL_ON_UNKNOWN_PROPERTIES globally)

Does this pull request potentially affect one of the following parts

  • Runtime: yes (checkpoint/restore of MCP tool state)
  • Integration: yes (MCP module)

Documentation

N/A — bug fix only

Documentation

  • doc-needed
  • doc-not-needed
  • doc-included

…n properties

MCPTool deserialization fails with UnrecognizedPropertyException when
a default ObjectMapper encounters the 'name' and 'description' fields
serialized from the parent Tool class. These fields are not declared
in MCPTool's @JsonCreator constructor.

This breaks checkpoint/restore and any JSON round-trip of MCPTool.

Add @JsonIgnoreProperties(ignoreUnknown = true) to MCPTool and a
regression test that uses a default ObjectMapper (the existing test
masked the bug by disabling FAIL_ON_UNKNOWN_PROPERTIES globally).
@github-actions github-actions bot added the doc-label-missing The Bot applies this label either because none or multiple labels were provided. label Feb 9, 2026
@github-actions
Copy link

github-actions bot commented Feb 9, 2026

@avichaym Please add the following content to your PR description and select a checkbox:

- [ ] `doc-needed` 
- [ ] `doc-not-needed` <!-- Your PR changes do not impact docs -->
- [ ] `doc-included` 

@github-actions github-actions bot added priority/major Default priority of the PR or issue. fixVersion/0.2.0 The feature or bug should be implemented/fixed in the 0.2.0 version. doc-not-needed Your PR changes do not impact docs and removed doc-label-missing The Bot applies this label either because none or multiple labels were provided. labels Feb 9, 2026
@avichaym avichaym closed this Feb 9, 2026
@xintongsong
Copy link
Contributor

Sounds like a valid issue. Why is this closed?

@avichaym
Copy link
Author

hi @xintongsong - im not sure ... i changed some things in my local fork repo and it was auto closed, probably because it represents an obsolete branch. i didnt find a way to fix this in this PR so pushed a new one - #532 . sorry for the confusion

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

Labels

doc-not-needed Your PR changes do not impact docs fixVersion/0.2.0 The feature or bug should be implemented/fixed in the 0.2.0 version. priority/major Default priority of the PR or issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants