René's URL Explorer Experiment


Title: Fix uncaught exception in MCP server by ddworken · Pull Request #822 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: Fix uncaught exception in MCP server by ddworken · Pull Request #822 · modelcontextprotocol/python-sdk

X Title: Fix uncaught exception in MCP server by ddworken · Pull Request #822 · modelcontextprotocol/python-sdk

Description: Motivation and Context This fixes an uncaught exception in the MCP server How Has This Been Tested? Via unit tests and locally. Breaking Changes None. Types of changes Bug fix (non-breaking change which fixes an issue) New feature (non-breaking change which adds functionality) Breaking change (fix or feature that would cause existing functionality to change) Documentation update Checklist I have read the MCP Documentation My code follows the repository's style guidelines New and existing tests pass locally I have added appropriate error handling I have added or updated documentation as needed Additional context

Open Graph Description: Motivation and Context This fixes an uncaught exception in the MCP server How Has This Been Tested? Via unit tests and locally. Breaking Changes None. Types of changes Bug fix (non-breaking chan...

X Description: Motivation and Context This fixes an uncaught exception in the MCP server How Has This Been Tested? Via unit tests and locally. Breaking Changes None. Types of changes Bug fix (non-breaking chan...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:5b19ec9c-82a8-60f6-1e1b-394f95a6165d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAF3A:1A73A4:2487051:3357A5E:6A5F5F87
html-safe-nonced8ef875afad90f0ca274f0df7bf20bd0e969a59f30e024814911fe78fd54f463
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjNBOjFBNzNBNDoyNDg3MDUxOjMzNTdBNUU6NkE1RjVGODciLCJ2aXNpdG9yX2lkIjoiNjU3NTIyODQ3Njc2MTAwNTk1OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac06eb384d8a95733640b3839042d851b1a176fbf424c257dfd4236025245b2820
hovercard-subject-tagpull_request:2547555399
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/822/files
twitter:imagehttps://avatars.githubusercontent.com/u/5304541?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/5304541?s=400&v=4
og:image:altMotivation and Context This fixes an uncaught exception in the MCP server How Has This Been Tested? Via unit tests and locally. Breaking Changes None. Types of changes Bug fix (non-breaking chan...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9a0797c11799dbfd7df57fa3de31c7ea3a4c4bd055eb1a0427a5cde1d4d7ba3f
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
releaseb099d96da147aea31036cd16b2fba0083a6defe4
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/822/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F822%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%2F822%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/822/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/822/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/822/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/822/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 264 https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests 311 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
johnw188https://github.com/johnw188
modelcontextprotocol:mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
ddworken:mainhttps://github.com/ddworken/python-sdk/tree/main
Conversation 14 https://github.com/modelcontextprotocol/python-sdk/pull/822
Commits 13 https://github.com/modelcontextprotocol/python-sdk/pull/822/commits
Checks 10 https://github.com/modelcontextprotocol/python-sdk/pull/822/checks
Files changed https://github.com/modelcontextprotocol/python-sdk/pull/822/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/822/files
Fix uncaught exception in MCP server https://github.com/modelcontextprotocol/python-sdk/pull/822/files#top
Show all changes 13 commits https://github.com/modelcontextprotocol/python-sdk/pull/822/files
44bb310 Fix uncaught exception in MCP server ddworken May 20, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/822/commits/44bb310579f15259d935a998f5bdf188189b5a53
900548c Fix tests ddworken May 27, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/822/commits/900548c602524984c0daf70d0c42d2b0c675103e
6933486 Fix tests ddworken May 27, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/822/commits/69334862cacd055f6dcd74fdbe858dabae82cd74
9f83b50 Fix tests ddworken May 27, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/822/commits/9f83b507da43525f0f6e95681ec086d2b390bb89
92865e8 Fix tests ddworken May 27, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/822/commits/92865e891417dc9935cd28fc7004d935b375e90f
aba774d Fix tests ddworken May 27, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/822/commits/aba774d6737ee3e097c4af1fa873de0bb0abd2f6
3ecc02a Move extra debug information to logging.debug ddworken May 28, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/822/commits/3ecc02a321b43e0a07fba07d4642543dae2f30e4
23d4af4 Merge branch 'main' into main ddworken May 28, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/822/commits/23d4af42e730ca529bd2e56ab4be1f36bdbca8f2
3757bad Fix lint ddworken May 28, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/822/commits/3757bad31c0a5e67d73f3d5617afbb35503218a1
4e3937f Merge branch 'main' into main ddworken May 28, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/822/commits/4e3937f4788307ef4db119d43bf61d5247f5c775
605a6d4 Rerun tests ddworken May 28, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/822/commits/605a6d4435dc56dfc5a35e8d1384f18ea66c7514
a2f889b Merge branch 'main' into main ddworken Jun 4, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/822/commits/a2f889b41f1f52d119878a6df2e27b25ae48404f
acb45c6 Merge branch 'main' into main ddworken Jun 9, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/822/commits/acb45c6fb90a0ae7028ce8c6cddec8b962bb97a8
Clear filters https://github.com/modelcontextprotocol/python-sdk/pull/822/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/822/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/822/files
session.py https://github.com/modelcontextprotocol/python-sdk/pull/822/files#diff-aaa1596dd4db91f5cd7f743c8afbe58596daf01a2ecec4a0024768f7409fb1dc
test_malformed_input.py https://github.com/modelcontextprotocol/python-sdk/pull/822/files#diff-b649c0b5fba86f777a51ee53b6579c7a639f0484b3562efcafe81a3322a4219e
src/mcp/shared/session.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/822/files#diff-aaa1596dd4db91f5cd7f743c8afbe58596daf01a2ecec4a0024768f7409fb1dc
View file https://github.com/ddworken/python-sdk/blob/acb45c6fb90a0ae7028ce8c6cddec8b962bb97a8/src/mcp/shared/session.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/822/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/822/files#diff-aaa1596dd4db91f5cd7f743c8afbe58596daf01a2ecec4a0024768f7409fb1dc
https://github.com/modelcontextprotocol/python-sdk/pull/822/files#diff-aaa1596dd4db91f5cd7f743c8afbe58596daf01a2ecec4a0024768f7409fb1dc
https://github.com/modelcontextprotocol/python-sdk/pull/822/files#diff-aaa1596dd4db91f5cd7f743c8afbe58596daf01a2ecec4a0024768f7409fb1dc
NAVNAV221https://github.com/NAVNAV221
Jun 6, 2025https://github.com/modelcontextprotocol/python-sdk/pull/822/files#r2132343279
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
this issuehttps://github.com/modelcontextprotocol/python-sdk/issues/820
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/822/files
ddworkenhttps://github.com/ddworken
Jun 6, 2025https://github.com/modelcontextprotocol/python-sdk/pull/822/files#r2132531265
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/822/files
Kludexhttps://github.com/Kludex
Jun 11, 2025https://github.com/modelcontextprotocol/python-sdk/pull/822/files#r2139972036
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/822/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/822/files
Kludexhttps://github.com/Kludex
Jun 11, 2025https://github.com/modelcontextprotocol/python-sdk/pull/822/files#r2139970549
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/822/files
https://github.com/modelcontextprotocol/python-sdk/pull/822/files#diff-aaa1596dd4db91f5cd7f743c8afbe58596daf01a2ecec4a0024768f7409fb1dc
tests/issues/test_malformed_input.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/822/files#diff-b649c0b5fba86f777a51ee53b6579c7a639f0484b3562efcafe81a3322a4219e
View file https://github.com/ddworken/python-sdk/blob/acb45c6fb90a0ae7028ce8c6cddec8b962bb97a8/tests/issues/test_malformed_input.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/822/{{ revealButtonHref }}
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/822/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.