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};

use crate::risk::RiskClass;

/// Metadata for a single tool exposed by an MCP server.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ToolMeta {
    pub name: String,
    pub description: String,
    pub risk_class: RiskClass,
    /// Whether this tool requires approval before execution in production.
    #[serde(default)]
    pub requires_approval: bool,
    /// Credential IDs this tool needs at runtime.
    #[serde(default)]
    pub credential_bindings: Vec<String>,
}