Interface McpTransportContextExtractor<T>

Type Parameters:
T - transport-specific representation of the request which allows extracting metadata for use in the MCP features implementations.

public interface McpTransportContextExtractor<T>
The contract for extracting metadata from a generic transport request of type McpTransportContextExtractor.
Author:
Dariusz Jędrzejczyk
  • Method Summary

    Modifier and Type
    Method
    Description
    extract(T request)
    Extract transport-specific metadata from the request into an McpTransportContext.
  • Method Details

    • extract

      McpTransportContext extract(T request)
      Extract transport-specific metadata from the request into an McpTransportContext.
      Parameters:
      request - the generic representation for the request in the context of a specific transport implementation
      Returns:
      the context containing the metadata