Class ResourceUriValueProvider

java.lang.Object
com.mulesoft.connectors.mcp.internal.design.vp.ResourceUriValueProvider
All Implemented Interfaces:
org.mule.sdk.api.values.ValueProvider

public class ResourceUriValueProvider extends Object implements org.mule.sdk.api.values.ValueProvider
Open value provider that returns the URIs of the resources available in a remote MCP server.

Reasons why this is not implemented as a TypeKeysResolver instead include:

  • This will most likely be used in components that will return a ResourceContent object, which is not a subtype and is already flattened (see that class comments for more context)
  • Being a completely dynamic protocol, users could be targeting a resource that doesn't appear in this list yet they know will actually be there (mathcing the concept of an open provider)
Since:
0.1.0
  • Constructor Details

    • ResourceUriValueProvider

      public ResourceUriValueProvider()
  • Method Details

    • resolve

      public Set<org.mule.sdk.api.values.Value> resolve() throws org.mule.sdk.api.values.ValueResolvingException
      Specified by:
      resolve in interface org.mule.sdk.api.values.ValueProvider
      Throws:
      org.mule.sdk.api.values.ValueResolvingException
    • getId

      public String getId()
      Specified by:
      getId in interface org.mule.sdk.api.values.ValueProvider