Skip to main content

mcp_err

Function mcp_err 

Source
pub fn mcp_err(e: Error) -> ErrorData
Expand description

Convert a crate Error into an MCP protocol error with structured data.

The data payload exposes the diagnostic code, help text, and a retryable flag for client-side handling.