Add all protocol versions to StdioServerTransportProvider by rameshreddy-adutla · Pull Request #849 · modelcontextprotocol/java-sdk

@rameshreddy-adutla

StdioServerTransportProvider only reported MCP_2024_11_05 as its
supported protocol version. Since the stdio transport is unchanged
across all protocol versions, it should advertise support for all of
them so version negotiation works correctly with newer clients.

Without this fix, a client requesting 2025-06-18 or later would receive
2024-11-05 as the server's highest supported version, potentially
causing a version mismatch.

Fixes modelcontextprotocol#751

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>