java-sdk/mcp-spring/mcp-spring-webflux/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Christian Tzolov 9d58621918
feat: implement MCP protocol version per transport support (#404)
- Add protocolVersion() method to transport and transport provider interfaces and implementations
- Replace hardcoded HTTP header strings with HttpHeaders constants
- Update protocol versions to be transport-specific rather than global
- Deprecate McpSchema.LATEST_PROTOCOL_VERSION in favor of transport-specific versions
- Standardize header names: MCP-Protocol-Version, mcp-session-id, last-event-id
- Update clients and servers to use transport.protocolVersion() for initialization
- Refactor tests to use transport-specific protocol versions
- Include MCP-Protocol-Version header in all GET/POST/DELETE requests
- Update WebClientStreamableHttpTransport, WebFluxSseClientTransport,
  HttpClientSseClientTransport, and HttpClientStreamableHttpTransport

Related to #398 , #363 , #250

Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
2025-07-30 23:54:28 +02:00
..
main/java/io/modelcontextprotocol feat: implement MCP protocol version per transport support (#404) 2025-07-30 23:54:28 +02:00
test feat: add Streamable HTTP Server abstractions and implement WebFlux transport provider (#420) 2025-07-30 13:41:18 +02:00