mcp-go
mcp-go copied to clipboard
How to send `ping` requests to all clients to keep the connection alive.
Hi
I am trying to implement a SSE MCP server. Now this is behind a load-balancer, so in order to keep the connection alive, ping - pong is required otherwise the load-balancer would terminate the connection.
As per the specs, either participant can send a ping request.
I couldn't find a way. sendNotificationToAllClients is right now private, so should the right way be to expose sending ping command from server side?