René's URL Explorer Experiment


Title: Propagate contextvars through anyio streams by aabmass · Pull Request #1996 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: Propagate contextvars through anyio streams by aabmass · Pull Request #1996 · modelcontextprotocol/python-sdk

X Title: Propagate contextvars through anyio streams by aabmass · Pull Request #1996 · modelcontextprotocol/python-sdk

Description: The official Python SDK for Model Context Protocol servers and clients - Propagate contextvars through anyio streams by aabmass · Pull Request #1996 · modelcontextprotocol/python-sdk

Open Graph Description: Fixes #1969 Part of #421 This PR propagates contextvars.Context through internal anyio memory streams and restores it in long running async tasks, so that they run with the correct context. Works f...

X Description: Fixes #1969 Part of #421 This PR propagates contextvars.Context through internal anyio memory streams and restores it in long running async tasks, so that they run with the correct context. Works f...

Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/1996

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:504ff365-6a8e-44b3-d89f-e8131991447f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCA00:ADFE8:625188:86DF19:6A61B14B
html-safe-noncefb8b36d71bce3a16ce1069c4409a6aee215f72770c37abd090b2ff088d09d85f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTAwOkFERkU4OjYyNTE4ODo4NkRGMTk6NkE2MUIxNEIiLCJ2aXNpdG9yX2lkIjoiODQ0MzUxNTI3MTcxODc0NDM5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac03035a79a152911e84149d91e41a65c1e1f4dde6c4174c72a6864ce7ab91b455
hovercard-subject-tagpull_request:3247714680
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/modelcontextprotocol/python-sdk/1996/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/7dcabc580f41400e383360d1da0d4aefb749637e0c96df05c3ba272e7ad2af6e/modelcontextprotocol/python-sdk/pull/1996
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7dcabc580f41400e383360d1da0d4aefb749637e0c96df05c3ba272e7ad2af6e/modelcontextprotocol/python-sdk/pull/1996
og:image:altFixes #1969 Part of #421 This PR propagates contextvars.Context through internal anyio memory streams and restores it in long running async tasks, so that they run with the correct context. Works f...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameaabmass
hostnamegithub.com
expected-hostnamegithub.com
None6f4633bcf01c1ad14b73fd07dd39ac31d61f3d3c2578ee08ec1792b7b351eeb9
turbo-cache-controlno-cache
go-importgithub.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git
octolytics-dimension-user_id182288589
octolytics-dimension-user_loginmodelcontextprotocol
octolytics-dimension-repository_id862584018
octolytics-dimension-repository_nwomodelcontextprotocol/python-sdk
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id862584018
octolytics-dimension-repository_network_root_nwomodelcontextprotocol/python-sdk
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseac296ae7f21856f1f92adbad22f870b6fbb4b907
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/1996#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F1996
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F1996
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=modelcontextprotocol%2Fpython-sdk
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/1996
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/1996
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/1996
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1996
modelcontextprotocol https://github.com/modelcontextprotocol
python-sdkhttps://github.com/modelcontextprotocol/python-sdk
Notifications https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Fork 3.7k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Star 23.7k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Code https://github.com/modelcontextprotocol/python-sdk
Issues 268 https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests 313 https://github.com/modelcontextprotocol/python-sdk/pulls
Actions https://github.com/modelcontextprotocol/python-sdk/actions
Projects https://github.com/modelcontextprotocol/python-sdk/projects
Models https://github.com/modelcontextprotocol/python-sdk/models
Security and quality 6 https://github.com/modelcontextprotocol/python-sdk/security
Insights https://github.com/modelcontextprotocol/python-sdk/pulse
Code https://github.com/modelcontextprotocol/python-sdk
Issues https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests https://github.com/modelcontextprotocol/python-sdk/pulls
Actions https://github.com/modelcontextprotocol/python-sdk/actions
Projects https://github.com/modelcontextprotocol/python-sdk/projects
Models https://github.com/modelcontextprotocol/python-sdk/models
Security and quality https://github.com/modelcontextprotocol/python-sdk/security
Insights https://github.com/modelcontextprotocol/python-sdk/pulse
aabmasshttps://github.com/aabmass
modelcontextprotocol:mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
aabmass:propagate-contextvarshttps://github.com/aabmass/mcp-python-sdk/tree/propagate-contextvars
Conversationhttps://github.com/modelcontextprotocol/python-sdk/pull/1996
Commits2 (2)https://github.com/modelcontextprotocol/python-sdk/pull/1996/commits
Checkshttps://github.com/modelcontextprotocol/python-sdk/pull/1996/checks
Files changedhttps://github.com/modelcontextprotocol/python-sdk/pull/1996/files
Propagate contextvars through anyio streamshttps://github.com/modelcontextprotocol/python-sdk/pull/1996#top
aabmasshttps://github.com/aabmass
modelcontextprotocol:mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
aabmass:propagate-contextvarshttps://github.com/aabmass/mcp-python-sdk/tree/propagate-contextvars
https://github.com/aabmass
aabmasshttps://github.com/aabmass
Feb 4, 2026https://github.com/modelcontextprotocol/python-sdk/pull/1996#issue-3898713034
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1996
#1969https://github.com/modelcontextprotocol/python-sdk/issues/1969
#421https://github.com/modelcontextprotocol/python-sdk/issues/421
contextvars.Contexthttps://docs.python.org/3/library/contextvars.html#contextvars.Context
#421https://github.com/modelcontextprotocol/python-sdk/issues/421
per-request authhttps://github.com/modelcontextprotocol/python-sdk/issues/1969
stdlib decimalhttps://docs.python.org/3/library/decimal.html#decimal.localcontext
starlette-contexthttps://github.com/tomwojcik/starlette-context
MCP Documentationhttps://modelcontextprotocol.io
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1996
https://github.com/aabmass
aabmasshttps://github.com/aabmass
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/d4b03e271e38be105fa9d1923961b3eb2cf6a396..8cdb6494e4004f6e24e95695cb2a5f6696e9b524
d4b03e2https://github.com/modelcontextprotocol/python-sdk/commit/d4b03e271e38be105fa9d1923961b3eb2cf6a396
8cdb649https://github.com/modelcontextprotocol/python-sdk/commit/8cdb6494e4004f6e24e95695cb2a5f6696e9b524
Compare https://github.com/modelcontextprotocol/python-sdk/compare/d4b03e271e38be105fa9d1923961b3eb2cf6a396..8cdb6494e4004f6e24e95695cb2a5f6696e9b524
February 6, 2026 03:44https://github.com/modelcontextprotocol/python-sdk/pull/1996#event-22577511227
https://github.com/aabmass
aabmasshttps://github.com/aabmass
Feb 6, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/1996#ref-issue-3866977549
Propagate ContextVars to Transport Layer in MCP Clients #1969 https://github.com/modelcontextprotocol/python-sdk/issues/1969
https://github.com/aabmass
aabmasshttps://github.com/aabmass
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/ba80bbbb64c5b3fc207f0ff131a0dcd78762276b..b936a629afb88267538844436b840c5c2681692b
ba80bbbhttps://github.com/modelcontextprotocol/python-sdk/commit/ba80bbbb64c5b3fc207f0ff131a0dcd78762276b
b936a62https://github.com/modelcontextprotocol/python-sdk/commit/b936a629afb88267538844436b840c5c2681692b
Compare https://github.com/modelcontextprotocol/python-sdk/compare/ba80bbbb64c5b3fc207f0ff131a0dcd78762276b..b936a629afb88267538844436b840c5c2681692b
February 10, 2026 03:27https://github.com/modelcontextprotocol/python-sdk/pull/1996#event-22661349334
https://github.com/aabmass
aabmasshttps://github.com/aabmass
February 10, 2026 03:29https://github.com/modelcontextprotocol/python-sdk/pull/1996#event-22661363395
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
enhancement https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3Aenhancement
P2 https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3AP2
Feb 10, 2026https://github.com/modelcontextprotocol/python-sdk/pull/1996#event-22679643665
https://github.com/aabmass
aabmasshttps://github.com/aabmass
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/8d84cb8b0bb37ea944f724623e61d17eaeda6c28..e2dfb3f9a47ad3a20156ac7e531be0c881910677
8d84cb8https://github.com/modelcontextprotocol/python-sdk/commit/8d84cb8b0bb37ea944f724623e61d17eaeda6c28
e2dfb3fhttps://github.com/modelcontextprotocol/python-sdk/commit/e2dfb3f9a47ad3a20156ac7e531be0c881910677
Compare https://github.com/modelcontextprotocol/python-sdk/compare/8d84cb8b0bb37ea944f724623e61d17eaeda6c28..e2dfb3f9a47ad3a20156ac7e531be0c881910677
February 13, 2026 21:50https://github.com/modelcontextprotocol/python-sdk/pull/1996#event-22779424933
https://github.com/aabmass
aabmasshttps://github.com/aabmass
Feb 13, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/1996#ref-issue-3481588973
Distributed traces with Pydantic-AI and Streamable HTTP MCP servers not correlated properly pydantic/logfire#1459 https://github.com/pydantic/logfire/issues/1459
https://github.com/aabmass
aabmasshttps://github.com/aabmass
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/e2dfb3f9a47ad3a20156ac7e531be0c881910677..12d68ee1c9f7f603725bd925d4a9f58c6fd22710
e2dfb3fhttps://github.com/modelcontextprotocol/python-sdk/commit/e2dfb3f9a47ad3a20156ac7e531be0c881910677
12d68eehttps://github.com/modelcontextprotocol/python-sdk/commit/12d68ee1c9f7f603725bd925d4a9f58c6fd22710
Compare https://github.com/modelcontextprotocol/python-sdk/compare/e2dfb3f9a47ad3a20156ac7e531be0c881910677..12d68ee1c9f7f603725bd925d4a9f58c6fd22710
February 16, 2026 17:14https://github.com/modelcontextprotocol/python-sdk/pull/1996#event-22831187202
https://github.com/Kludex
Kludexhttps://github.com/Kludex
Feb 16, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/1996#pullrequestreview-3810388408
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/1996/files
src/mcp/shared/message.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/1996/files#diff-e87607af2a5ca4eeaf91e471c711340e954899e1504ebb1fcc981afe4639bc70
Kludexhttps://github.com/Kludex
Feb 16, 2026https://github.com/modelcontextprotocol/python-sdk/pull/1996#discussion_r2813932367
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1996
aabmasshttps://github.com/aabmass
Feb 17, 2026https://github.com/modelcontextprotocol/python-sdk/pull/1996#discussion_r2817647783
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1996
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
python-sdk/src/mcp/shared/session.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/12d68ee1c9f7f603725bd925d4a9f58c6fd22710/src/mcp/shared/session.py#L182-L185
12d68eehttps://github.com/modelcontextprotocol/python-sdk/commit/12d68ee1c9f7f603725bd925d4a9f58c6fd22710
python-sdk/src/mcp/client/_transport.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/12d68ee1c9f7f603725bd925d4a9f58c6fd22710/src/mcp/client/_transport.py#L12
12d68eehttps://github.com/modelcontextprotocol/python-sdk/commit/12d68ee1c9f7f603725bd925d4a9f58c6fd22710
Distributed traces with Pydantic-AI and Streamable HTTP MCP servers not correlated properly pydantic/logfire#1459 (comment)https://github.com/pydantic/logfire/issues/1459#issuecomment-3371866831
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1996
aabmasshttps://github.com/aabmass
Feb 17, 2026https://github.com/modelcontextprotocol/python-sdk/pull/1996#discussion_r2819646985
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1996
aabmasshttps://github.com/aabmass
Feb 26, 2026https://github.com/modelcontextprotocol/python-sdk/pull/1996#discussion_r2859660083
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
PEP568https://peps.python.org/pep-0568/#:~:text=%23%20GeneratorType.__next__%0Adef%20__next__(self)%3A%0A%20%20%20%20if%20self.context%20is%20not%20None%3A%0A%20%20%20%20%20%20%20%20return%20self.context.push(self.__real_next__)%0A%20%20%20%20else%3A%0A%20%20%20%20%20%20%20%20return%20self.__real_next__()
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1996
https://github.com/aabmass
aabmasshttps://github.com/aabmass
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/bed40c1aedc295c7455ac4ba5286ca9accb4fc06..bd437146038806dcb0982bfaef87247c9ddec219
bed40c1https://github.com/modelcontextprotocol/python-sdk/commit/bed40c1aedc295c7455ac4ba5286ca9accb4fc06
bd43714https://github.com/modelcontextprotocol/python-sdk/commit/bd437146038806dcb0982bfaef87247c9ddec219
Compare https://github.com/modelcontextprotocol/python-sdk/compare/bed40c1aedc295c7455ac4ba5286ca9accb4fc06..bd437146038806dcb0982bfaef87247c9ddec219
February 21, 2026 00:25https://github.com/modelcontextprotocol/python-sdk/pull/1996#event-22962710433
OpenTelemetry inject trace context propagation in _meta #2093 https://github.com/modelcontextprotocol/python-sdk/pull/2093
OpenTelemetry MCP client spans #2132 https://github.com/modelcontextprotocol/python-sdk/pull/2132
OpenTelemetry extract trace context from _meta in incoming requests #2133 https://github.com/modelcontextprotocol/python-sdk/pull/2133
https://github.com/aabmass
aabmasshttps://github.com/aabmass
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/bd437146038806dcb0982bfaef87247c9ddec219..dcbd451337f891d6105ff60090a76abc997123e0
bd43714https://github.com/modelcontextprotocol/python-sdk/commit/bd437146038806dcb0982bfaef87247c9ddec219
dcbd451https://github.com/modelcontextprotocol/python-sdk/commit/dcbd451337f891d6105ff60090a76abc997123e0
Compare https://github.com/modelcontextprotocol/python-sdk/compare/bd437146038806dcb0982bfaef87247c9ddec219..dcbd451337f891d6105ff60090a76abc997123e0
February 27, 2026 05:58https://github.com/modelcontextprotocol/python-sdk/pull/1996#event-23126065727
aabmasshttps://github.com/aabmass
March 6, 2026 05:24https://github.com/modelcontextprotocol/python-sdk/pull/1996#commits-pushed-4445a3a
https://github.com/aabmass
Test caseshttps://github.com/modelcontextprotocol/python-sdk/pull/1996/commits/4445a3af0c8a61b91d4680f1cf7d09dc7c08c115
4445a3ahttps://github.com/modelcontextprotocol/python-sdk/pull/1996/commits/4445a3af0c8a61b91d4680f1cf7d09dc7c08c115
https://github.com/aabmass
Propagate contextvars through anyio streamshttps://github.com/modelcontextprotocol/python-sdk/pull/1996/commits/ab277262da6ba85e3e5be41f3b684c6a096ba185
ab27726https://github.com/modelcontextprotocol/python-sdk/pull/1996/commits/ab277262da6ba85e3e5be41f3b684c6a096ba185
https://github.com/aabmass
aabmasshttps://github.com/aabmass
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/dcbd451337f891d6105ff60090a76abc997123e0..ab277262da6ba85e3e5be41f3b684c6a096ba185
dcbd451https://github.com/modelcontextprotocol/python-sdk/commit/dcbd451337f891d6105ff60090a76abc997123e0
ab27726https://github.com/modelcontextprotocol/python-sdk/commit/ab277262da6ba85e3e5be41f3b684c6a096ba185
Compare https://github.com/modelcontextprotocol/python-sdk/compare/dcbd451337f891d6105ff60090a76abc997123e0..ab277262da6ba85e3e5be41f3b684c6a096ba185
March 6, 2026 05:29https://github.com/modelcontextprotocol/python-sdk/pull/1996#event-23321335744
Kludexhttps://github.com/Kludex
Mar 16, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/1996#ref-commit-6fef500
https://github.com/Kludex
Propagate contextvars.Context through anyio streams without modifying…https://github.com/modelcontextprotocol/python-sdk/commit/6fef500116b353a8c00a26bbbe24bca378bb6a8c
6fef500https://github.com/modelcontextprotocol/python-sdk/commit/6fef500116b353a8c00a26bbbe24bca378bb6a8c
#1996https://github.com/modelcontextprotocol/python-sdk/pull/1996
https://github.com/Kludex
Kludexhttps://github.com/Kludex
Mar 16, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/1996#ref-pullrequest-4080821512
Propagate contextvars.Context through anyio streams without modifying SessionMessage #2298 https://github.com/modelcontextprotocol/python-sdk/pull/2298
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Mar 24, 2026https://github.com/modelcontextprotocol/python-sdk/pull/1996#issuecomment-4119048532
#2298https://github.com/modelcontextprotocol/python-sdk/pull/2298
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1996
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Mar 24, 2026https://github.com/modelcontextprotocol/python-sdk/pull/1996#event-23856370327
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F1996
https://github.com/Kludex
Kludex https://github.com/Kludex
https://github.com/modelcontextprotocol/python-sdk/pull/1996/files/12d68ee1c9f7f603725bd925d4a9f58c6fd22710
enhancement https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3Aenhancement
P2 https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3AP2
Propagate ContextVars to Transport Layer in MCP Clients https://github.com/modelcontextprotocol/python-sdk/issues/1969
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1996
https://github.com/aabmass
https://github.com/maxisbey
https://github.com/Kludex
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.