T
- transport-specific representation of the request which allows extracting
metadata for use in the MCP features implementations.public interface McpTransportContextExtractor<T>
T
.限定符和类型 | 方法和说明 |
---|---|
McpTransportContext |
extract(T request,
McpTransportContext transportContext)
Given an empty context, provides the means to fill it with transport-specific
metadata extracted from the request.
|
McpTransportContext extract(T request, McpTransportContext transportContext)
request
- the generic representation for the request in the context of a
specific transport implementationtransportContext
- the mutable context which can be filled in with metadata