#[ping]Expand description
Marks a method as a ping handler for connection health monitoring
Ping handlers enable bidirectional health checks between clients and servers for connection monitoring.
§Example
ⓘ
#[ping("Health check")]
async fn health_check(&self) -> turbomcp::McpResult<String> {
// Return health status information
Ok("Server is healthy".to_string())
}