Merge commit from fork

This commit is contained in:
Pavel Gorgulov 2026-06-02 12:31:28 +02:00 • committed by GitHub
commit 6e6f80512f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,6 +4,7 @@ import io.github.oshai.kotlinlogging.KotlinLogging
import io.modelcontextprotocol.kotlin.sdk.internal.IODispatcher
import io.modelcontextprotocol.kotlin.sdk.shared.AbstractTransport
import io.modelcontextprotocol.kotlin.sdk.shared.ReadBuffer
import io.modelcontextprotocol.kotlin.sdk.shared.TooLongFrameException
import io.modelcontextprotocol.kotlin.sdk.shared.TransportSendOptions
import io.modelcontextprotocol.kotlin.sdk.shared.serializeMessage
import io.modelcontextprotocol.kotlin.sdk.types.JSONRPCMessage
@ -208,6 +209,8 @@ public class StdioServerTransport private constructor(
readBuffer.readMessage()
} catch (e: CancellationException) {
throw e
} catch (e: TooLongFrameException) {
throw e
} catch (e: Throwable) {
_onError(e)
null