Title: fix: use ASGI callable for SSE endpoint to avoid BaseHTTPMiddleware AssertionError (#883) by Ashutosh0x · Pull Request #2029 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: fix: use ASGI callable for SSE endpoint to avoid BaseHTTPMiddleware AssertionError (#883) by Ashutosh0x · Pull Request #2029 · modelcontextprotocol/python-sdk
X Title: fix: use ASGI callable for SSE endpoint to avoid BaseHTTPMiddleware AssertionError (#883) by Ashutosh0x · Pull Request #2029 · modelcontextprotocol/python-sdk
Description: The official Python SDK for Model Context Protocol servers and clients - fix: use ASGI callable for SSE endpoint to avoid BaseHTTPMiddleware AssertionError (#883) by Ashutosh0x · Pull Request #2029 · modelcontextprotocol/python-sdk
Open Graph Description: When Starlette's BaseHTTPMiddleware wraps the SSE endpoint, it expects http.response.body messages. However, the SSE handler sends raw ASGI events, causing 'AssertionError: Unexpected messa...
X Description: When Starlette's BaseHTTPMiddleware wraps the SSE endpoint, it expects http.response.body messages. However, the SSE handler sends raw ASGI events, causing 'AssertionError: Unexpect...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/2029
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/commits(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:e3e36831-ddfd-23c6-16e4-007de69f7092 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DB26:2A3653:E30C46:142A6F4:6A5A0BD3 |
| html-safe-nonce | 7bb7c63a5937b9a3333256fbba86c6384a2b9794a1f77a040add7c27ad331a3c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjI2OjJBMzY1MzpFMzBDNDY6MTQyQTZGNDo2QTVBMEJEMyIsInZpc2l0b3JfaWQiOiIxMTU3NTU1NTA5ODE1NTQ0Nzg3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d68f0a5b6ec1704912dafd883520c167395897ba74dc8db907a51da1819fd3d8 |
| hovercard-subject-tag | pull_request:3268715393 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/modelcontextprotocol/python-sdk/pull/2029/commits |
| twitter:image | https://opengraph.githubassets.com/847434a026aae4b86188ec9483be003f10b8ba3b83fa5453a567f30ea85a553c/modelcontextprotocol/python-sdk/pull/2029 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/847434a026aae4b86188ec9483be003f10b8ba3b83fa5453a567f30ea85a553c/modelcontextprotocol/python-sdk/pull/2029 |
| og:image:alt | When Starlette's BaseHTTPMiddleware wraps the SSE endpoint, it expects http.response.body messages. However, the SSE handler sends raw ASGI events, causing 'AssertionError: Unexpected messa... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Ashutosh0x |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8c2fe7351e4e987cb8f75e2425a0b895d807779bc4c2d3c312be0a54082219f7 |
| turbo-cache-control | no-cache |
| go-import | github.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 862584018 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 862584018 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/python-sdk |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 491710c7a8eecca9d0a06bd157646f2685d8c87b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width