info

Sets client implementation info directly.

Example:

info(Implementation(
name = "MyClient",
version = "1.0.0"
))

Parameters

value

The Implementation instance


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

Sets client implementation info using individual parameters.

This is the recommended way to configure client info.

Example with required fields only:

info("MyClient", "1.0.0")

Example with all fields:

info(
name = "MyClient",
version = "2.0.0",
title = "My MCP Client",
websiteUrl = "https://example.com",
icons = listOf(Icon(
src = "https://example.com/icon.png",
mimeType = "image/png"
))
)

Parameters

name

Client implementation name

version

Client version string

title

Optional human-readable title

websiteUrl

Optional URL to client website

icons

Optional list of client icons