avichaym opened a new pull request, #522: URL: https://github.com/apache/flink-agents/pull/522
## 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 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
