René's URL Explorer Experiment


Title: [v2] Expose the SSE max_event_size setting in Streamable HTTP clients · Issue #3332 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: [v2] Expose the SSE max_event_size setting in Streamable HTTP clients · Issue #3332 · modelcontextprotocol/python-sdk

X Title: [v2] Expose the SSE max_event_size setting in Streamable HTTP clients · Issue #3332 · modelcontextprotocol/python-sdk

Description: What happened? MCP Python SDK v2.0.0 constructs httpx2.EventSource(response) directly when parsing a Streamable HTTP POST response. Since HTTPX2 2.10, a single SSE event is limited to 1 MiB by default. When a valid tools/call result is l...

Open Graph Description: What happened? MCP Python SDK v2.0.0 constructs httpx2.EventSource(response) directly when parsing a Streamable HTTP POST response. Since HTTPX2 2.10, a single SSE event is limited to 1 MiB by defa...

X Description: What happened? MCP Python SDK v2.0.0 constructs httpx2.EventSource(response) directly when parsing a Streamable HTTP POST response. Since HTTPX2 2.10, a single SSE event is limited to 1 MiB by defa...

Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/issues/3332

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[v2] Expose the SSE max_event_size setting in Streamable HTTP clients","articleBody":"## What happened?\n\nMCP Python SDK v2.0.0 constructs `httpx2.EventSource(response)` directly when parsing a Streamable HTTP POST response. Since HTTPX2 2.10, a single SSE event is limited to 1 MiB by default.\n\nWhen a valid `tools/call` result is larger than 1 MiB and is returned as one SSE event, HTTPX2 raises `SSEError`. The SDK catches that transport error and the caller receives the generic MCP error:\n\n```text\nSSE stream ended without a response\n```\n\nThere is currently no public Streamable HTTP setting that lets callers raise the SSE event-size limit. The transport also creates SSE readers in multiple places: the POST response path constructs `EventSource(response)` directly, while the GET and reconnection paths call `AsyncClient.sse()` without a transport-level event-size setting.\n\n## What did you expect?\n\nI expected the Streamable HTTP client/transport to expose an SSE event-size setting and apply it consistently to:\n\n- POST SSE responses;\n- the GET stream; and\n- reconnection streams.\n\nOne possible API shape would be a `max_event_size` argument on `streamable_http_client()` and `StreamableHTTPTransport`, matching HTTPX2 terminology. The exact public API is open for maintainer direction.\n\nIf an event exceeds the configured limit, the original JSON-RPC request should receive a clear request-scoped error. The already-sent POST should not be replayed, and sibling requests sharing the session should remain usable.\n\n## Reproduction\n\nUse an MCP Streamable HTTP server whose tool returns more than 1 MiB of text in a single SSE event, then call that tool with the v2 client:\n\n```python\nresult = await client.call_tool(\"large_result\", {})\n```\n\nWith a 2 MiB single-event response, the call fails with `SSE stream ended without a response`. The same response succeeds when the underlying `EventSource` is constructed with a larger `max_event_size`.\n\nI can contribute an implementation and exact boundary tests if maintainers agree with exposing this setting.\n\n## Environment\n\n- Python 3.11\n- MCP Python SDK 2.0.0\n- HTTPX2 2.10.0\n- Area: Client transports / Streamable HTTP\n\n## Reference\n\n- HTTPX2 support and the 1 MiB default: https://github.com/pydantic/httpx2/pull/1071\n\nThis issue was prepared with AI assistance and reviewed by the reporter.\n","author":{"url":"https://github.com/Zhangs-11","@type":"Person","name":"Zhangs-11"},"datePublished":"2026-08-18T14:47:43Z","url":"https://github.com/modelcontextprotocol/python-sdk/issues/3332"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:b08443c9-3d64-e042-0270-b56352daa15e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB970:23CF06:20D3F90:29D54DE:6B0160D9
html-safe-nonce09b942e308043e147b591e8a7cf3259d0a6ca84ca90cc38df0be1de36dd81883
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTcwOjIzQ0YwNjoyMEQzRjkwOjI5RDU0REU6NkIwMTYwRDkiLCJ2aXNpdG9yX2lkIjoiNjA3MzYzOTI3MzcwNDI4NDM3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacae8325ece44ee5193a637feb6b660fb87500caa3f046ccbd4a7eef20d7f82736
hovercard-subject-tagissue:5183111570
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/modelcontextprotocol/python-sdk/3332/issue_layout
twitter:imagehttps://opengraph.githubassets.com/33b4386eae4fb86916afb8de5b21ab8eeb49c1b5647dfe18ab1d7be330834de0/modelcontextprotocol/python-sdk/issues/3332
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/33b4386eae4fb86916afb8de5b21ab8eeb49c1b5647dfe18ab1d7be330834de0/modelcontextprotocol/python-sdk/issues/3332
og:image:altWhat happened? MCP Python SDK v2.0.0 constructs httpx2.EventSource(response) directly when parsing a Streamable HTTP POST response. Since HTTPX2 2.10, a single SSE event is limited to 1 MiB by defa...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameZhangs-11
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git
octolytics-dimension-user_id182288589
octolytics-dimension-user_loginmodelcontextprotocol
octolytics-dimension-repository_id862584018
octolytics-dimension-repository_nwomodelcontextprotocol/python-sdk
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id862584018
octolytics-dimension-repository_network_root_nwomodelcontextprotocol/python-sdk
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/issues/3332#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fissues%2F3332
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fissues%2F3332
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=modelcontextprotocol%2Fpython-sdk
Reloadhttps://github.com/modelcontextprotocol/python-sdk/issues/3332
Reloadhttps://github.com/modelcontextprotocol/python-sdk/issues/3332
Reloadhttps://github.com/modelcontextprotocol/python-sdk/issues/3332
modelcontextprotocolhttps://github.com/modelcontextprotocol
python-sdkhttps://github.com/modelcontextprotocol/python-sdk
Codehttps://github.com/modelcontextprotocol/python-sdk
Issues315 (315)https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests112 (112)https://github.com/modelcontextprotocol/python-sdk/pulls
Actionshttps://github.com/modelcontextprotocol/python-sdk/actions
Projectshttps://github.com/modelcontextprotocol/python-sdk/projects
Security and quality12 (12)https://github.com/modelcontextprotocol/python-sdk/security
Insightshttps://github.com/modelcontextprotocol/python-sdk/insights
https://github.com/modelcontextprotocol/python-sdk
New issuehttps://github.com/login?return_to=https://github.com/modelcontextprotocol/python-sdk/issues/3332
New issuehttps://github.com/login?return_to=https://github.com/modelcontextprotocol/python-sdk/issues/3332
#3600https://github.com/modelcontextprotocol/python-sdk/pull/3600
[v2] Expose the SSE max_event_size setting in Streamable HTTP clientshttps://github.com/modelcontextprotocol/python-sdk/issues/3332#top
#3600https://github.com/modelcontextprotocol/python-sdk/pull/3600
https://github.com/Kludex
v2Affects the v2 line (2.x on main)https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22v2%22
https://github.com/Zhangs-11
Zhangs-11https://github.com/Zhangs-11
on Aug 18, 2026https://github.com/modelcontextprotocol/python-sdk/issues/3332#issue-5183111570
Add max_event_size to cap SSE event buffering pydantic/httpx2#1071https://github.com/pydantic/httpx2/pull/1071
https://github.com/Ben-Home
Ben-Homehttps://github.com/Ben-Home
on Aug 18, 2026https://github.com/modelcontextprotocol/python-sdk/issues/3332#issuecomment-5330190179
maxisbeyhttps://github.com/maxisbey
v2Affects the v2 line (2.x on main)https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22v2%22
on Aug 18, 2026https://github.com/modelcontextprotocol/python-sdk/issues/3332#event-29629476372
maxisbeyhttps://github.com/maxisbey
Kludexhttps://github.com/Kludex
on Aug 19, 2026https://github.com/modelcontextprotocol/python-sdk/issues/3332#event-29696394351
https://github.com/Ben-Home
Ben-Homehttps://github.com/Ben-Home
on Aug 20, 2026https://github.com/modelcontextprotocol/python-sdk/issues/3332#issuecomment-5359210700
https://github.com/mguttmann
mguttmannhttps://github.com/mguttmann
on Sep 2, 2026https://github.com/modelcontextprotocol/python-sdk/issues/3332#issuecomment-5505926865
https://github.com/Kludex
Kludexhttps://github.com/Kludex
on Sep 8, 2026https://github.com/modelcontextprotocol/python-sdk/issues/3332#issuecomment-5586319598
https://github.com/Zhangs-11
Zhangs-11https://github.com/Zhangs-11
on Sep 8, 2026https://github.com/modelcontextprotocol/python-sdk/issues/3332#issuecomment-5586404356
https://github.com/Kludex
Kludexhttps://github.com/Kludex
on Sep 8, 2026https://github.com/modelcontextprotocol/python-sdk/issues/3332#issuecomment-5586442119
@Zhangs-11https://github.com/Zhangs-11
https://github.com/Zhangs-11
Zhangs-11https://github.com/Zhangs-11
on Sep 8, 2026https://github.com/modelcontextprotocol/python-sdk/issues/3332#issuecomment-5586478131
https://github.com/mguttmann
mguttmannhttps://github.com/mguttmann
on Sep 9, 2026https://github.com/modelcontextprotocol/python-sdk/issues/3332#issuecomment-5599910612
https://github.com/aballiet
aballiethttps://github.com/aballiet
on Sep 11, 2026https://github.com/modelcontextprotocol/python-sdk/issues/3332#issuecomment-5635489091
Kludexhttps://github.com/Kludex
completedhttps://github.com/modelcontextprotocol/python-sdk/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#3600https://github.com/modelcontextprotocol/python-sdk/pull/3600
on Oct 1, 2026https://github.com/modelcontextprotocol/python-sdk/issues/3332#event-32257648249
Sign up for freehttps://github.com/signup?return_to=https://github.com/modelcontextprotocol/python-sdk/issues/3332
Sign in to commenthttps://github.com/login?return_to=https://github.com/modelcontextprotocol/python-sdk/issues/3332
Kludexhttps://github.com/Kludex
v2Affects the v2 line (2.x on main)https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22v2%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.