modelcontextprotocol / modelcontextprotocol/kotlin-sdk
SSE needs a heartbeat
Open
Nobody has claimed this yet.
api
enhancement
P2
ready for work
- Dominant language
- Kotlin
- Stars
- 1.5k
- Forks
- 248
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 23
Description
Some clients (claude code for example) close SSE servers unless there's a heartbeat. I found the Kotlin MCP server to be extremely unreliable unless it was set up.
mcp {
heartbeat {
period = 1.seconds
event = ServerSentEvent("heartbeat")
}
server
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the Kotlin SDK's SSE server setup and how the server configuration is assembled; the issue's heartbeat configuration shows the intended usage. Confirm the implementation can emit a periodic ServerSentEvent heartbeat, and verify that clients remain connected when the heartbeat is configured.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100