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

The heading of this error’s 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

The heading of this error’s message.

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

Bases: SmarterException

Base class for all mcpclient exceptions.

property get_formatted_err_message

The heading of this error’s 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

The heading of this error’s message.

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

Bases: SmarterMCPClientException

An MCP server’s tool reported an error, which is returned to the LLM and never cached.

property get_formatted_err_message

The heading of this error’s message.