René's URL Explorer Experiment


Title: Fix unknown-method error code and add a protocol version registry by maxisbey · Pull Request #2836 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: Fix unknown-method error code and add a protocol version registry by maxisbey · Pull Request #2836 · modelcontextprotocol/python-sdk

X Title: Fix unknown-method error code and add a protocol version registry by maxisbey · Pull Request #2836 · modelcontextprotocol/python-sdk

Description: The official Python SDK for Model Context Protocol servers and clients - Fix unknown-method error code and add a protocol version registry by maxisbey · Pull Request #2836 · modelcontextprotocol/python-sdk

Open Graph Description: Bundled fixes around the same version/dispatch seams: unknown methods now get the JSON-RPC-correct error code on both sides, and protocol version comparisons go through a small registry instead of ...

X Description: Bundled fixes around the same version/dispatch seams: unknown methods now get the JSON-RPC-correct error code on both sides, and protocol version comparisons go through a small registry instead of ...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:1409ad10-f408-54b3-838b-20331c5af423
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD888:9AA5B:731C51:764855:6A59EB35
html-safe-nonceb5934f98ad1c8e5e6d87b16a4e3951c0f4b72e9d79369769fc3661a3101c9ca3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODg4OjlBQTVCOjczMUM1MTo3NjQ4NTU6NkE1OUVCMzUiLCJ2aXNpdG9yX2lkIjoiMTIwMzA3MzU2MDMzMzY0MjU0OSIsInJlZ2lvbl9lZGdlIjoic2VhIiwicmVnaW9uX3JlbmRlciI6InNlYSJ9
visitor-hmac57c61b04b17689e2edc6f94cb7d11c2edfe20cf8d68ae68da095ce18ac46058f
hovercard-subject-tagpull_request:3848055716
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/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/modelcontextprotocol/python-sdk/pull/2836/commits
twitter:imagehttps://opengraph.githubassets.com/d27175985a99ebfa95969d7866f8ff4d24fd903b92817761a8d46b0404a07e66/modelcontextprotocol/python-sdk/pull/2836
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d27175985a99ebfa95969d7866f8ff4d24fd903b92817761a8d46b0404a07e66/modelcontextprotocol/python-sdk/pull/2836
og:image:altBundled fixes around the same version/dispatch seams: unknown methods now get the JSON-RPC-correct error code on both sides, and protocol version comparisons go through a small registry instead of ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemaxisbey
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
release32bf0b7849e1b6561059cca2cb03568251960859
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/2836/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2836%2Fcommits
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%2F2836%2Fcommits
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%2Fcommits&source=header-repo&source_repo=modelcontextprotocol%2Fpython-sdk
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/commits
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/commits
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/commits
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2836/commits
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
maxisbeyhttps://github.com/maxisbey
mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
maxisbey/method-not-found-and-version-registryhttps://github.com/modelcontextprotocol/python-sdk/tree/maxisbey/method-not-found-and-version-registry
Conversationhttps://github.com/modelcontextprotocol/python-sdk/pull/2836
Commits9 (9)https://github.com/modelcontextprotocol/python-sdk/pull/2836/commits
Checkshttps://github.com/modelcontextprotocol/python-sdk/pull/2836/checks
Files changedhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/files
Fix unknown-method error code and add a protocol version registryhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/commits#top
maxisbeyhttps://github.com/maxisbey
mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
maxisbey/method-not-found-and-version-registryhttps://github.com/modelcontextprotocol/python-sdk/tree/maxisbey/method-not-found-and-version-registry
Compare protocol versions through a known-version registryhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/89722dd3df5a695dabe7082780eee2ae95b39ccb
https://github.com/maxisbey
maxisbeyhttps://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey
89722ddhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/89722dd3df5a695dabe7082780eee2ae95b39ccb
https://github.com/modelcontextprotocol/python-sdk/tree/89722dd3df5a695dabe7082780eee2ae95b39ccb
Return METHOD_NOT_FOUND for requests with unknown methodshttps://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/3230c3f6dd9cca1712bc09b9be321b374e3ff4f4
https://github.com/maxisbey
maxisbeyhttps://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey
3230c3fhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/3230c3f6dd9cca1712bc09b9be321b374e3ff4f4
https://github.com/modelcontextprotocol/python-sdk/tree/3230c3f6dd9cca1712bc09b9be321b374e3ff4f4
Answer unknown methods with METHOD_NOT_FOUND before the initialize gatehttps://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/4468a7fdd368ba0578df3fb29e6237b4dcd1e5ef
https://github.com/maxisbey
maxisbeyhttps://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey
4468a7fhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/4468a7fdd368ba0578df3fb29e6237b4dcd1e5ef
https://github.com/modelcontextprotocol/python-sdk/tree/4468a7fdd368ba0578df3fb29e6237b4dcd1e5ef
Expose the negotiated protocol version on ServerSessionhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/3789d001a58944976a8cbe1c5e01e4a369b671c5
https://github.com/maxisbey
maxisbeyhttps://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey
3789d00https://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/3789d001a58944976a8cbe1c5e01e4a369b671c5
https://github.com/modelcontextprotocol/python-sdk/tree/3789d001a58944976a8cbe1c5e01e4a369b671c5
docs: extra fields on MCP types are ignored, not rejectedhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/2374c997e0b585dcdf56d393f329c943e7065a83
https://github.com/maxisbey
maxisbeyhttps://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey
2374c99https://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/2374c997e0b585dcdf56d393f329c943e7065a83
https://github.com/modelcontextprotocol/python-sdk/tree/2374c997e0b585dcdf56d393f329c943e7065a83
Limit the version registry to released protocol versionshttps://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/22176efcd13f6ad9ea79a12ffc4c40bbdac5e194
https://github.com/maxisbey
maxisbeyhttps://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey
22176efhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/22176efcd13f6ad9ea79a12ffc4c40bbdac5e194
https://github.com/modelcontextprotocol/python-sdk/tree/22176efcd13f6ad9ea79a12ffc4c40bbdac5e194
docs: record the unknown-method error-code change in the migration guidehttps://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/b97838344709565def2513c1b33a4d7a8f3d35eb
https://github.com/maxisbey
maxisbeyhttps://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey
b978383https://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/b97838344709565def2513c1b33a4d7a8f3d35eb
https://github.com/modelcontextprotocol/python-sdk/tree/b97838344709565def2513c1b33a4d7a8f3d35eb
Clarify protocol-version docstrings and tighten new testshttps://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/e1bf53f708fbd5bb5458084c430fff658de00d09
https://github.com/maxisbey
maxisbeyhttps://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey
e1bf53fhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/e1bf53f708fbd5bb5458084c430fff658de00d09
https://github.com/modelcontextprotocol/python-sdk/tree/e1bf53f708fbd5bb5458084c430fff658de00d09
Answer any unserved method with METHOD_NOT_FOUND before the initialize gatehttps://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/5dd7e4a26aa5ab93876766ec2a90ad6e9c916b40
https://github.com/maxisbey
maxisbeyhttps://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey
5dd7e4ahttps://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/5dd7e4a26aa5ab93876766ec2a90ad6e9c916b40
https://github.com/modelcontextprotocol/python-sdk/tree/5dd7e4a26aa5ab93876766ec2a90ad6e9c916b40
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.