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
Errors
Error Formatting
Error Formatting API Documentation
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Error Formatting API Documentation
function format_errorfrom mcp_use.errors.error_formatting import format_error
ReturnsExceptionrequiredThe exception to format.requiredParameter value
SignaturedictA dictionary containing the formatted error.
def format_error(error: Exception, context):
Was this page helpful?