Skip to content

Commit b0f0759

Browse files
authored
Fix incorrect deserializer mapping for tool and prompt list notifications (#195)
1 parent d119871 commit b0f0759

File tree

1 file changed

+2
-2
lines changed
  • kotlin-sdk-core/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk

1 file changed

+2
-2
lines changed

kotlin-sdk-core/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/types.util.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ internal fun selectServerNotificationDeserializer(element: JsonElement): Deseria
178178
Method.Defined.NotificationsMessage.value -> LoggingMessageNotification.serializer()
179179
Method.Defined.NotificationsResourcesUpdated.value -> ResourceUpdatedNotification.serializer()
180180
Method.Defined.NotificationsResourcesListChanged.value -> ResourceListChangedNotification.serializer()
181-
Method.Defined.ToolsList.value -> ToolListChangedNotification.serializer()
182-
Method.Defined.PromptsList.value -> PromptListChangedNotification.serializer()
181+
Method.Defined.NotificationsToolsListChanged.value -> ToolListChangedNotification.serializer()
182+
Method.Defined.NotificationsPromptsListChanged.value -> PromptListChangedNotification.serializer()
183183
else -> null
184184
}
185185
}

0 commit comments

Comments
 (0)