Skip to main content

map_core_error

Function map_core_error 

Source
pub fn map_core_error(error: &CoreError) -> MappedError
Expand description

Turns a provider error into an MCP error.

Bad input is invalid_params. Not found and conflict are tool errors that say what to do next. Authentication tells the user to run ibridge login. Every other failure is an internal error whose message drops protocol text.