Package io.modelcontextprotocol.server
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 TypeMethodDescriptionExtract transport-specific metadata from the request into an McpTransportContext.
-
Method Details
-
extract
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
-