Exceptions

MCPClient exceptions.

exception smarter.apps.mcpclient.exceptions.SmarterMCPClientConfigurationError(message='')[source]

Bases: SmarterMCPClientException

An MCPClient is not configured correctly, e.g. its credentials Secret is missing.

property get_formatted_err_message
exception smarter.apps.mcpclient.exceptions.SmarterMCPClientConnectionError(message='')[source]

Bases: SmarterMCPClientException

Smarter could not connect to an MCP server, or the server did not respond correctly.

property get_formatted_err_message
exception smarter.apps.mcpclient.exceptions.SmarterMCPClientException(message='')[source]

Bases: SmarterException

Base class for all mcpclient exceptions.

property get_formatted_err_message
exception smarter.apps.mcpclient.exceptions.SmarterMCPClientPermissionError(message='')[source]

Bases: SmarterMCPClientException

A tool or resource is not allowed by an MCPClient’s allowedTools or allowedResources.

property get_formatted_err_message