kotlin-sdk/kotlin-sdk-server/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Pavel Gorgulov 8a7f9f8d31
fix(server): GET SSE stream crash on Netty in Streamable HTTP (#681)
`appendSseHeaders()` was called inside Ktor's `sse {}` block where
response headers are already committed. On Netty this throws
`UnsupportedOperationException`, killing the SSE stream and causing the
client to retry in a loop

## How Has This Been Tested?
unit, simple-streamable-server sample

## Breaking Changes
none

## Types of changes
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update

## Checklist
- [x] I have read the [MCP
Documentation](https://modelcontextprotocol.io)
- [x] My code follows the repository's style guidelines
- [x] New and existing tests pass locally
- [x ] I have added appropriate error handling
- [ x] I have added or updated documentation as needed
2026-04-10 13:51:03 +02:00
..
commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/server fix(server): GET SSE stream crash on Netty in Streamable HTTP (#681) 2026-04-10 13:51:03 +02:00
jvmTest fix(server): GET SSE stream crash on Netty in Streamable HTTP (#681) 2026-04-10 13:51:03 +02:00