Fix incorrect deserializer mapping for tool and prompt list notifications (#195)

This commit is contained in:
Pavel Gorgulov 2025-08-05 12:51:51 +02:00 • committed by GitHub
commit b0f075900a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -178,8 +178,8 @@ internal fun selectServerNotificationDeserializer(element: JsonElement): Deseria
Method.Defined.NotificationsMessage.value -> LoggingMessageNotification.serializer()
Method.Defined.NotificationsResourcesUpdated.value -> ResourceUpdatedNotification.serializer()
Method.Defined.NotificationsResourcesListChanged.value -> ResourceListChangedNotification.serializer()
Method.Defined.ToolsList.value -> ToolListChangedNotification.serializer()
Method.Defined.PromptsList.value -> PromptListChangedNotification.serializer()
Method.Defined.NotificationsToolsListChanged.value -> ToolListChangedNotification.serializer()
Method.Defined.NotificationsPromptsListChanged.value -> PromptListChangedNotification.serializer()
else -> null
}
}