MCP.Protocol.Messages.Notification (MCP Elixir SDK v1.1.0)

Copy Markdown View Source

A JSON-RPC 2.0 notification message.

Notifications have no id and do not expect a response.

Summary

Types

t()

@type t() :: %MCP.Protocol.Messages.Notification{
  jsonrpc: String.t(),
  method: String.t(),
  params: map() | nil
}

Functions

new(method, params \\ nil)

@spec new(String.t(), map() | nil) :: t()