Skip to content

Add MCP Streamable HTTP implementation #1965

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

Merged
merged 8 commits into from
Jun 13, 2025
Merged

Conversation

Kludex
Copy link
Member

@Kludex Kludex commented Jun 12, 2025

Fixes #1632

Copy link
Contributor

hyperlint-ai bot commented Jun 12, 2025

PR Change Summary

Added implementation for Streamable HTTP in MCP, enhancing connectivity options for users.

  • Introduced MCPServerStreamableHTTP for connecting to MCP servers using Streamable HTTP transport.
  • Updated documentation to reflect changes in MCP server connection options.
  • Modified existing examples to incorporate the new Streamable HTTP client.

Modified Files

  • docs/mcp/client.md

How can I customize these reviews?

Check out the Hyperlint AI Reviewer docs for more information on how to customize the review.

If you just want to ignore it on this PR, you can add the hyperlint-ignore label to the PR. Future changes won't trigger a Hyperlint review.

Note specifically for link checks, we only check the first 30 links in a file and we cache the results for several hours (for instance, if you just added a page, you might experience this). Our recommendation is to add hyperlint-ignore to the PR to ignore the link check for this PR.

Copy link

github-actions bot commented Jun 12, 2025

Docs Preview

commit: 685a7fd
Preview URL: https://28768b41-pydantic-ai-previews.pydantic.workers.dev

@Kludex Kludex enabled auto-merge (squash) June 13, 2025 08:37
@Kludex Kludex merged commit 764e957 into main Jun 13, 2025
16 checks passed
@Kludex Kludex deleted the add-streamable-http-client branch June 13, 2025 08:42
@luminoso
Copy link

luminoso commented Jun 17, 2025

I was testing this just today and realized that MCPServerStreamableHTTP also has the sse_read_timeout, which (I think?) doesn't make any sense in the context of the streamable http.

Can we improve not having it or stating that the sse_read_timeout doesn't have any effect for the MCPServerStreamableHTTP class?

@Kludex
Copy link
Member Author

Kludex commented Jun 17, 2025

I was testing this just today and realized that MCPServerStreamableHTTP also has the sse_read_timeout, which (I think?) doesn't make any sense in the context of the streamable http.

Can we improve not having it or stating that the sse_read_timeout doesn't have any effect for the MCPServerStreamableHTTP class?

It does make sense. Streamable HTTP also offers SSE.

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.

Streamable HTTP Implementaion
2 participants