Title: Run synchronous tools in worker threads to avoid blocking the event loop by pradeeptac · Pull Request #1902 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: Run synchronous tools in worker threads to avoid blocking the event loop by pradeeptac · Pull Request #1902 · modelcontextprotocol/python-sdk
X Title: Run synchronous tools in worker threads to avoid blocking the event loop by pradeeptac · Pull Request #1902 · modelcontextprotocol/python-sdk
Description: This PR ensures that synchronous tools are never executed inline on the event loop. All sync functions invoked through call_fn_with_arg_validation are now offloaded to worker threads using anyio.to...
Open Graph Description: This PR ensures that synchronous tools are never executed inline on the event loop. All sync functions invoked through call_fn_with_arg_validation are now offloaded to worker threads using anyio.to...
X Description: This PR ensures that synchronous tools are never executed inline on the event loop. All sync functions invoked through call_fn_with_arg_validation are now offloaded to worker threads using anyio.to...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/1902
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:cdd2fa8b-4f08-58b2-b94e-66c9e20c56d4 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B728:3D9BFF:6815C:897D2:696E889C |
| html-safe-nonce | 40bef9554d1cb742f579e5285365ef156fae1c54297778c3a347e2a5e461b997 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzI4OjNEOUJGRjo2ODE1Qzo4OTdEMjo2OTZFODg5QyIsInZpc2l0b3JfaWQiOiIyMTIxNzczMDEzNDYyMzIxMzA4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c14037f5d9c84af8809bd3b9b3ddf3050dc28f93fe2be38db8fdd4661548334b |
| hovercard-subject-tag | pull_request:3183910727 |
| 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/_view_fragments/voltron/pull_requests/show/modelcontextprotocol/python-sdk/1902/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/f45756b96df318cc9cc386779e2d1aa84248636390a27466840787aaae46030c/modelcontextprotocol/python-sdk/pull/1902 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f45756b96df318cc9cc386779e2d1aa84248636390a27466840787aaae46030c/modelcontextprotocol/python-sdk/pull/1902 |
| og:image:alt | This PR ensures that synchronous tools are never executed inline on the event loop. All sync functions invoked through call_fn_with_arg_validation are now offloaded to worker threads using anyio.to... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pradeeptac |
| hostname | github.com |
| expected-hostname | github.com |
| None | fdad15fd2ad43212aa8b8be5f2c2725550f8374ceeeb154a999ad9145b43f3f7 |
| turbo-cache-control | no-preview |
| 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 | 27b23bc056eb973d350fc95afc848757edb9e7a9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width