Skip to content

SSE needs a heartbeat #344

@rustyrazorblade

Description

@rustyrazorblade

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions