McpServerException

class McpServerException(message: String, cause: Throwable? = null) : TelarException

A request to a Model Context Protocol server failed: the server could not be asked for its tools, a tool reported an error, or a call got no answer. The failure of the SDK, when there is one, is the cause.

A tool from mcpTools throws it, and an agent turns it into an error result for the model.

Constructors

Link copied to clipboard
constructor(message: String, cause: Throwable? = null)

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
expect open val message: String?