Title: fix(server): return stdio parse errors by he-yufeng · Pull Request #2766 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: fix(server): return stdio parse errors by he-yufeng · Pull Request #2766 · modelcontextprotocol/python-sdk
X Title: fix(server): return stdio parse errors by he-yufeng · Pull Request #2766 · modelcontextprotocol/python-sdk
Description: Summary make the stdio server return JSON-RPC error frames when incoming lines fail JSON-RPC parsing/validation recover a simple request id from the raw line when possible so id-bearing malformed requests do not stay pending keep later valid stdio messages flowing after an invalid line Fixes #2751. To verify uv run pytest tests/server/test_stdio.py -q uv run ruff check src/mcp/server/stdio.py tests/server/test_stdio.py uv run pyright src/mcp/server/stdio.py tests/server/test_stdio.py git diff --check
Open Graph Description: Summary make the stdio server return JSON-RPC error frames when incoming lines fail JSON-RPC parsing/validation recover a simple request id from the raw line when possible so id-bearing malformed ...
X Description: Summary make the stdio server return JSON-RPC error frames when incoming lines fail JSON-RPC parsing/validation recover a simple request id from the raw line when possible so id-bearing malformed ...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/2766
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:302939ce-637b-c2a5-b730-77572910e35f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | ABBC:1E383E:2E966A:401BF4:6A59C5D4 |
| html-safe-nonce | 20af153392383839d0527e8da6708cc50253f8524774153abaa299dce454dd30 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkJDOjFFMzgzRToyRTk2NkE6NDAxQkY0OjZBNTlDNUQ0IiwidmlzaXRvcl9pZCI6IjczNjExMDg1MTAxMTIzMzUzMTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 17f196e15b785fcb26fac4afaaafe43751e01c9eb7bdfcd760d7c3942889b330 |
| hovercard-subject-tag | pull_request:3791143494 |
| 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/2766/files |
| twitter:image | https://avatars.githubusercontent.com/u/40085740?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/40085740?s=400&v=4 |
| og:image:alt | Summary make the stdio server return JSON-RPC error frames when incoming lines fail JSON-RPC parsing/validation recover a simple request id from the raw line when possible so id-bearing malformed ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | ba3976babb66479b1c943a8edc0777d96157da48fadc0161f9ddb219deee8353 |
| 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 | ab680789ae4a316cdaf0d5a292a1760140931cc4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width