adk-mcp-sdk 0.2.0

Enterprise SDK traits for ADK-Rust MCP servers — health checks, tool metadata, risk classes, credential binding, and registry compatibility
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde::{Deserialize, Serialize};

/// Health status reported by a server.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct HealthStatus {
    pub healthy: bool,
    pub message: Option<String>,
    /// Latency of the last check in milliseconds.
    pub latency_ms: Option<u64>,
}

/// Trait that every ADK-compatible MCP server should implement.
#[async_trait::async_trait]
pub trait HealthCheck: Send + Sync {
    /// Run connectivity, auth, and schema validation checks.
    async fn check_health(&self) -> HealthStatus;
}