Called when a ping request is received from an MCP client.
Use for health checks, metrics, heartbeat tracking, or custom logic.
The return value is ignored - ping always returns an empty object
per MCP specification. If the handler throws, the ping still succeeds
(errors are logged but not propagated to the client).
Custom ping handler callback.
Called when a ping request is received from an MCP client. Use for health checks, metrics, heartbeat tracking, or custom logic.
The return value is ignored - ping always returns an empty object per MCP specification. If the handler throws, the ping still succeeds (errors are logged but not propagated to the client).