Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Streamable HTTP client transport #416

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

Closed
wants to merge 7 commits into from

Conversation

josh-newman
Copy link

@josh-newman josh-newman commented Apr 2, 2025

Client implementation of spec version 2025-03-26's new transport.

Motivation and Context

The 2025-03-26 spec introduces a new HTTP transport mechanism (with fallback to the previous one). I didn't see a reference implementation available yet so we've made this experimental one.

How Has This Been Tested?

We've tested with local and remote MCP servers in our product (Lutra).

Breaking Changes

None.

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

This is a draft. I'm not sure how the maintainers would like to handle updating LATEST_PROTOCOL_VERSION and SUPPORTED_PROTOCOL_VERSIONS. And I don't have automated tests for the new transport.

@josh-newman josh-newman marked this pull request as draft April 2, 2025 23:42
@josh-newman josh-newman changed the title Streamable HTTP transport Streamable HTTP client transport Apr 2, 2025
@ptrrrr
Copy link

ptrrrr commented Apr 6, 2025

Are you also including authorisation the spec says oauth 2

@josh-newman
Copy link
Author

Are you also including authorisation the spec says oauth 2

I haven't thought about it yet; maybe it makes sense to see where modelcontextprotocol/modelcontextprotocol#284 leads?

In general I'm interested to hear from maintainers whether they're interested in this PR or have other plans.

@josh-newman josh-newman marked this pull request as ready for review April 23, 2025 17:54
@sequoiar
Copy link

sequoiar commented May 1, 2025

Need StreamableHTTP support in both MCP client and server side. Can Not wait it anymore.

@josh-newman
Copy link
Author

Seems like this is being implemented in #573 and related PRs.

@josh-newman josh-newman closed this May 8, 2025
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.

3 participants