InitializeRequest

@Serializable
data class InitializeRequest(val protocolVersion: String, val capabilities: ClientCapabilities, val clientInfo: Implementation, val _meta: JsonObject = EmptyJsonObject) : ClientRequest, WithMeta(source)

This request is sent from the client to the server when it first connects, asking it to begin initialization.

Constructors

Link copied to clipboard
constructor(protocolVersion: String, capabilities: ClientCapabilities, clientInfo: Implementation, _meta: JsonObject = EmptyJsonObject)

Properties

Link copied to clipboard
open override val _meta: JsonObject

The protocol reserves this result property to allow clients and servers to attach additional metadata to their responses.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val method: Method
Link copied to clipboard

Functions

Link copied to clipboard

Converts the request to a JSON-RPC request.