pub struct PermissionPromptRequestMcp {
pub args: Option<Value>,
pub assisted_approval: Option<PermissionAssistedApproval>,
pub can_offer_server_wide_approval: Option<bool>,
pub kind: PermissionPromptRequestMcpKind,
pub permission_recommendation: Option<PermissionRecommendation>,
pub server_name: String,
pub tool_call_id: Option<String>,
pub tool_name: String,
pub tool_title: String,
}Expand description
MCP tool invocation permission prompt
Fields§
§args: Option<Value>Arguments to pass to the MCP tool
assisted_approval: Option<PermissionAssistedApproval>Assisted-approval judge information for this request; present only in assisted mode.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
can_offer_server_wide_approval: Option<bool>Whether the host may offer a server-wide “approve all tools from this server” blanket. Absent is treated as true; the runtime sends false when managed policy disables bypass-permissions mode, which forbids the server-wide escalation while still allowing per-tool approval.
kind: PermissionPromptRequestMcpKindPrompt kind discriminator
permission_recommendation: Option<PermissionRecommendation>Advisory runtime permission recommendation. The host remains responsible for deciding the request and may reject it.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
server_name: StringName of the MCP server providing the tool
tool_call_id: Option<String>Tool call ID that triggered this permission request
tool_name: StringInternal name of the MCP tool
tool_title: StringHuman-readable title of the MCP tool
Trait Implementations§
Source§impl Clone for PermissionPromptRequestMcp
impl Clone for PermissionPromptRequestMcp
Source§fn clone(&self) -> PermissionPromptRequestMcp
fn clone(&self) -> PermissionPromptRequestMcp
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more