-
Notifications
You must be signed in to change notification settings - Fork 140
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
The following was working in version 0.5.0. Seems like a kotlinx serlialization library version conflict
I send a POST request to the server with body:
{
"jsonrpc": "2.0",
"method": "tools/list",
"id": 1
}
The server throws the following exception when it reaches Protocol.onRequest() here.
java.lang.AbstractMethodError: 'kotlinx.serialization.KSerializer[] kotlinx.serialization.internal.GeneratedSerializer.typeParametersSerializers()'
at io.modelcontextprotocol.kotlin.sdk.ListToolsRequest$$serializer.typeParametersSerializers(types.kt:1154)
at kotlinx.serialization.internal.PluginGeneratedSerialDescriptor$typeParameterDescriptors$2.invoke(PluginGeneratedSerialDescriptor.kt:40)
at kotlinx.serialization.internal.PluginGeneratedSerialDescriptor$typeParameterDescriptors$2.invoke(PluginGeneratedSerialDescriptor.kt:39)
at kotlin.SafePublicationLazyImpl.getValue(LazyJVM.kt:125)
at kotlinx.serialization.internal.PluginGeneratedSerialDescriptor.getTypeParameterDescriptors$kotlinx_serialization_core(PluginGeneratedSerialDescriptor.kt:39)
at kotlinx.serialization.internal.PluginGeneratedSerialDescriptor$_hashCode$2.invoke(PluginGeneratedSerialDescriptor.kt:44)
at kotlinx.serialization.internal.PluginGeneratedSerialDescripto
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working