| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/commits(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:d7d2f28a-0873-a2c4-d32b-613a14f278a8 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C2A8:1FDBC6:1B44F6:24646D:6AFD11F9 |
| html-safe-nonce | ca713029bb80f2d4d05385a556f387a49110448730d4e6cb745795c7535328f2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkE4OjFGREJDNjoxQjQ0RjY6MjQ2NDZEOjZBRkQxMUY5IiwidmlzaXRvcl9pZCI6IjE5ODkxMzIzMDI5OTAyNTA0ODkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f834615d5332de4ce65f1a1bf669d51d03aa343b95ee28b39dbc9e3439efea29 |
| hovercard-subject-tag | pull_request:3326408465 |
| 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 | ///pull_requests/show/commits |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits |
| twitter:image | https://opengraph.githubassets.com/1380fe5a88310dafb7006e5a258cd871f826c7f366a675a71219d7259b071ffd/modelcontextprotocol/python-sdk/pull/2145 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1380fe5a88310dafb7006e5a258cd871f826c7f366a675a71219d7259b071ffd/modelcontextprotocol/python-sdk/pull/2145 |
| og:image:alt | Summary
Fix memory leak where run_stateless_server tasks accumulate indefinitely in the manager's global task group after client disconnects
Use request-scoped task groups instead of the globa... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wiggzz |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7c34e25df4e46e972c8f0225e63410231bdeb9ea5634597c712796bbcdb2e627 |
| 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 | 8fa571ebaa95e4e6bf872197c0e84b7dc48e6785 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2145%2Fcommits |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2145%2Fcommits |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=modelcontextprotocol%2Fpython-sdk |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits |
| modelcontextprotocol | https://github.com/modelcontextprotocol |
| python-sdk | https://github.com/modelcontextprotocol/python-sdk |
| Code | https://github.com/modelcontextprotocol/python-sdk |
| Issues306 (306) | https://github.com/modelcontextprotocol/python-sdk/issues |
| Pull requests112 (112) | https://github.com/modelcontextprotocol/python-sdk/pulls |
| Actions | https://github.com/modelcontextprotocol/python-sdk/actions |
| Projects | https://github.com/modelcontextprotocol/python-sdk/projects |
| Security and quality12 (12) | https://github.com/modelcontextprotocol/python-sdk/security |
| Insights | https://github.com/modelcontextprotocol/python-sdk/insights |
| https://github.com/modelcontextprotocol/python-sdk |
| wiggzz | https://github.com/wiggzz |
| modelcontextprotocol:main | https://github.com/modelcontextprotocol/python-sdk/tree/main |
| wiggzz:fix/stateless-task-group-leak | https://github.com/wiggzz/python-sdk/tree/fix/stateless-task-group-leak |
| Conversation | https://github.com/modelcontextprotocol/python-sdk/pull/2145 |
| Commits17 (17) | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits |
| Checks | https://github.com/modelcontextprotocol/python-sdk/pull/2145/checks |
| Files changed | https://github.com/modelcontextprotocol/python-sdk/pull/2145/files |
| Fix stateless HTTP task accumulation causing memory leak | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits#top |
| wiggzz | https://github.com/wiggzz |
| modelcontextprotocol:main | https://github.com/modelcontextprotocol/python-sdk/tree/main |
| wiggzz:fix/stateless-task-group-leak | https://github.com/wiggzz/python-sdk/tree/fix/stateless-task-group-leak |
| Fix stateless HTTP task accumulation causing memory leak (#756) | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits/6bd4531c7b387279d1e6919d82c7bc0985693fa4 |
| wiggzz | https://github.com/modelcontextprotocol/python-sdk/commits?author=wiggzz |
| claude | https://github.com/modelcontextprotocol/python-sdk/commits?author=claude |
| 6bd4531 | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits/6bd4531c7b387279d1e6919d82c7bc0985693fa4 |
| https://github.com/modelcontextprotocol/python-sdk/tree/6bd4531c7b387279d1e6919d82c7bc0985693fa4 |
| Fix issue reference from #756 (closed) to #1764 (open) | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits/8bfcca2fbc5cf35601e4d06163d87f01ffcbef20 |
| wiggzz | https://github.com/modelcontextprotocol/python-sdk/commits?author=wiggzz |
| claude | https://github.com/modelcontextprotocol/python-sdk/commits?author=claude |
| 8bfcca2 | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits/8bfcca2fbc5cf35601e4d06163d87f01ffcbef20 |
| https://github.com/modelcontextprotocol/python-sdk/tree/8bfcca2fbc5cf35601e4d06163d87f01ffcbef20 |
| Fix CI: coverage, ruff format, and remove unused handle_list_tools | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits/bc590325188df7f80450d87a4262be6c197a6cec |
| wiggzz | https://github.com/modelcontextprotocol/python-sdk/commits?author=wiggzz |
| claude | https://github.com/modelcontextprotocol/python-sdk/commits?author=claude |
| bc59032 | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits/bc590325188df7f80450d87a4262be6c197a6cec |
| https://github.com/modelcontextprotocol/python-sdk/tree/bc590325188df7f80450d87a4262be6c197a6cec |
| Remove over-conservative pragma: no cover annotations | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits/4116e0294e2a74872819ab13d64e84b9a5b57849 |
| wiggzz | https://github.com/modelcontextprotocol/python-sdk/commits?author=wiggzz |
| claude | https://github.com/modelcontextprotocol/python-sdk/commits?author=claude |
| 4116e02 | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits/4116e0294e2a74872819ab13d64e84b9a5b57849 |
| https://github.com/modelcontextprotocol/python-sdk/tree/4116e0294e2a74872819ab13d64e84b9a5b57849 |
| Revert sleep(0) approach — coverage was racy | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits/10957676eaef87722193c2fab468692265e67eb9 |
| wiggzz | https://github.com/modelcontextprotocol/python-sdk/commits?author=wiggzz |
| claude | https://github.com/modelcontextprotocol/python-sdk/commits?author=claude |
| 1095767 | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits/10957676eaef87722193c2fab468692265e67eb9 |
| https://github.com/modelcontextprotocol/python-sdk/tree/10957676eaef87722193c2fab468692265e67eb9 |
| Move pragma: no cover to logger.debug (the unreachable line) | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits/f6909a10b29ea50bb31c05792eef5f6e63defb94 |
| wiggzz | https://github.com/modelcontextprotocol/python-sdk/commits?author=wiggzz |
| claude | https://github.com/modelcontextprotocol/python-sdk/commits?author=claude |
| f6909a1 | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits/f6909a10b29ea50bb31c05792eef5f6e63defb94 |
| https://github.com/modelcontextprotocol/python-sdk/tree/f6909a10b29ea50bb31c05792eef5f6e63defb94 |
| Move terminate() after task group exit for deterministic cancellation | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits/2e0e00b1f926f7e21ece29dfa15be3760db46255 |
| wiggzz | https://github.com/modelcontextprotocol/python-sdk/commits?author=wiggzz |
| claude | https://github.com/modelcontextprotocol/python-sdk/commits?author=claude |
| 2e0e00b | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits/2e0e00b1f926f7e21ece29dfa15be3760db46255 |
| https://github.com/modelcontextprotocol/python-sdk/tree/2e0e00b1f926f7e21ece29dfa15be3760db46255 |
| Use lax no cover for timing-dependent exception paths; fix ruff format | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits/1af03f876b090d189512b40a13be53be34d51d34 |
| wiggzz | https://github.com/modelcontextprotocol/python-sdk/commits?author=wiggzz |
| claude | https://github.com/modelcontextprotocol/python-sdk/commits?author=claude |
| 1af03f8 | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits/1af03f876b090d189512b40a13be53be34d51d34 |
| https://github.com/modelcontextprotocol/python-sdk/tree/1af03f876b090d189512b40a13be53be34d51d34 |
| Fix ruff format and Python 3.11 coverage false negatives in test | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits/bf8cf4326642207609b01d2c1f7fe0601cc15f79 |
| wiggzz | https://github.com/modelcontextprotocol/python-sdk/commits?author=wiggzz |
| claude | https://github.com/modelcontextprotocol/python-sdk/commits?author=claude |
| bf8cf43 | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits/bf8cf4326642207609b01d2c1f7fe0601cc15f79 |
| https://github.com/modelcontextprotocol/python-sdk/tree/bf8cf4326642207609b01d2c1f7fe0601cc15f79 |
| Remove unused Tool import flagged by ruff | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits/24da35a945c84b52d7151a0d17c31d0e76c72e42 |
| wiggzz | https://github.com/modelcontextprotocol/python-sdk/commits?author=wiggzz |
| claude | https://github.com/modelcontextprotocol/python-sdk/commits?author=claude |
| 24da35a | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits/24da35a945c84b52d7151a0d17c31d0e76c72e42 |
| https://github.com/modelcontextprotocol/python-sdk/tree/24da35a945c84b52d7151a0d17c31d0e76c72e42 |
| Fix pyright errors for private task group access in test | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits/35f08c78570d46a54e49480ca5cc3c00b5689778 |
| wiggzz | https://github.com/modelcontextprotocol/python-sdk/commits?author=wiggzz |
| claude | https://github.com/modelcontextprotocol/python-sdk/commits?author=claude |
| 35f08c7 | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits/35f08c78570d46a54e49480ca5cc3c00b5689778 |
| https://github.com/modelcontextprotocol/python-sdk/tree/35f08c78570d46a54e49480ca5cc3c00b5689778 |
| Add assertion for session_manager not None (pyright) | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits/a7907d069343b98f9edbb51cc8f5fd21fd95a751 |
| wiggzz | https://github.com/modelcontextprotocol/python-sdk/commits?author=wiggzz |
| claude | https://github.com/modelcontextprotocol/python-sdk/commits?author=claude |
| a7907d0 | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits/a7907d069343b98f9edbb51cc8f5fd21fd95a751 |
| https://github.com/modelcontextprotocol/python-sdk/tree/a7907d069343b98f9edbb51cc8f5fd21fd95a751 |
| Run handle_request in caller context, not as child task | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits/02547cbc146aef4989925a3cb8a6b26bd22e87ce |
| wiggzz | https://github.com/modelcontextprotocol/python-sdk/commits?author=wiggzz |
| claude | https://github.com/modelcontextprotocol/python-sdk/commits?author=claude |
| 02547cb | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits/02547cbc146aef4989925a3cb8a6b26bd22e87ce |
| https://github.com/modelcontextprotocol/python-sdk/tree/02547cbc146aef4989925a3cb8a6b26bd22e87ce |
| Add graceful SSE drain on session manager shutdown | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits/3179143b9ef2bb243dcaf93b2e31e797f7c793e4 |
| https://github.com/wiggzz |
| wiggzz | https://github.com/modelcontextprotocol/python-sdk/commits?author=wiggzz |
| 3179143 | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits/3179143b9ef2bb243dcaf93b2e31e797f7c793e4 |
| https://github.com/modelcontextprotocol/python-sdk/tree/3179143b9ef2bb243dcaf93b2e31e797f7c793e4 |
| Fix CI: pyright type errors in test and strict-no-cover false positive | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits/0d513a699e297b4ab11118aa163293a96af5c558 |
| https://github.com/wiggzz |
| wiggzz | https://github.com/modelcontextprotocol/python-sdk/commits?author=wiggzz |
| 0d513a6 | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits/0d513a699e297b4ab11118aa163293a96af5c558 |
| https://github.com/modelcontextprotocol/python-sdk/tree/0d513a699e297b4ab11118aa163293a96af5c558 |
| Merge branch 'main' into fix/stateless-task-group-leak | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits/bb1a2184674ef7cfcfdd661bf24878af12c53d66 |
| https://github.com/wiggzz |
| wiggzz | https://github.com/modelcontextprotocol/python-sdk/commits?author=wiggzz |
| bb1a218 | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits/bb1a2184674ef7cfcfdd661bf24878af12c53d66 |
| https://github.com/modelcontextprotocol/python-sdk/tree/bb1a2184674ef7cfcfdd661bf24878af12c53d66 |
| Merge branch 'main' into fix/stateless-task-group-leak | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits/6237bc3fcee581c456f1281a88173c591c10ae81 |
| https://github.com/wiggzz |
| wiggzz | https://github.com/modelcontextprotocol/python-sdk/commits?author=wiggzz |
| 6237bc3 | https://github.com/modelcontextprotocol/python-sdk/pull/2145/commits/6237bc3fcee581c456f1281a88173c591c10ae81 |
| https://github.com/modelcontextprotocol/python-sdk/tree/6237bc3fcee581c456f1281a88173c591c10ae81 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |