CustomNotification

Represents a custom notification method that is not part of the core MCP specification.

The MCP protocol allows implementations to define custom methods for extending functionality. This class captures such custom notifications while preserving all their data.

Constructors

Link copied to clipboard
constructor(method: Method, params: BaseNotificationParams? = null)

Properties

Link copied to clipboard
Link copied to clipboard
open override val method: Method

The custom method name. By convention, custom methods often contain organization-specific prefixes (e.g., "mycompany/custom_event").

Link copied to clipboard
open override val params: BaseNotificationParams?

Raw JSON parameters for the custom notification, if present.

Functions

Link copied to clipboard

Converts the notification to a JSON-RPC notification.