Skip to content

default protocol version for streamable should not be 2024-11-05 use 2025-03-26 #441

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

olamy
Copy link

@olamy olamy commented Aug 2, 2025

Signed-off-by: Olivier Lamy [email protected]

Motivation and Context

How Has This Been Tested?

Breaking Changes

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

@tzolov
Copy link
Contributor

tzolov commented Aug 4, 2025

Thanks @olamy
Unfortunately the ecosystem reality out there is not that puristic. Check this: #444
Basically the streamable http client/server must pretend they support 2024-11-05 to work with the various complaint mcp client/server implementations. Because of this your code needs to changes to something like:

	@Override
	public List<String> protocolVersions() {
		return List.of(ProtocolVersions.MCP_2024_11_05, ProtocolVersions.MCP_2025_03_26);
	}

@olamy
Copy link
Author

olamy commented Aug 4, 2025

@tzolov thanks I have been doing this here https://github.com/jenkinsci/mcp-server-plugin/pull/26/files#diff-7bcf4a0ac9d490967a71ec30f02f69b4f578df2c645f7e13a3b39b0760360fe7R198 (and will change with next release as returned type will be List<String> rather than String)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants