java.lang.Object
com.mulesoft.connectors.mcp.internal.design.datasense.DataSenseUtils

public final class DataSenseUtils extends Object
Datasense related utilities
Since:
0.1.0
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
    Contains resolver categories
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.mule.metadata.api.model.ObjectType
    copyFieldsOnNewJavaObject(org.mule.metadata.api.model.ObjectType schema, org.mule.metadata.api.builder.BaseTypeBuilder baseTypeBuilder)
    Returns a new ObjectType with MetadataFormat.JAVA format containing all the fields defined in schema
    static io.modelcontextprotocol.spec.McpSchema.ListToolsResult
    queryTools(io.modelcontextprotocol.client.McpAsyncClient client, String cursor)
    Fetches tools from a remote server, using the given cursor as a page locator

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • queryTools

      public static io.modelcontextprotocol.spec.McpSchema.ListToolsResult queryTools(io.modelcontextprotocol.client.McpAsyncClient client, String cursor) throws org.mule.runtime.api.metadata.MetadataResolvingException
      Fetches tools from a remote server, using the given cursor as a page locator
      Parameters:
      client - an MCP client
      cursor - the next page cursor, null to get the first one
      Returns:
      a McpSchema.ListToolsResult
      Throws:
      org.mule.runtime.api.metadata.MetadataResolvingException
    • copyFieldsOnNewJavaObject

      public static org.mule.metadata.api.model.ObjectType copyFieldsOnNewJavaObject(org.mule.metadata.api.model.ObjectType schema, org.mule.metadata.api.builder.BaseTypeBuilder baseTypeBuilder)
      Returns a new ObjectType with MetadataFormat.JAVA format containing all the fields defined in schema
      Parameters:
      schema - the source schema
      baseTypeBuilder - the type builder used to create the new ObjectType
      Returns:
      a new ObjectType