modelcontextprotocol / modelcontextprotocol/kotlin-sdk

SSE needs a heartbeat

Open
#344 1 comment 3 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.