InitializeResult

@Serializable
data class InitializeResult(val protocolVersion: String = LATEST_PROTOCOL_VERSION, val capabilities: ServerCapabilities = ServerCapabilities(), val serverInfo: Implementation, val _meta: JsonObject = EmptyJsonObject) : ServerResult(source)

After receiving an initialized request from the client, the server sends this response.

Constructors

Link copied to clipboard
constructor(protocolVersion: String = LATEST_PROTOCOL_VERSION, capabilities: ServerCapabilities = ServerCapabilities(), serverInfo: 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

The version of the Model Context Protocol that the server wants to use. This may not match the version that the client requested. If the client cannot support this version, it MUST disconnect.

Link copied to clipboard