René's URL Explorer Experiment


Title: fix(auth): coerce empty-string optional URL fields to None in OAuthClientMetadata by felixweinberger · Pull Request #2404 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: fix(auth): coerce empty-string optional URL fields to None in OAuthClientMetadata by felixweinberger · Pull Request #2404 · modelcontextprotocol/python-sdk

X Title: fix(auth): coerce empty-string optional URL fields to None in OAuthClientMetadata by felixweinberger · Pull Request #2404 · modelcontextprotocol/python-sdk

Description: The official Python SDK for Model Context Protocol servers and clients - fix(auth): coerce empty-string optional URL fields to None in OAuthClientMetadata by felixweinberger · Pull Request #2404 · modelcontextprotocol/python-sdk

Open Graph Description: Coerce "" to None for the five OPTIONAL URL fields on OAuthClientMetadata so that DCR responses from servers that echo omitted metadata as empty strings parse successfully. Motivation and...

X Description: Coerce "" to None for the five OPTIONAL URL fields on OAuthClientMetadata so that DCR responses from servers that echo omitted metadata as empty strings parse successfully. Motiva...

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

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:46f4e917-03d5-ecc0-d7c6-d54d9a8b4e96
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDCD0:9CFFD:3A9AEB6:526BEE0:6A5F9F01
html-safe-nonceb199c6d8ee60b0d882d6b40fb91b8436bd99712507d3468df3b87f27ad59d557
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQ0QwOjlDRkZEOjNBOUFFQjY6NTI2QkVFMDo2QTVGOUYwMSIsInZpc2l0b3JfaWQiOiIyMTU5NDMwOTY0NjA2OTAyMDE3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac806cb59c60c99982bc18d1cdfc89efc94c82db8a3f7ba125c84d807ff1cc4d3e
hovercard-subject-tagpull_request:3504296016
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/2404/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/175c141f2eb2430e7f3fdf92fb82e1a441ef89109857ce342b5ead151df63797/modelcontextprotocol/python-sdk/pull/2404
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/175c141f2eb2430e7f3fdf92fb82e1a441ef89109857ce342b5ead151df63797/modelcontextprotocol/python-sdk/pull/2404
og:image:altCoerce "" to None for the five OPTIONAL URL fields on OAuthClientMetadata so that DCR responses from servers that echo omitted metadata as empty strings parse successfully. Motivation and...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamefelixweinberger
hostnamegithub.com
expected-hostnamegithub.com
None9c6adf27e6bcb2e88a468dcb4a1332a66b2467588c9ff5b1e184c0efab40cdd9
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
release95c4970ea4e0a52e841132721d7f22440b51fca9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/2404#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2404
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%2F2404
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/2404
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2404
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2404
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2404
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 265 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
felixweinbergerhttps://github.com/felixweinberger
mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
fweinberger/dcr-empty-url-coercehttps://github.com/modelcontextprotocol/python-sdk/tree/fweinberger/dcr-empty-url-coerce
Conversationhttps://github.com/modelcontextprotocol/python-sdk/pull/2404
Commits3 (3)https://github.com/modelcontextprotocol/python-sdk/pull/2404/commits
Checkshttps://github.com/modelcontextprotocol/python-sdk/pull/2404/checks
Files changedhttps://github.com/modelcontextprotocol/python-sdk/pull/2404/files
fix(auth): coerce empty-string optional URL fields to None in OAuthClientMetadatahttps://github.com/modelcontextprotocol/python-sdk/pull/2404#top
felixweinbergerhttps://github.com/felixweinberger
mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
fweinberger/dcr-empty-url-coercehttps://github.com/modelcontextprotocol/python-sdk/tree/fweinberger/dcr-empty-url-coerce
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
Apr 8, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2404#issue-4226106732
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2404
MCP Documentationhttps://modelcontextprotocol.io
https://datatracker.ietf.org/doc/html/rfc7591#section-2https://datatracker.ietf.org/doc/html/rfc7591#section-2
#2405https://github.com/modelcontextprotocol/python-sdk/pull/2405
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2404
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
Apr 8, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2404#ref-pullrequest-4226106917
[v1.x] fix(auth): coerce empty-string optional URL fields to None in OAuthClientMetadata #2405 https://github.com/modelcontextprotocol/python-sdk/pull/2405
https://github.com/apps/claude
claudehttps://github.com/apps/claude
Apr 8, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2404#pullrequestreview-4076756853
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2404/files
claudehttps://github.com/apps/claude
https://github.com/modelcontextprotocol/python-sdk/pull/2404#pullrequestreview-4076756853
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2404
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Apr 13, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2404#pullrequestreview-4099233921
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2404/files
maxisbeyhttps://github.com/maxisbey
https://github.com/modelcontextprotocol/python-sdk/pull/2404#pullrequestreview-4099233921
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
AI Disclaimerhttps://gist.github.com/maxisbey/6123d132484e4c533eab519a2800693d
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2404
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Apr 13, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2404#pullrequestreview-4099367292
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2404/files
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
maxisbeyhttps://github.com/maxisbey
stale reviewhttps://github.com/modelcontextprotocol/python-sdk/pull/2404#pullrequestreview-4099367292
438e176https://github.com/modelcontextprotocol/python-sdk/commit/438e1767df58241d6243eb137b2846d82eb584e8
April 13, 2026 14:21https://github.com/modelcontextprotocol/python-sdk/pull/2404#event-24449659554
https://github.com/apps/claude
claudehttps://github.com/apps/claude
Apr 13, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2404#pullrequestreview-4099385267
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2404/files
claudehttps://github.com/apps/claude
https://github.com/modelcontextprotocol/python-sdk/pull/2404#pullrequestreview-4099385267
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2404
felixweinbergerhttps://github.com/felixweinberger
April 13, 2026 14:24https://github.com/modelcontextprotocol/python-sdk/pull/2404#commits-pushed-fef29a5
https://github.com/felixweinberger
fix(auth): coerce empty-string optional URL fields to None in OAuthCl…https://github.com/modelcontextprotocol/python-sdk/pull/2404/commits/fef29a5fdcd0629bf5d77ae8046f9bcab90a06a8
fef29a5https://github.com/modelcontextprotocol/python-sdk/pull/2404/commits/fef29a5fdcd0629bf5d77ae8046f9bcab90a06a8
https://github.com/felixweinberger
test: move OAuthClientMetadata empty-URL tests to tests/shared, drop …https://github.com/modelcontextprotocol/python-sdk/pull/2404/commits/b0c83a84dc094b97ad2c2a9905a1fc2ad25dc3c0
b0c83a8https://github.com/modelcontextprotocol/python-sdk/pull/2404/commits/b0c83a84dc094b97ad2c2a9905a1fc2ad25dc3c0
https://github.com/felixweinberger
docs: clarify Test-class convention applies even in legacy fileshttps://github.com/modelcontextprotocol/python-sdk/pull/2404/commits/bfc7da345db594f47869d9c6304173a4adddf3d0
bfc7da3https://github.com/modelcontextprotocol/python-sdk/pull/2404/commits/bfc7da345db594f47869d9c6304173a4adddf3d0
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/438e1767df58241d6243eb137b2846d82eb584e8..bfc7da345db594f47869d9c6304173a4adddf3d0
438e176https://github.com/modelcontextprotocol/python-sdk/commit/438e1767df58241d6243eb137b2846d82eb584e8
bfc7da3https://github.com/modelcontextprotocol/python-sdk/commit/bfc7da345db594f47869d9c6304173a4adddf3d0
Compare https://github.com/modelcontextprotocol/python-sdk/compare/438e1767df58241d6243eb137b2846d82eb584e8..bfc7da345db594f47869d9c6304173a4adddf3d0
April 13, 2026 14:25https://github.com/modelcontextprotocol/python-sdk/pull/2404#event-24449817917
https://github.com/apps/claude
claudehttps://github.com/apps/claude
Apr 13, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2404#pullrequestreview-4099449617
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2404/files/bfc7da345db594f47869d9c6304173a4adddf3d0
claudehttps://github.com/apps/claude
https://github.com/modelcontextprotocol/python-sdk/pull/2404#pullrequestreview-4099449617
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2404
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Apr 13, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2404#pullrequestreview-4099507414
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2404/files/bfc7da345db594f47869d9c6304173a4adddf3d0
https://github.com/apps/claude
claudehttps://github.com/apps/claude
Apr 13, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2404#pullrequestreview-4099517697
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2404/files/bfc7da345db594f47869d9c6304173a4adddf3d0
claudehttps://github.com/apps/claude
https://github.com/modelcontextprotocol/python-sdk/pull/2404#pullrequestreview-4099517697
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2404
src/mcp/shared/auth.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2404/files/bfc7da345db594f47869d9c6304173a4adddf3d0#diff-01350058961f3196e3373d707e2178962377dc9a85f481ade94e8f05e4701c8d
claudehttps://github.com/apps/claude
Apr 13, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2404#discussion_r3073748553
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://example.comhttps://example.com
https://as.example.comhttps://as.example.com
https://as.example.com/authhttps://as.example.com/auth
https://as.example.com/tokenhttps://as.example.com/token
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2404
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
2dfb51ahttps://github.com/modelcontextprotocol/python-sdk/commit/2dfb51a4d1af35ed0462c49ea77cca0a3e68766d
Apr 13, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2404#event-24450495672
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2404
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
April 13, 2026 14:42https://github.com/modelcontextprotocol/python-sdk/pull/2404#event-24450497697
https://github.com/andylim-duo
andylim-duohttps://github.com/andylim-duo
May 4, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2404#ref-pullrequest-4378840018
Upstream 20260501 andylim-duo/python-sdk#19 https://github.com/andylim-duo/python-sdk/pull/19
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%2F2404
https://github.com/apps/claude
claude[bot] https://github.com/apps/claude
https://github.com/modelcontextprotocol/python-sdk/pull/2404/files/bfc7da345db594f47869d9c6304173a4adddf3d0
https://github.com/maxisbey
maxisbey https://github.com/maxisbey
https://github.com/modelcontextprotocol/python-sdk/pull/2404/files/bfc7da345db594f47869d9c6304173a4adddf3d0
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2404
https://github.com/felixweinberger
https://github.com/maxisbey
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.