InitializeRequestBuilder

DSL builder for constructing InitializeRequest instances.

This builder creates the initial handshake request to establish an MCP protocol connection between client and server.

Required

Optional

  • meta - Metadata for the request

See also

Properties

Link copied to clipboard

The MCP protocol version. This is a required field.

Functions

Link copied to clipboard

Sets client capabilities directly.

Sets client capabilities using a DSL builder.

Link copied to clipboard
fun info(value: Implementation)

Sets client implementation info directly.

fun info(name: String, version: String, title: String? = null, websiteUrl: String? = null, icons: List<Icon>? = null)

Sets client implementation info using individual parameters.

Link copied to clipboard
fun meta(builderAction: RequestMetaBuilder.() -> Unit)

Sets request metadata using a DSL builder.