ResourceProvider
Provides access to a set of resources and (optionally) notifies about changes.
Subclasses can override supportsSubscriptions to indicate whether they can emit resource change notifications via onResourceChange or onResourcesListChanged.
Properties
Implementations should call this when a specific resource changes. By default, no-op.
Implementations should call this when the overall list of resources changes (new ones added, removed, etc.). By default, no-op.
Whether this provider can emit resource change notifications.
Functions
Sets callbacks for resource change notifications. Called by the server/manager.
Returns the list of currently available resources.
Returns any resource templates this provider supports, e.g. file:///{path}.
Fetches the contents of the given resource URI, or null if unavailable.