McpClient

Client for the MCP protocol. Provides access to the various resources and tools on ths MCP Server

Inheritors

Types

Link copied to clipboard
interface Completions

Generate Prompt Completions provided by ths MCP Server

Link copied to clipboard
interface Prompts

List and generate Prompts provided by this MCP server

Link copied to clipboard
interface RequestProgress

Receive progress reports from a Server

Link copied to clipboard
interface Resources

List and interact with Resources provided by this MCP server

Link copied to clipboard
interface Sampling

Perform Model Sampling on a model provided by this MCP client. Works during a tool call.

Link copied to clipboard
interface Tools

List and interact with Tools provided by this MCP server

Functions

Link copied to clipboard
abstract fun close()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun prompts(): McpClient.Prompts
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun stop()
Link copied to clipboard
abstract fun tools(): McpClient.Tools