MCPTool

sealed interface MCPTool

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val allowedTools: Set<String>?
Link copied to clipboard
abstract val headers: Map<String, String>
Link copied to clipboard
abstract val serverLabel: String
Link copied to clipboard
abstract val timeoutMillis: Long
Link copied to clipboard
abstract val url: String

Functions

Link copied to clipboard
Link copied to clipboard
open suspend fun refresh(): List<McpToolDefinition>

Re-fetches the tool list from the server, discarding the cache.

Link copied to clipboard

Resolves this server into executable io.kory.core.tool.KoryTool wrappers - the client-side path for providers without native MCP support.

Link copied to clipboard
open suspend fun toolNames(): List<String>

Names of the tools available on the server (cached, filtered by allowedTools).

Link copied to clipboard
open suspend fun tools(): List<McpToolDefinition>

Full tool definitions from tools/list (cached, filtered by allowedTools).