Title: No default timeout for requests (unlike TS SDK) · Issue #1374 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: No default timeout for requests (unlike TS SDK) · Issue #1374 · modelcontextprotocol/python-sdk
X Title: No default timeout for requests (unlike TS SDK) · Issue #1374 · modelcontextprotocol/python-sdk
Description: Initial Checks I confirm that I'm using the latest version of MCP Python SDK I confirm that I searched for my issue in https://github.com/modelcontextprotocol/python-sdk/issues before opening this issue Description Spec states: Implement...
Open Graph Description: Initial Checks I confirm that I'm using the latest version of MCP Python SDK I confirm that I searched for my issue in https://github.com/modelcontextprotocol/python-sdk/issues before opening this ...
X Description: Initial Checks I confirm that I'm using the latest version of MCP Python SDK I confirm that I searched for my issue in https://github.com/modelcontextprotocol/python-sdk/issues before opening t...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/issues/1374
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"No default timeout for requests (unlike TS SDK)","articleBody":"### Initial Checks\n\n- [x] I confirm that I'm using the latest version of MCP Python SDK\n- [x] I confirm that I searched for my issue in https://github.com/modelcontextprotocol/python-sdk/issues before opening this issue\n\n### Description\n\n[Spec states](https://modelcontextprotocol.io/specification/2025-06-18/basic/lifecycle#timeouts): `Implementations SHOULD establish timeouts for all sent requests, to prevent hung connections and resource exhaustion.`\n\nThe TypeScript SDK does have a default timeout of 60 seconds on requests, and the difference between Python \u0026 TypeScript is the crux of https://github.com/modelcontextprotocol/typescript-sdk/issues/245 (which also suggests 60 seconds might not be long enough). Also related, TypeScript has a `resetTimeoutOnProgress` option (defaulting to falst), which would probably be useful if we do introduce a default to the Python SDK.\n\n### Example Code\n\n```Python\n\n```\n\n### Python \u0026 MCP Python SDK\n\n```Text\nLatest\n```","author":{"url":"https://github.com/ochafik","@type":"Person","name":"ochafik"},"datePublished":"2025-09-17T15:33:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/1374/python-sdk/issues/1374"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f6b87261-d03f-591a-3a82-de5b7fa98a04 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8858:23021C:F6E6AD:14BE59C:6A5B6FEE |
| html-safe-nonce | defe85357b051af2174309c3f2fc58ffd23a3c745a579089c78d3e7ed3be09b5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODU4OjIzMDIxQzpGNkU2QUQ6MTRCRTU5Qzo2QTVCNkZFRSIsInZpc2l0b3JfaWQiOiI4NjQwMzkxMjgxMTY3MjY1Nzc0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 97f11b360d7999cf4a1eca0b15b5acced976ad87243dc28b4ecbaa5ca53b5d4b |
| hovercard-subject-tag | issue:3426813878 |
| github-keyboard-shortcuts | repository,issues,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/issues/show/modelcontextprotocol/python-sdk/1374/issue_layout |
| twitter:image | https://opengraph.githubassets.com/696dbf172ef7c5ba1a3a14d77a7e5ff0d7055c3c6f56130868625f01aa0cb0f1/modelcontextprotocol/python-sdk/issues/1374 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/696dbf172ef7c5ba1a3a14d77a7e5ff0d7055c3c6f56130868625f01aa0cb0f1/modelcontextprotocol/python-sdk/issues/1374 |
| og:image:alt | Initial Checks I confirm that I'm using the latest version of MCP Python SDK I confirm that I searched for my issue in https://github.com/modelcontextprotocol/python-sdk/issues before opening this ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ochafik |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width