From b0f075900a992b8036682e21949cdfb48e0c31ec Mon Sep 17 00:00:00 2001 From: Pavel Gorgulov Date: Tue, 5 Aug 2025 12:51:51 +0200 Subject: [PATCH] Fix incorrect deserializer mapping for tool and prompt list notifications (#195) --- .../kotlin/io/modelcontextprotocol/kotlin/sdk/types.util.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kotlin-sdk-core/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/types.util.kt b/kotlin-sdk-core/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/types.util.kt index fad5f14..570b376 100644 --- a/kotlin-sdk-core/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/types.util.kt +++ b/kotlin-sdk-core/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/types.util.kt @@ -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 } }