MCPClient

interface MCPClient(source)

Since

0.3.0-beta01

Properties

Link copied to clipboard
abstract val instructions: String?
Link copied to clipboard

Functions

Link copied to clipboard
abstract suspend fun close()
Link copied to clipboard
abstract suspend fun experimental_getPrompt(name: String, arguments: JsonObject? = null, options: MCPRequestOptions? = null): GetPromptResult
Link copied to clipboard
abstract suspend fun experimental_listPrompts(params: JsonObject? = null, options: MCPRequestOptions? = null): ListPromptsResult
Link copied to clipboard
abstract suspend fun listResources(params: JsonObject? = null, options: MCPRequestOptions? = null): ListResourcesResult
Link copied to clipboard
Link copied to clipboard
abstract suspend fun listTools(params: JsonObject? = null, options: MCPRequestOptions? = null): ListToolsResult
Link copied to clipboard
Link copied to clipboard
abstract suspend fun readResource(uri: String, options: MCPRequestOptions? = null): ReadResourceResult
Link copied to clipboard
abstract suspend fun <TContext> tools(schemas: MCPToolSchemas? = null): ToolSet<TContext>
Link copied to clipboard
abstract fun <TContext> toolsFromDefinitions(definitions: ListToolsResult, schemas: MCPToolSchemas? = null): ToolSet<TContext>