ArgsSerializer
Custom serializer for the Args class.
This serializer handles the conversion between Args and various serialization formats. It specifically handles JsonEncoder differently from other encoders to maintain compatibility with the MCP SDK.