Interface McpSubscriptionEvent
- All Known Implementing Classes:
McpSubscriptionEvent.PromptsListChanged, McpSubscriptionEvent.ResourcesListChanged, McpSubscriptionEvent.ResourceUpdated, McpSubscriptionEvent.ToolsListChanged
@ThreadSafe
public sealed interface McpSubscriptionEvent
permits McpSubscriptionEvent.ResourcesListChanged, McpSubscriptionEvent.ResourceUpdated, McpSubscriptionEvent.ToolsListChanged, McpSubscriptionEvent.PromptsListChanged
Immutable application event that identifies a coarse MCP subscription-visible
change.
Events do not identify an endpoint, authorization partition, or connected client. Soklet applies endpoint configuration and accepted subscription filters before wire emission. The authorization partition stored when a subscription is admitted scopes registration and quota accounting; it is not an event target and does not authorize catalog or resource access.
This type may gain reviewed permitted subtypes in Soklet 4.x; use a forward-compatible default when switching over its values.
- Author:
- Mark Allen
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classRequests reevaluation of the caller-visibleprompts/listcatalog for interested subscriptions.static final classSignals that clients should requestresources/listagain.static final classSignals that the representation at one absolute normalized resource URI in ASCII wire form changed.static final classRequests reevaluation of the caller-visibletools/listcatalog for interested subscriptions. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionCreates a prompt-list-changed event.Creates a resource-list-changed event.resourceUpdated(@NonNull URI resourceUri) Creates a resource-updated event.Creates a tool-list-changed event.
-
Method Details
-
resourcesListChanged
Creates a resource-list-changed event.- Returns:
- resource-list-changed event
-
resourceUpdated
Creates a resource-updated event.- Parameters:
resourceUri- changed resource URI- Returns:
- resource-updated event
- Throws:
NullPointerException- ifresourceUriis nullIllegalArgumentException- if the URI is relative, not normalized, or not in ASCII wire form
-
toolsListChanged
Creates a tool-list-changed event.- Returns:
- tool-list-changed event
-
promptsListChanged
Creates a prompt-list-changed event.- Returns:
- prompt-list-changed event
-