Client

ch.linkyard.mcp.server.McpServer.Client
trait Client[F[_]]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def authentication: F[Authentication]

the clients authentication (is kept up to date if the clients sends new bearer tokens)

the clients authentication (is kept up to date if the clients sends new bearer tokens)

Attributes

def elicit(message: String, requestedSchema: JsonSchema, _meta: Meta): F[Response]

Ask the user for additional information

Ask the user for additional information

Attributes

def listRoots: F[Response]
def log(level: LoggingLevel, logger: Option[String], message: String): F[Unit]

Sends a logging message to the client.

Sends a logging message to the client.

Attributes

def log(level: LoggingLevel, logger: Option[String], data: Json): F[Unit]

Sends a logging message to the client.

Sends a logging message to the client.

Attributes

def ping: F[Unit]

Pings the client to check if it is still alive.

Pings the client to check if it is still alive.

Attributes

def sample(messages: List[Message], maxTokens: Int, modelPreferences: Option[ModelPreferences], systemPrompt: Option[String], temperature: Option[Double], includeContext: Option[String], stopSequences: Option[List[String]], metadata: Option[JsonObject], _meta: Meta): F[Response]

Ask the LLM for completions

Ask the LLM for completions

Attributes

Concrete methods

def elicit(message: String, fields: ElicitationField*): F[Response]

Ask the user for additional information, simpler variant for JsonSchema

Ask the user for additional information, simpler variant for JsonSchema

Attributes

Abstract fields

val capabilities: ClientCapabilities
val clientInfo: PartyInfo