René's URL Explorer Experiment


Title: Chatbot example: clean up servers in correct order by clareliguori · Pull Request #353 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: Chatbot example: clean up servers in correct order by clareliguori · Pull Request #353 · modelcontextprotocol/python-sdk

X Title: Chatbot example: clean up servers in correct order by clareliguori · Pull Request #353 · modelcontextprotocol/python-sdk

Description: The official Python SDK for Model Context Protocol servers and clients - Chatbot example: clean up servers in correct order by clareliguori · Pull Request #353 · modelcontextprotocol/python-sdk

Open Graph Description: The servers's async context must be exited in the reverse order it was entered, unrolling the context stack. Motivation and Context Fixes #252 How Has This Been Tested? $ python main.py You: q...

X Description: The servers's async context must be exited in the reverse order it was entered, unrolling the context stack. Motivation and Context Fixes #252 How Has This Been Tested? $ python main.py Yo...

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

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:0ca3f0b1-1e40-0087-e431-98f8e87b6ccf
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD158:2047E2:24D21C:342E06:6A59F4C2
html-safe-nonce62a178745a652adb82ff1092d4b082672c55074fa3f9c47f9d29c3fb36990324
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTU4OjIwNDdFMjoyNEQyMUM6MzQyRTA2OjZBNTlGNEMyIiwidmlzaXRvcl9pZCI6IjE3NDk1MDczNDU4NjcyMDc4NzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac67c9ba314f762ef8eaa8a0c81ae25ca9bdf1dd28a793d5e9bd661c91f07984e0
hovercard-subject-tagpull_request:2412162659
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/353/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/ce3272a7b630cb8c7f2d0c0b6f0437566fd12f7e21ec1f16f1cd5911fe34ddcd/modelcontextprotocol/python-sdk/pull/353
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ce3272a7b630cb8c7f2d0c0b6f0437566fd12f7e21ec1f16f1cd5911fe34ddcd/modelcontextprotocol/python-sdk/pull/353
og:image:altThe servers's async context must be exited in the reverse order it was entered, unrolling the context stack. Motivation and Context Fixes #252 How Has This Been Tested? $ python main.py You: q...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameclareliguori
hostnamegithub.com
expected-hostnamegithub.com
Noneba3976babb66479b1c943a8edc0777d96157da48fadc0161f9ddb219deee8353
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
release24801cf86623a319252348d1fd69122ad974b842
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/353#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F353
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
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%2F353
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/353
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/353
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/353
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/353
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.6k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Code https://github.com/modelcontextprotocol/python-sdk
Issues 255 https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests 303 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
ihrprhttps://github.com/ihrpr
modelcontextprotocol:mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
clareliguori:chatbot-cleanuphttps://github.com/clareliguori/mcp-python-sdk/tree/chatbot-cleanup
Conversationhttps://github.com/modelcontextprotocol/python-sdk/pull/353
Commits1 (1)https://github.com/modelcontextprotocol/python-sdk/pull/353/commits
Checkshttps://github.com/modelcontextprotocol/python-sdk/pull/353/checks
Files changedhttps://github.com/modelcontextprotocol/python-sdk/pull/353/files
Chatbot example: clean up servers in correct orderhttps://github.com/modelcontextprotocol/python-sdk/pull/353#top
ihrprhttps://github.com/ihrpr
modelcontextprotocol:mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
clareliguori:chatbot-cleanuphttps://github.com/clareliguori/mcp-python-sdk/tree/chatbot-cleanup
https://github.com/clareliguori
clareliguorihttps://github.com/clareliguori
Mar 23, 2025https://github.com/modelcontextprotocol/python-sdk/pull/353#issue-2941453528
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/353
#252https://github.com/modelcontextprotocol/python-sdk/issues/252
MCP Documentationhttps://modelcontextprotocol.io
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/353
https://github.com/pagoenka
pagoenkahttps://github.com/pagoenka
Mar 25, 2025https://github.com/modelcontextprotocol/python-sdk/pull/353#issuecomment-2750970526
#252https://github.com/modelcontextprotocol/python-sdk/issues/252
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/353
https://github.com/ihrpr
ihrprhttps://github.com/ihrpr
r-05-25https://github.com/modelcontextprotocol/python-sdk/milestone/7
Apr 29, 2025https://github.com/modelcontextprotocol/python-sdk/pull/353#event-17462635825
https://github.com/clareliguori
clareliguorihttps://github.com/clareliguori
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/490c114159ebb83c948889b09138d5e41087cba6..04624ea2b41e053f4342d9576f463bdf5d2ef544
490c114https://github.com/modelcontextprotocol/python-sdk/commit/490c114159ebb83c948889b09138d5e41087cba6
04624eahttps://github.com/modelcontextprotocol/python-sdk/commit/04624ea2b41e053f4342d9576f463bdf5d2ef544
Compare https://github.com/modelcontextprotocol/python-sdk/compare/490c114159ebb83c948889b09138d5e41087cba6..04624ea2b41e053f4342d9576f463bdf5d2ef544
May 15, 2025 14:58https://github.com/modelcontextprotocol/python-sdk/pull/353#event-17674200178
https://github.com/clareliguori
Chatbot example: clean up servers in correct orderhttps://github.com/modelcontextprotocol/python-sdk/pull/353/commits/031fb8234a62fc88e1d309b3bc060b4236974154
031fb82https://github.com/modelcontextprotocol/python-sdk/pull/353/commits/031fb8234a62fc88e1d309b3bc060b4236974154
https://github.com/clareliguori
clareliguorihttps://github.com/clareliguori
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/04624ea2b41e053f4342d9576f463bdf5d2ef544..031fb8234a62fc88e1d309b3bc060b4236974154
04624eahttps://github.com/modelcontextprotocol/python-sdk/commit/04624ea2b41e053f4342d9576f463bdf5d2ef544
031fb82https://github.com/modelcontextprotocol/python-sdk/commit/031fb8234a62fc88e1d309b3bc060b4236974154
Compare https://github.com/modelcontextprotocol/python-sdk/compare/04624ea2b41e053f4342d9576f463bdf5d2ef544..031fb8234a62fc88e1d309b3bc060b4236974154
May 21, 2025 22:16https://github.com/modelcontextprotocol/python-sdk/pull/353#event-17761729980
https://github.com/apps/mcp-shadow
mcp-shadowhttps://github.com/apps/mcp-shadow
May 23, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/353#pullrequestreview-2863969505
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/353/files/031fb8234a62fc88e1d309b3bc060b4236974154
mcp-shadowhttps://github.com/apps/mcp-shadow
https://github.com/modelcontextprotocol/python-sdk/pull/353#pullrequestreview-2863969505
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#252https://github.com/modelcontextprotocol/python-sdk/issues/252
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/353
https://github.com/ihrpr
ihrprhttps://github.com/ihrpr
May 23, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/353#pullrequestreview-2863971009
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/353/files/031fb8234a62fc88e1d309b3bc060b4236974154
ihrprhttps://github.com/ihrpr
https://github.com/modelcontextprotocol/python-sdk/pull/353#pullrequestreview-2863971009
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/353
https://github.com/ihrpr
ihrprhttps://github.com/ihrpr
4cd4fe0https://github.com/modelcontextprotocol/python-sdk/commit/4cd4fe006cddaa0a8dc78e50d6b1553e7917ca4a
May 23, 2025https://github.com/modelcontextprotocol/python-sdk/pull/353#event-17787653545
https://github.com/clareliguori
clareliguorihttps://github.com/clareliguori
May 23, 2025 13:39https://github.com/modelcontextprotocol/python-sdk/pull/353#event-17790332253
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Jun 19, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/353#ref-pullrequest-4701520792
Re-vendor 2026-07-28 schema and absorb spec #2907 error-code renumber #2912 https://github.com/modelcontextprotocol/python-sdk/pull/2912
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%2F353
https://github.com/ihrpr
ihrpr https://github.com/ihrpr
https://github.com/modelcontextprotocol/python-sdk/pull/353/files/031fb8234a62fc88e1d309b3bc060b4236974154
https://github.com/apps/mcp-shadow
mcp-shadow[bot] https://github.com/apps/mcp-shadow
https://github.com/modelcontextprotocol/python-sdk/pull/353/files/031fb8234a62fc88e1d309b3bc060b4236974154
r-05-25 https://github.com/modelcontextprotocol/python-sdk/milestone/7
Error during cleanup of server sqlite: Attempted to exit cancel scope in a different task than it was entered in https://github.com/modelcontextprotocol/python-sdk/issues/252
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/353
https://github.com/clareliguori
https://github.com/pagoenka
https://github.com/ihrpr
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.