Skip to content

Commit abac439

Browse files
devcrocode5l
authored andcommitted
Fix incorrect deserializer mapping for tool and prompt list notifications (#195)
(cherry picked from commit b0f0759)
1 parent b19d9f1 commit abac439

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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)