Mcp

sealed interface Mcp : Attribute(source)

Inheritors

Types

Link copied to clipboard
sealed interface Method : McpAttributes.Mcp

The name of the request or notification method. This is a REQUIRED attribute for all MCP operations.

Link copied to clipboard
sealed interface Protocol : McpAttributes.Mcp

The version of the Model Context Protocol in use. This is a RECOMMENDED attribute.

Link copied to clipboard
sealed interface Session : McpAttributes.Mcp

Identifies the MCP session. This is a RECOMMENDED attribute when the request is part of a session.

Properties

Link copied to clipboard
open override val key: String

Attribute key

Link copied to clipboard
abstract val value: Any

Attribute value.

Functions

Link copied to clipboard
open fun String.concatKey(other: String): String

Joins two attribute-key segments with a . separator.