Skip to main content

koruma_validation_error

Function koruma_validation_error 

Source
pub fn koruma_validation_error<Error>(error: &Error) -> McpToolError
where Error: ValidationIssues + ?Sized,
Expand description

Convert a Koruma validation error into structured MCP error details.

A failed custom error with no enumerated issues still produces a form-level failure. This function does not require display or debug rendering.