René's URL Explorer Experiment


Title: Type-check docstring code examples via companion files and unified sync script by jonathanhefner · Pull Request #2119 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: Type-check docstring code examples via companion files and unified sync script by jonathanhefner · Pull Request #2119 · modelcontextprotocol/python-sdk

X Title: Type-check docstring code examples via companion files and unified sync script by jonathanhefner · Pull Request #2119 · modelcontextprotocol/python-sdk

Description: The official Python SDK for Model Context Protocol servers and clients - Type-check docstring code examples via companion files and unified sync script by jonathanhefner · Pull Request #2119 · modelcontextprotocol/python-sdk

Open Graph Description: Docstring code examples in src/mcp/ were previously raw text — invisible to pyright and ruff, so type errors and style drift went unnoticed. This PR introduces a system for keeping those examples i...

X Description: Docstring code examples in src/mcp/ were previously raw text — invisible to pyright and ruff, so type errors and style drift went unnoticed. This PR introduces a system for keeping those examples i...

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

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
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:5bfda911-4ccb-f67c-1792-4ee52f582982
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD3DC:2164FF:807BCC:B05F5A:6AFD2B87
html-safe-nonce8ade8dd51f9856ab731d227ad555d71c5aad1813ad5e11392f8087306144e70e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEM0RDOjIxNjRGRjo4MDdCQ0M6QjA1RjVBOjZBRkQyQjg3IiwidmlzaXRvcl9pZCI6IjI2OTA0ODQ0ODUxNDg3MTU5MTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacd75467737bda468d4c82d7f967017f5153625b1b3f7f19e93ebe3fafee7feb56
hovercard-subject-tagpull_request:3309712793
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/2119/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/32de7fa7cdd6cd3de650d3bf2c95cbaad6d7ba0b5c594d0d7280f7c1c68fad73/modelcontextprotocol/python-sdk/pull/2119
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/32de7fa7cdd6cd3de650d3bf2c95cbaad6d7ba0b5c594d0d7280f7c1c68fad73/modelcontextprotocol/python-sdk/pull/2119
og:image:altDocstring code examples in src/mcp/ were previously raw text — invisible to pyright and ruff, so type errors and style drift went unnoticed. This PR introduces a system for keeping those examples i...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejonathanhefner
hostnamegithub.com
expected-hostnamegithub.com
None065128366c233a9d57ff68ab6c96e25b99dd1b0ab70d23b70873d3dd6b5e4f19
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
release941021edf0c2ec58298f4a2c8f27ae507d129c92
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/2119#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2119
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2119
Sign uphttps://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/2119
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2119
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2119
modelcontextprotocolhttps://github.com/modelcontextprotocol
python-sdkhttps://github.com/modelcontextprotocol/python-sdk
Codehttps://github.com/modelcontextprotocol/python-sdk
Issues306 (306)https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests112 (112)https://github.com/modelcontextprotocol/python-sdk/pulls
Actionshttps://github.com/modelcontextprotocol/python-sdk/actions
Projectshttps://github.com/modelcontextprotocol/python-sdk/projects
Security and quality12 (12)https://github.com/modelcontextprotocol/python-sdk/security
Insightshttps://github.com/modelcontextprotocol/python-sdk/insights
https://github.com/modelcontextprotocol/python-sdk
jonathanhefnerhttps://github.com/jonathanhefner
modelcontextprotocol:mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
jonathanhefner:sync-snippets-scripthttps://github.com/jonathanhefner/mcp-python-sdk/tree/sync-snippets-script
Conversationhttps://github.com/modelcontextprotocol/python-sdk/pull/2119
Commits7 (7)https://github.com/modelcontextprotocol/python-sdk/pull/2119/commits
Checkshttps://github.com/modelcontextprotocol/python-sdk/pull/2119/checks
Files changedhttps://github.com/modelcontextprotocol/python-sdk/pull/2119/files
Type-check docstring code examples via companion files and unified sync scripthttps://github.com/modelcontextprotocol/python-sdk/pull/2119#top
jonathanhefnerhttps://github.com/jonathanhefner
modelcontextprotocol:mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
jonathanhefner:sync-snippets-scripthttps://github.com/jonathanhefner/mcp-python-sdk/tree/sync-snippets-script
https://github.com/jonathanhefner
jonathanhefnerhttps://github.com/jonathanhefner
Feb 20, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2119#issue-3970658899
@Kludexhttps://github.com/Kludex
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2119
https://github.com/jonathanhefner
jonathanhefnerhttps://github.com/jonathanhefner
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/4551297066a184569fd9e889d9fd8d12a3b418ff..c0e1559985261f5dd7e22e131e8247923ef691f7
4551297https://github.com/modelcontextprotocol/python-sdk/commit/4551297066a184569fd9e889d9fd8d12a3b418ff
c0e1559https://github.com/modelcontextprotocol/python-sdk/commit/c0e1559985261f5dd7e22e131e8247923ef691f7
Compare https://github.com/modelcontextprotocol/python-sdk/compare/4551297066a184569fd9e889d9fd8d12a3b418ff..c0e1559985261f5dd7e22e131e8247923ef691f7
February 20, 2026 22:47https://github.com/modelcontextprotocol/python-sdk/pull/2119#event-22961577020
https://github.com/Kludex
Kludexhttps://github.com/Kludex
Feb 22, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2119#issuecomment-3940882326
@Kludexhttps://github.com/Kludex
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2119
https://github.com/jonathanhefner
jonathanhefnerhttps://github.com/jonathanhefner
Feb 23, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2119#issuecomment-3945512539
examples/client/src/clientGuide.examples.tshttps://github.com/modelcontextprotocol/typescript-sdk/blob/main/examples/client/src/clientGuide.examples.ts
docs/client.mdhttps://github.com/modelcontextprotocol/typescript-sdk/blob/main/docs/client.md
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2119
https://github.com/Kludex
Kludexhttps://github.com/Kludex
Feb 23, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2119#issuecomment-3945548297
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2119
https://github.com/jonathanhefner
jonathanhefnerhttps://github.com/jonathanhefner
Feb 23, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2119#issuecomment-3945606588
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2119
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Feb 23, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2119#issuecomment-3946134206
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2119
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Feb 23, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2119#pullrequestreview-3841907058
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2119/files
README.v2.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/2119/files#diff-08a4c6619676fe12972d812470e6bfada7b31d3d2fe6e2cf8cf8a88c79e78503
maxisbeyhttps://github.com/maxisbey
Feb 23, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2119#discussion_r2841615839
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2119
jonathanhefnerhttps://github.com/jonathanhefner
Feb 23, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2119#discussion_r2842198499
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2119
https://github.com/Kludex
Kludexhttps://github.com/Kludex
Feb 23, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2119#issuecomment-3947293444
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2119
https://github.com/Kludex
Kludexhttps://github.com/Kludex
Feb 23, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2119#issuecomment-3947296868
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2119
https://github.com/jonathanhefner
jonathanhefnerhttps://github.com/jonathanhefner
Feb 23, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2119#ref-pullrequest-3980552823
Import "Build an LLM-powered chatbot" quickstart guide #2130 https://github.com/modelcontextprotocol/python-sdk/pull/2130
https://github.com/jonathanhefner
jonathanhefnerhttps://github.com/jonathanhefner
Feb 24, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2119#issuecomment-3954676663
@Kludexhttps://github.com/Kludex
@maxisbeyhttps://github.com/maxisbey
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2119
jonathanhefnerhttps://github.com/jonathanhefner
February 24, 2026 15:32https://github.com/modelcontextprotocol/python-sdk/pull/2119#commits-pushed-925d45c
https://github.com/jonathanhefner
Replace update_readme_snippets.py with unified sync_snippets.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2119/commits/925d45c019f3205f6a6ad9cb4f762d3760891a39
925d45chttps://github.com/modelcontextprotocol/python-sdk/pull/2119/commits/925d45c019f3205f6a6ad9cb4f762d3760891a39
https://github.com/jonathanhefner
Support path-less #region markers in sync_snippets.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2119/commits/98b1ec277e57bc8b685f652dc66ce9e889ea08bc
98b1ec2https://github.com/modelcontextprotocol/python-sdk/pull/2119/commits/98b1ec277e57bc8b685f652dc66ce9e889ea08bc
https://github.com/jonathanhefner
Extract docstring code examples into type-checked companion fileshttps://github.com/modelcontextprotocol/python-sdk/pull/2119/commits/bc4938429c3ee2c6d7f9a26bec3b1815d229e7f4
bc49384https://github.com/modelcontextprotocol/python-sdk/pull/2119/commits/bc4938429c3ee2c6d7f9a26bec3b1815d229e7f4
https://github.com/jonathanhefner
Document docstring snippet conventions in CLAUDE.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/2119/commits/6561cc8f4991392261693710c74d2afdb30c609d
6561cc8https://github.com/modelcontextprotocol/python-sdk/pull/2119/commits/6561cc8f4991392261693710c74d2afdb30c609d
https://github.com/jonathanhefner
Document markdown snippet syncing in CLAUDE.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/2119/commits/b508a84b2bae91fa1ba56ab22d10842f2a9615b1
b508a84https://github.com/modelcontextprotocol/python-sdk/pull/2119/commits/b508a84b2bae91fa1ba56ab22d10842f2a9615b1
https://github.com/jonathanhefner
Restructure snippet system docs into shared intro with subsectionshttps://github.com/modelcontextprotocol/python-sdk/pull/2119/commits/9f95151f6b13c161ee13d9e6287e234feb694098
9f95151https://github.com/modelcontextprotocol/python-sdk/pull/2119/commits/9f95151f6b13c161ee13d9e6287e234feb694098
https://github.com/jonathanhefner
Remove "Full example" links from README.v2.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/2119/commits/6101e44caaf409c92ed43a228f25de9790b504cc
6101e44https://github.com/modelcontextprotocol/python-sdk/pull/2119/commits/6101e44caaf409c92ed43a228f25de9790b504cc
https://github.com/jonathanhefner
jonathanhefnerhttps://github.com/jonathanhefner
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/d5a1d089ca4468275f824911fba84771a1c4a0a8..6101e44caaf409c92ed43a228f25de9790b504cc
d5a1d08https://github.com/modelcontextprotocol/python-sdk/commit/d5a1d089ca4468275f824911fba84771a1c4a0a8
6101e44https://github.com/modelcontextprotocol/python-sdk/commit/6101e44caaf409c92ed43a228f25de9790b504cc
Compare https://github.com/modelcontextprotocol/python-sdk/compare/d5a1d089ca4468275f824911fba84771a1c4a0a8..6101e44caaf409c92ed43a228f25de9790b504cc
February 24, 2026 21:32https://github.com/modelcontextprotocol/python-sdk/pull/2119#event-23048503031
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
documentation https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3Adocumentation
Mar 5, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2119#event-23304938777
https://github.com/jonathanhefner
jonathanhefnerhttps://github.com/jonathanhefner
Apr 6, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2119#ref-pullrequest-3985909940
Replace Claude for Desktop with VS Code + Copilot in server quickstart #2139 https://github.com/modelcontextprotocol/python-sdk/pull/2139
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%2F2119
https://github.com/maxisbey
maxisbey https://github.com/maxisbey
https://github.com/modelcontextprotocol/python-sdk/pull/2119/files/c0e1559985261f5dd7e22e131e8247923ef691f7
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2119
documentation https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3Adocumentation
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2119
https://github.com/jonathanhefner
https://github.com/Kludex
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.