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/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:8425a28b-6dd9-bc64-ca60-5a32ec154b5d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id98BE:CFE51:9CF886:D97FAB:6AFD380D
html-safe-nonce27c019c77f019e2ba450f9aaf63b5167ec4218cacae26c2eca37b66191e2ffe1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OEJFOkNGRTUxOjlDRjg4NjpEOTdGQUI6NkFGRDM4MEQiLCJ2aXNpdG9yX2lkIjoiODI3Nzk5Mjg1ODU0ODI1NDczMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb256847c873a9fe83eaaba67f76ebd9c35c201ed50e5e0309aa4e6576e86dac1
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///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/modelcontextprotocol/python-sdk/pull/2119/commits
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/commits#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2119%2Fcommits
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%2Fcommits
Sign uphttps://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/2119/commits
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2119/commits
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2119/commits
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/commits#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
Replace `update_readme_snippets.py` with unified `sync_snippets.py`https://github.com/modelcontextprotocol/python-sdk/pull/2119/commits/925d45c019f3205f6a6ad9cb4f762d3760891a39
https://github.com/jonathanhefner
jonathanhefnerhttps://github.com/modelcontextprotocol/python-sdk/commits?author=jonathanhefner
925d45chttps://github.com/modelcontextprotocol/python-sdk/pull/2119/commits/925d45c019f3205f6a6ad9cb4f762d3760891a39
https://github.com/modelcontextprotocol/python-sdk/tree/925d45c019f3205f6a6ad9cb4f762d3760891a39
Support path-less `#region` markers in `sync_snippets.py`https://github.com/modelcontextprotocol/python-sdk/pull/2119/commits/98b1ec277e57bc8b685f652dc66ce9e889ea08bc
https://github.com/jonathanhefner
jonathanhefnerhttps://github.com/modelcontextprotocol/python-sdk/commits?author=jonathanhefner
98b1ec2https://github.com/modelcontextprotocol/python-sdk/pull/2119/commits/98b1ec277e57bc8b685f652dc66ce9e889ea08bc
https://github.com/modelcontextprotocol/python-sdk/tree/98b1ec277e57bc8b685f652dc66ce9e889ea08bc
Extract docstring code examples into type-checked companion fileshttps://github.com/modelcontextprotocol/python-sdk/pull/2119/commits/bc4938429c3ee2c6d7f9a26bec3b1815d229e7f4
https://github.com/jonathanhefner
jonathanhefnerhttps://github.com/modelcontextprotocol/python-sdk/commits?author=jonathanhefner
bc49384https://github.com/modelcontextprotocol/python-sdk/pull/2119/commits/bc4938429c3ee2c6d7f9a26bec3b1815d229e7f4
https://github.com/modelcontextprotocol/python-sdk/tree/bc4938429c3ee2c6d7f9a26bec3b1815d229e7f4
Document docstring snippet conventions in `CLAUDE.md`https://github.com/modelcontextprotocol/python-sdk/pull/2119/commits/6561cc8f4991392261693710c74d2afdb30c609d
https://github.com/jonathanhefner
jonathanhefnerhttps://github.com/modelcontextprotocol/python-sdk/commits?author=jonathanhefner
6561cc8https://github.com/modelcontextprotocol/python-sdk/pull/2119/commits/6561cc8f4991392261693710c74d2afdb30c609d
https://github.com/modelcontextprotocol/python-sdk/tree/6561cc8f4991392261693710c74d2afdb30c609d
Document markdown snippet syncing in `CLAUDE.md`https://github.com/modelcontextprotocol/python-sdk/pull/2119/commits/b508a84b2bae91fa1ba56ab22d10842f2a9615b1
https://github.com/jonathanhefner
jonathanhefnerhttps://github.com/modelcontextprotocol/python-sdk/commits?author=jonathanhefner
b508a84https://github.com/modelcontextprotocol/python-sdk/pull/2119/commits/b508a84b2bae91fa1ba56ab22d10842f2a9615b1
https://github.com/modelcontextprotocol/python-sdk/tree/b508a84b2bae91fa1ba56ab22d10842f2a9615b1
Restructure snippet system docs into shared intro with subsectionshttps://github.com/modelcontextprotocol/python-sdk/pull/2119/commits/9f95151f6b13c161ee13d9e6287e234feb694098
https://github.com/jonathanhefner
jonathanhefnerhttps://github.com/modelcontextprotocol/python-sdk/commits?author=jonathanhefner
9f95151https://github.com/modelcontextprotocol/python-sdk/pull/2119/commits/9f95151f6b13c161ee13d9e6287e234feb694098
https://github.com/modelcontextprotocol/python-sdk/tree/9f95151f6b13c161ee13d9e6287e234feb694098
Remove "Full example" links from `README.v2.md`https://github.com/modelcontextprotocol/python-sdk/pull/2119/commits/6101e44caaf409c92ed43a228f25de9790b504cc
https://github.com/jonathanhefner
jonathanhefnerhttps://github.com/modelcontextprotocol/python-sdk/commits?author=jonathanhefner
6101e44https://github.com/modelcontextprotocol/python-sdk/pull/2119/commits/6101e44caaf409c92ed43a228f25de9790b504cc
https://github.com/modelcontextprotocol/python-sdk/tree/6101e44caaf409c92ed43a228f25de9790b504cc
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.