Title: fix: buffer stdio server writes during progress notifications by 2830500285 · Pull Request #2654 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: fix: buffer stdio server writes during progress notifications by 2830500285 · Pull Request #2654 · modelcontextprotocol/python-sdk
X Title: fix: buffer stdio server writes during progress notifications by 2830500285 · Pull Request #2654 · modelcontextprotocol/python-sdk
Description: Summary buffer the server stdio write stream by one message so a handler can queue its final response while stdout is still flushing an earlier notification add a regression test covering a slow notification write followed by a response send Fixes #1141. Validation uv run --frozen --no-sync pytest tests/server/test_stdio.py tests/shared/test_progress_notifications.py -q uv run --frozen --no-sync ruff format --check src/mcp/server/stdio.py tests/server/test_stdio.py uv run --frozen --no-sync ruff check src/mcp/server/stdio.py tests/server/test_stdio.py uv run --frozen --no-sync pyright src/mcp/server/stdio.py tests/server/test_stdio.py Note: local uv run --frozen sync attempted to fetch the git dependency strict-no-cover, but GitHub fetches for that dependency were failing from this machine. I used the already-synced virtualenv with --no-sync for the targeted checks above.
Open Graph Description: Summary buffer the server stdio write stream by one message so a handler can queue its final response while stdout is still flushing an earlier notification add a regression test covering a slow n...
X Description: Summary buffer the server stdio write stream by one message so a handler can queue its final response while stdout is still flushing an earlier notification add a regression test covering a slow n...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/2654
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:14da68f0-ab85-81d5-2894-09419e072210 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E710:3EA950:1C8A965:259CA5B:6A5C88D6 |
| html-safe-nonce | 9c3f07879d163623246db4f3af8bc7611c3376eca2ddd01f2c7c8a4c61da7f5c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzEwOjNFQTk1MDoxQzhBOTY1OjI1OUNBNUI6NkE1Qzg4RDYiLCJ2aXNpdG9yX2lkIjoiMzI1MTUyMTkyODI3NzI5NzM2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d331792ab2533b426b97550a947772ce96b9e564b15a5635e4d9fc85128087de |
| hovercard-subject-tag | pull_request:3723316847 |
| 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/2654/files |
| twitter:image | https://avatars.githubusercontent.com/u/156506452?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/156506452?s=400&v=4 |
| og:image:alt | Summary buffer the server stdio write stream by one message so a handler can queue its final response while stdout is still flushing an earlier notification add a regression test covering a slow n... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width