module

MCP::Protocol

Constants

CompletionComplete = "completion/complete"
ElicitationCreate = "elicitation/create"
Initialize = "initialize"
JSONRPC_VERSION = "2.0"
LATEST_PROTOCOL_VERSION = "2025-06-18"
LoggingSetLevel = "logging/setLevel"
NotificationsCancelled = "notifications/cancelled"
NotificationsElicitationComplete = "notifications/elicitation/complete"
NotificationsInitialized = "notifications/initialized"
NotificationsMessage = "notifications/message"
NotificationsProgress = "notifications/progress"
NotificationsPromptsListChanged = "notifications/prompts/list_changed"
NotificationsResourcesListChanged = "notifications/resources/list_changed"
NotificationsResourcesUpdated = "notifications/resources/updated"
NotificationsRootsListChanged = "notifications/roots/list_changed"
NotificationsToolsListChanged = "notifications/tools/list_changed"
Ping = "ping"
PromptsGet = "prompts/get"
PromptsList = "prompts/list"
REQUEST_MESSAGE_ID = Atomic(Int64).new(0_i64)
ResourcesList = "resources/list"
ResourcesRead = "resources/read"
ResourcesSubscribe = "resources/subscribe"
ResourcesTemplatesList = "resources/templates/list"
ResourcesUnsubscribe = "resources/unsubscribe"
RootsList = "roots/list"
SamplingCreateMessage = "sampling/createMessage"
SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-03-26", "2024-11-05", "2024-10-07"]
TasksCancel = "tasks/cancel"
TasksGet = "tasks/get"
TasksList = "tasks/list"
TasksResult = "tasks/result"
ToolsCall = "tools/call"
ToolsList = "tools/list"

Macros

use_custom_json_discriminator(field, mapping, else = nil)
Source
use_key_discriminator(field, mapping, else = nil)
Source

Nested types