Commit d30480d6 authored by Kevin Stanton's avatar Kevin Stanton Committed by Christian Tzolov
Browse files

feat: Add transport context extraction support to all MCP servers (#477)



- Add McpTransportContextExtractor to WebFlux/WebMVC SSE and Streamable transport providers
- Enable extraction of HTTP transport metadata (headers, etc.) for use during request processing
- Pass transport context through reactive context chain using McpTransportContext.KEY
- Add contextExtractor() builder methods for configuring custom extractors
- Update HttpServlet transport providers with same context extraction capability
- Modify McpServerSession to properly propagate transport context to handlers
- Add test coverage with TEST_CONTEXT_EXTRACTOR in integration tests

This allows MCP feature implementations to access HTTP transport level metadata
that was present at request time, enabling use cases like authentication,
request tracing, and custom header processing.

Signed-off-by: default avatarChristian Tzolov <christian.tzolov@broadcom.com>

Co-authored-by: default avatarChristian Tzolov <christian.tzolov@broadcom.com>
Co-authored-by: default avatarDariusz Jędrzejczyk <dariusz.jedrzejczyk@broadcom.com>
parent a6a8c4fa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment