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 Type
    Method
    Description
    void
    Announces that the prompt list changed.
    void
    Announces that the resource list changed.
    void
    Announces that a specific subscribed resource's content changed.
    void
    Announces 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 be null.
    • toolsListChanged

      Announces that the tool list changed.
    • promptsListChanged

      Announces that the prompt list changed.
    • resourcesListChanged

      Announces that the resource list changed.