You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug description
The spec defines some well-known stopReason values, but also allows arbitrary values to be passed as well (spec). When parsing these, the Java SDK throws an exception:
com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `io.modelcontextprotocol.spec.McpSchema$CreateMessageResult$StopReason` from String "arbitrary value": not one of the values accepted for Enum class: [endTurn, stopSequence, maxTokens]