Companion
object Companion
Functions
Link copied to clipboard
operator fun invoke(url: String, headers: List<Auth> = emptyList(), serverLabel: String = defaultServerLabel(url), allowedTools: Set<String>? = null, timeoutMillis: Long = DEFAULT_TIMEOUT_MS): MCPTool
Creates an MCP tool reference for a Streamable HTTP server.
operator fun invoke(url: String, headers: List<Auth>, serverLabel: String, allowedTools: Set<String>?, timeoutMillis: Long, transport: McpTransport): MCPTool
Creates an MCP tool reference backed by a custom McpTransport (tests, proxies, alternative transports).