Exceptions

MCPServer exceptions.

exception smarter.apps.mcpserver.exceptions.SmarterMCPServerException(message='')[source]

Bases: SmarterException

Base class for all mcpserver exceptions.

property get_formatted_err_message
exception smarter.apps.mcpserver.exceptions.SmarterMCPServerIndexError(message='')[source]

Bases: SmarterMCPServerException

A repository could not be indexed, e.g. GitHub could not be reached, or its archive is too large.

property get_formatted_err_message
exception smarter.apps.mcpserver.exceptions.SmarterMCPServerToolError(message='')[source]

Bases: SmarterMCPServerException

A tool could not do what it was asked, e.g. a file does not exist.

The error is returned to the LLM as the tool’s result, with isError set, so that it can correct its arguments.

property get_formatted_err_message