View the source code for this module on GitHub: https://github.com/mcp-use/mcp-use/blob/main/libraries/python/mcp_use/errors/error_formatting.py
Error Formatting API Documentation
function format_errorfrom mcp_use.errors.error_formatting import format_error
ReturnsThe exception to format.Parameter value
SignatureA dictionary containing the formatted error.
def format_error(error: Exception, context):
Was this page helpful?