Interface McpSubscriptions
- All Known Subinterfaces:
McpSubscriptionBroker
- All Known Implementing Classes:
BasicMcpSubscriptionBroker
public interface McpSubscriptions
App-facing, revision-neutral change-publish SPI for MCP
subscriptions/listen.
Injected into tool/resource/prompt handlers via their BeanStore
argument (the same seam RestRequest and other request-scoped beans use), so application code can
announce a change without any dependency on the v2 wire beans or transport. A McpSubscriptionBroker
is the production implementation of this interface.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAnnounces that the prompt list changed.voidAnnounces that the resource list changed.voidresourceUpdated(String uri) Announces that a specific subscribed resource's content changed.voidAnnounces that the tool list changed.
-
Method Details
-
resourceUpdated
Announces that a specific subscribed resource's content changed.- Parameters:
uri- The exact resource URI that changed. Must not benull.
-
toolsListChanged
void toolsListChanged()Announces that the tool list changed. -
promptsListChanged
void promptsListChanged()Announces that the prompt list changed. -
resourcesListChanged
void resourcesListChanged()Announces that the resource list changed.
-