René's URL Explorer Experiment


Title: Propagate contextvars.Context through anyio streams without modifying SessionMessage by Kludex · Pull Request #2298 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: Propagate contextvars.Context through anyio streams without modifying SessionMessage by Kludex · Pull Request #2298 · modelcontextprotocol/python-sdk

X Title: Propagate contextvars.Context through anyio streams without modifying SessionMessage by Kludex · Pull Request #2298 · modelcontextprotocol/python-sdk

Description: Summary MCP server handlers currently lose the sender's contextvars.Context. When a client sets context variables (e.g. OpenTelemetry trace/span IDs) before sending a request, the server handler runs in the receive loop's context instead, breaking trace propagation. This PR propagates contextvars.Context through anyio memory streams without adding any field to SessionMessage, addressing Kludex's review comment on the previous approach (#1996). How it works ContextSendStream / ContextReceiveStream wrappers capture the sender's context at send() time and expose it via last_context on the receive side BaseSession._receive_loop reads last_context and passes it to RequestResponder, which carries it to the server handler boundary lowlevel/server.py uses context.run(tg.start_soon, handler) so handler tasks inherit the sender's context Client transport post_writer functions restore sender context the same way Protocol-based ReadStream / WriteStream replace concrete MemoryObjectSendStream / MemoryObjectReceiveStream types, so both raw and context-aware streams are accepted create_context_streams[T](n) mirrors anyio's bracket syntax with proper generic propagation Additional changes Switch coverage config from exclude_lines to exclude_also to inherit coverage.py's built-in defaults (which handle ... stubs and pragma: no cover) Fixes #1969 Part of #421 Test plan test_context_propagation: sets a contextvar via a context manager (which resets on exit), calls a tool, verifies the server handler sees the sender's value. Fails on main, passes with this PR. All existing tests pass pyright passes with 0 errors

Open Graph Description: Summary MCP server handlers currently lose the sender's contextvars.Context. When a client sets context variables (e.g. OpenTelemetry trace/span IDs) before sending a request, the server handle...

X Description: Summary MCP server handlers currently lose the sender's contextvars.Context. When a client sets context variables (e.g. OpenTelemetry trace/span IDs) before sending a request, the server ha...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:991ae536-e599-18ca-04b8-ec033861a7f6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCCD6:1E2ADA:A26128:E01E71:6A6198BA
html-safe-noncec2591da1fbf1a79e6db4fc273b3767307bc47bbaefeaec9c1faec8401f7ce704
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0Q2OjFFMkFEQTpBMjYxMjg6RTAxRTcxOjZBNjE5OEJBIiwidmlzaXRvcl9pZCI6IjQ5NzgyMTA0ODQ3NzkwNjM0ODIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac7fcb233eef523e10c5ca750e46f2cef5378758cf8af5db3f2667f34fa3927f48
hovercard-subject-tagpull_request:3403036968
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/modelcontextprotocol/python-sdk/pull/2298/files
twitter:imagehttps://avatars.githubusercontent.com/u/7353520?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/7353520?s=400&v=4
og:image:altSummary MCP server handlers currently lose the sender's contextvars.Context. When a client sets context variables (e.g. OpenTelemetry trace/span IDs) before sending a request, the server handle...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonec28c2f6607f2aacbd934868d997038895c9780d08babfe918550d73773326f4c
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecd05235d52ffb3318513d883a56c87a121015c8b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/2298/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2298%2Ffiles
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%2F2298%2Ffiles
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%2Ffiles&source=header-repo&source_repo=modelcontextprotocol%2Fpython-sdk
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2298/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2298/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2298/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2298/files
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
Sign up for GitHub https://github.com/signup?return_to=%2Fmodelcontextprotocol%2Fpython-sdk%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk%2Fissues%2Fnew%2Fchoose
Kludexhttps://github.com/Kludex
mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
try-no-context-fieldhttps://github.com/modelcontextprotocol/python-sdk/tree/try-no-context-field
Conversation 12 https://github.com/modelcontextprotocol/python-sdk/pull/2298
Commits 16 https://github.com/modelcontextprotocol/python-sdk/pull/2298/commits
Checks 29 https://github.com/modelcontextprotocol/python-sdk/pull/2298/checks
Files changed https://github.com/modelcontextprotocol/python-sdk/pull/2298/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2298/files
Propagate contextvars.Context through anyio streams without modifying SessionMessage https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#top
Show all changes 16 commits https://github.com/modelcontextprotocol/python-sdk/pull/2298/files
6fef500 Propagate contextvars.Context through anyio streams without modifying… Kludex Mar 16, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2298/commits/6fef500116b353a8c00a26bbbe24bca378bb6a8c
2513380 Add pragma: no cover to Protocol stubs and unused clone() methods Kludex Mar 16, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2298/commits/2513380f03bba03cb2e5d5fa5c82a68dcbf9965b
1b34f2e Use pragma: no branch for Protocol stubs to satisfy strict-no-cover Kludex Mar 16, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2298/commits/1b34f2eb21c5382f83b712dce2952fcc15dff6c0
32565b3 Address review feedback: ExceptionGroup bug, reverse dependency, type… Kludex Mar 16, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2298/commits/32565b3ebe3b0aba566a7150f637b0b3f86af7ac
b321dd2 Restore correct context propagation for async handlers Kludex Mar 16, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2298/commits/b321dd206bb318e4ccec416fd26f07d773b76efb
ef7e4b4 Remove unnecessary pragmas and fix generic type propagation Kludex Mar 31, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2298/commits/ef7e4b4fa1b3a0a199153c4d9273accf9f739624
ab4f1c5 Move sender context lookup into _handle_session_message Kludex Mar 31, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2298/commits/ab4f1c54fd68465a0e74f6a105bbcbba073ab703
dc8d842 Merge remote-tracking branch 'origin/main' into try-no-context-field Kludex Mar 31, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2298/commits/dc8d842d1b0f0b65822eb8791b2d9b9cbda01c25
1517b79 Add pragma: no branch to Protocol stubs Kludex Mar 31, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2298/commits/1517b79bc9ae96d36ed6fbf7852741a8f639dd29
379fe57 Use exclude_also instead of exclude_lines for coverage config Kludex Mar 31, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2298/commits/379fe57261edddf26e37abe4fb27745d3c435cf6
8dd89fd Use exclude_also instead of exclude_lines for coverage config Kludex Mar 31, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2298/commits/8dd89fd19a0d6056e2160f4e43356b6fe76ebc51
aec97fb Merge branch 'try-no-context-field' of github.com:modelcontextprotoco… Kludex Mar 31, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2298/commits/aec97fb81e591c23e84f734f10b2627cd9a3169f
df6df0e Remove pragma: no branch from Protocol stubs Kludex Mar 31, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2298/commits/df6df0ec0525023acc5b77d6325f97f87e23513f
da049fb Add test for contextvars propagation from client to server handler Kludex Mar 31, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2298/commits/da049fb42ffea534464a3c7861cb53b6661c6f1f
dee1291 Rewrite context propagation test to actually verify the feature Kludex Mar 31, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2298/commits/dee12910b9e0c061501d52a232d1d35925b947a9
6956854 Add assertion message to context propagation test Kludex Mar 31, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2298/commits/69568544a00a10347bd22a51ff91abb436434a6c
Clear filters https://github.com/modelcontextprotocol/python-sdk/pull/2298/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2298/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2298/files
main.py https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-967e8584a0021a6f5b81aa9ef3f1e549efd761fe3fb4733e5212ce027e0bcfce
pyproject.toml https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
__main__.py https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-acedd8b44e9fb1a288cc95191fc773e99af0b75edaa11c78295dad3147cb7eea
_transport.py https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-b8058afecd14e079d4edd2712bcc367970848ef2ee3bfd7cbef14909f9664ded
session.py https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
sse.py https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336
streamable_http.py https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
server.py https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-b21bf5e21c058ccfddb404c209f2d4288e4f32b121111ffc9d466638631d13e4
session.py https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-9a603a2587011a188aa76ca19a32fcd343a253516325fbcfb4f7bfb6a814634c
sse.py https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-db3d89720f05f9c8a375c9ce008a6b477be25dccabca86a7d422814c5ab3f12c
stdio.py https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-19a44750677a645222700b9984d14682f626518ae045cf909c4daf665cb3264e
streamable_http.py https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-0119e4c1bbf2fde7ba89b9c9f5bc472ccc2332f84e96e47cf9e45cebef801da3
websocket.py https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-50e548f9338e642984d43370856447086548f28b9f0c2732988e64e7a56d2b31
_context_streams.py https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-ed21a3b904d363c8e8804cc7f36cf7150c855ff3b8f43cbe7b10e4966eeb4d4a
_stream_protocols.py https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-0c19ade09bbbc8931adba3c30e6646dfb6962b7a808dbcbfeb84adc44e529ec8
memory.py https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-fda62e83f7fbe11b6291a8eb980526a6465853fcc15dba2269425cd3de0801dc
session.py https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-aaa1596dd4db91f5cd7f743c8afbe58596daf01a2ecec4a0024768f7409fb1dc
conftest.py https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-d66be9fe425fabad4b8eeaa4dd90b911ac45443d2575d828a29fc74be7ea2f34
test_client.py https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-f91d7d1bfecb41d80a4cc73133b82560b7284a2af2d6630c49b983ca9366ea13
test_streamable_http.py https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-57d1f3c64af36960aa61b1d77387fb6201b90fbc2f3d606bf2761315ce618cc5
examples/clients/simple-auth-client/mcp_simple_auth_client/main.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-967e8584a0021a6f5b81aa9ef3f1e549efd761fe3fb4733e5212ce027e0bcfce
View file https://github.com/modelcontextprotocol/python-sdk/blob/69568544a00a10347bd22a51ff91abb436434a6c/examples/clients/simple-auth-client/mcp_simple_auth_client/main.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2298/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-967e8584a0021a6f5b81aa9ef3f1e549efd761fe3fb4733e5212ce027e0bcfce
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-967e8584a0021a6f5b81aa9ef3f1e549efd761fe3fb4733e5212ce027e0bcfce
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-967e8584a0021a6f5b81aa9ef3f1e549efd761fe3fb4733e5212ce027e0bcfce
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-967e8584a0021a6f5b81aa9ef3f1e549efd761fe3fb4733e5212ce027e0bcfce
pyproject.tomlhttps://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
View file https://github.com/modelcontextprotocol/python-sdk/blob/69568544a00a10347bd22a51ff91abb436434a6c/pyproject.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2298/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
src/mcp/client/__main__.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-acedd8b44e9fb1a288cc95191fc773e99af0b75edaa11c78295dad3147cb7eea
View file https://github.com/modelcontextprotocol/python-sdk/blob/69568544a00a10347bd22a51ff91abb436434a6c/src/mcp/client/__main__.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2298/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-acedd8b44e9fb1a288cc95191fc773e99af0b75edaa11c78295dad3147cb7eea
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-acedd8b44e9fb1a288cc95191fc773e99af0b75edaa11c78295dad3147cb7eea
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-acedd8b44e9fb1a288cc95191fc773e99af0b75edaa11c78295dad3147cb7eea
src/mcp/client/_transport.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-b8058afecd14e079d4edd2712bcc367970848ef2ee3bfd7cbef14909f9664ded
View file https://github.com/modelcontextprotocol/python-sdk/blob/69568544a00a10347bd22a51ff91abb436434a6c/src/mcp/client/_transport.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2298/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-b8058afecd14e079d4edd2712bcc367970848ef2ee3bfd7cbef14909f9664ded
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-b8058afecd14e079d4edd2712bcc367970848ef2ee3bfd7cbef14909f9664ded
src/mcp/client/session.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
View file https://github.com/modelcontextprotocol/python-sdk/blob/69568544a00a10347bd22a51ff91abb436434a6c/src/mcp/client/session.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2298/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
src/mcp/client/sse.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336
View file https://github.com/modelcontextprotocol/python-sdk/blob/69568544a00a10347bd22a51ff91abb436434a6c/src/mcp/client/sse.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2298/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336
src/mcp/client/streamable_http.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
View file https://github.com/modelcontextprotocol/python-sdk/blob/69568544a00a10347bd22a51ff91abb436434a6c/src/mcp/client/streamable_http.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2298/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
src/mcp/server/lowlevel/server.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-b21bf5e21c058ccfddb404c209f2d4288e4f32b121111ffc9d466638631d13e4
View file https://github.com/modelcontextprotocol/python-sdk/blob/69568544a00a10347bd22a51ff91abb436434a6c/src/mcp/server/lowlevel/server.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2298/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-b21bf5e21c058ccfddb404c209f2d4288e4f32b121111ffc9d466638631d13e4
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-b21bf5e21c058ccfddb404c209f2d4288e4f32b121111ffc9d466638631d13e4
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-b21bf5e21c058ccfddb404c209f2d4288e4f32b121111ffc9d466638631d13e4
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-b21bf5e21c058ccfddb404c209f2d4288e4f32b121111ffc9d466638631d13e4
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-b21bf5e21c058ccfddb404c209f2d4288e4f32b121111ffc9d466638631d13e4
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-b21bf5e21c058ccfddb404c209f2d4288e4f32b121111ffc9d466638631d13e4
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-b21bf5e21c058ccfddb404c209f2d4288e4f32b121111ffc9d466638631d13e4
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-b21bf5e21c058ccfddb404c209f2d4288e4f32b121111ffc9d466638631d13e4
src/mcp/server/session.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-9a603a2587011a188aa76ca19a32fcd343a253516325fbcfb4f7bfb6a814634c
View file https://github.com/modelcontextprotocol/python-sdk/blob/69568544a00a10347bd22a51ff91abb436434a6c/src/mcp/server/session.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2298/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-9a603a2587011a188aa76ca19a32fcd343a253516325fbcfb4f7bfb6a814634c
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-9a603a2587011a188aa76ca19a32fcd343a253516325fbcfb4f7bfb6a814634c
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-9a603a2587011a188aa76ca19a32fcd343a253516325fbcfb4f7bfb6a814634c
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-9a603a2587011a188aa76ca19a32fcd343a253516325fbcfb4f7bfb6a814634c
src/mcp/server/sse.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-db3d89720f05f9c8a375c9ce008a6b477be25dccabca86a7d422814c5ab3f12c
View file https://github.com/modelcontextprotocol/python-sdk/blob/69568544a00a10347bd22a51ff91abb436434a6c/src/mcp/server/sse.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2298/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-db3d89720f05f9c8a375c9ce008a6b477be25dccabca86a7d422814c5ab3f12c
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-db3d89720f05f9c8a375c9ce008a6b477be25dccabca86a7d422814c5ab3f12c
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-db3d89720f05f9c8a375c9ce008a6b477be25dccabca86a7d422814c5ab3f12c
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-db3d89720f05f9c8a375c9ce008a6b477be25dccabca86a7d422814c5ab3f12c
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-db3d89720f05f9c8a375c9ce008a6b477be25dccabca86a7d422814c5ab3f12c
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-db3d89720f05f9c8a375c9ce008a6b477be25dccabca86a7d422814c5ab3f12c
src/mcp/server/stdio.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-19a44750677a645222700b9984d14682f626518ae045cf909c4daf665cb3264e
View file https://github.com/modelcontextprotocol/python-sdk/blob/69568544a00a10347bd22a51ff91abb436434a6c/src/mcp/server/stdio.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2298/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-19a44750677a645222700b9984d14682f626518ae045cf909c4daf665cb3264e
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-19a44750677a645222700b9984d14682f626518ae045cf909c4daf665cb3264e
https://github.com/modelcontextprotocol/python-sdk/pull/2298/files#diff-19a44750677a645222700b9984d14682f626518ae045cf909c4daf665cb3264e
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2298/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2298/files
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.