Package-level declarations

Types

Link copied to clipboard
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.

Functions

Link copied to clipboard
suspend fun mcpTools(server: Client, prefix: String = "", timeout: Duration? = null, filter: (Tool) -> Boolean = { true }): List<Tool>

Returns the tools of the Model Context Protocol server that server is connected to, as tools of an agent. Many services publish such a server, so an agent gets their tools without a Tool written by hand for each.