Class ListRequests

java.lang.Object
dev.tachyonmcp.core.server.features.ListRequests

@InternalApi public final class ListRequests extends Object
Shared parsing of limit/cursor from JSON-RPC request params.
  • Method Details

    • extractInputResponses

      public static @Nullable Map<String,tools.jackson.databind.JsonNode> extractInputResponses(@Nullable Object raw)
      Parses the inputResponses value of a request into a name→node map, re-encoding each raw value through the codec. Returns null when absent or empty. Pass map.get("inputResponses").
    • parseLimit

      public static int parseLimit(Object params)
      Extracts the limit parameter from a Map or typed request object.
    • parseCursor

      public static @Nullable String parseCursor(Object params)
      Extracts the cursor parameter from a Map or typed request object.