Interface McpSyncHttpClientRequestCustomizer

All Known Implementing Classes:
DelegatingMcpSyncHttpClientRequestCustomizer

public interface McpSyncHttpClientRequestCustomizer
Customize HttpRequest.Builder before executing the request, either in SSE or Streamable HTTP transport. Do not rely on thread-locals in this implementation, instead use McpClient.SyncSpec.transportContextProvider(java.util.function.Supplier<io.modelcontextprotocol.common.McpTransportContext>) to extract context, and then consume it through McpTransportContext.
Author:
Daniel Garnier-Moiroux