René's URL Explorer Experiment


Title: Prepare release machinery for v2 pre-releases by maxisbey · Pull Request #2831 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: Prepare release machinery for v2 pre-releases by maxisbey · Pull Request #2831 · modelcontextprotocol/python-sdk

X Title: Prepare release machinery for v2 pre-releases by maxisbey · Pull Request #2831 · modelcontextprotocol/python-sdk

Description: Prepares the repo to publish v2 pre-releases (2.0.0aN) from main. Motivation and Context We want to start publishing v2 alphas to PyPI to get the rework into testers' hands. PEP 440 pre-release semantics keep 2.0.0aN invisible to anyone on mcp>=1.x (installers only select pre-releases on explicit opt-in), but some repo machinery assumes a single release line, and the published metadata would have been wrong: pyproject.toml pointed PyPI's long description at the frozen v1 README.md, so a pre-release's PyPI page would have shown v1 docs. It now uses README.v2.md, with a refreshed banner (alpha status, opt-in install lines, v1.x recommendation, no committed GA date), absolute URLs (PyPI doesn't resolve relative links), and no GitHub-only [!IMPORTANT] alert syntax (PyPI's renderer shows it as literal text). comment-on-release.yml picked the "previous release" by list order, which breaks once two release lines publish interleaved: v2.0.0a1's previous release would have been v1.27.2 — a cross-branch compare spanning all of main since the v1.25.0 branch point — and the next v1.x release would then have compared against v2.0.0a1. It now walks back to the nearest release whose tag is an ancestor of the current tag on the same major line, paginates the commit range instead of truncating at one response, tolerates candidates whose tag no longer resolves, accepts a release re-cut on the same commit, and labels comments on pre-releases as "pre-release". The first release of a new major line has no same-line predecessor, so it intentionally skips commenting rather than commenting on every PR in the new line's history. RELEASE.md documents the pre-release flow: verify the matrix on the release commit, gh release create vX --prerelease --target , curated notes, and yank-don't-delete for broken pre-releases. SECURITY.md states the pre-release policy: fixes land only in the newest pre-release; production stays on stable. Classifier bumped to Development Status :: 3 - Alpha. How Has This Been Tested? Extracted the exact github-script bodies from the workflow YAML and executed them under node against the real GitHub API with simulated release lists. 12 scenarios pass, including: v1.27.2 → v1.27.1 (regression), simulated v2.0.0a1 → no comments (first of its major line), the next v1.x release skipping the diverged alpha and picking v1.27.2, incremental alpha-to-alpha selection, a release re-cut on the same commit, a different-major ancestor being skipped rather than aborting the walk, non-version tags, a candidate tag that 404s, and a 230-commit synthetic range collected across 3 pages. Built the sdist and inspected PKG-INFO: the description is README.v2.md (text/markdown), the classifier is 3 - Alpha, and no relative links remain. Verified compare-API commit pagination live on a 276-commit range. pre-commit (prettier, markdownlint, uv-lock check, readme snippets) passes on all changed files. Breaking Changes None for users of the package. The PyPI long description for future uploads from main switches from the v1 README to the v2 README; v1.x releases are unaffected (the v1.x branch has its own pyproject.toml). 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 This intentionally does not touch shared.yml's continue-on-error: true on the test matrix — which currently means failing tests block neither all-green nor publishing — beyond RELEASE.md telling the release manager to check the individual matrix jobs. Tightening that gate is a candidate follow-up. AI Disclaimer

Open Graph Description: Prepares the repo to publish v2 pre-releases (2.0.0aN) from main. Motivation and Context We want to start publishing v2 alphas to PyPI to get the rework into testers' hands. PEP 440 pre-release...

X Description: Prepares the repo to publish v2 pre-releases (2.0.0aN) from main. Motivation and Context We want to start publishing v2 alphas to PyPI to get the rework into testers' hands. PEP 440 pre-rel...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:bd95d84e-3ea9-e4db-8180-78d283b5a7be
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCBA2:C57C7:891D30:B98ACC:6A5A85D1
html-safe-nonce379c72ed99d2b316d43c2beb199e25eefeedf453baaca69e5ba70ad0b9545dd7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQkEyOkM1N0M3Ojg5MUQzMDpCOThBQ0M6NkE1QTg1RDEiLCJ2aXNpdG9yX2lkIjoiNzIyMzI1MDYxMjY0NTQzMDczNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf3a2facdd08691dea1c1c82393d6bddbc521843e994dc1f58eed740b1870d3f8
hovercard-subject-tagpull_request:3842156177
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/2831/files
twitter:imagehttps://avatars.githubusercontent.com/u/224885523?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/224885523?s=400&v=4
og:image:altPrepares the repo to publish v2 pre-releases (2.0.0aN) from main. Motivation and Context We want to start publishing v2 alphas to PyPI to get the rework into testers' hands. PEP 440 pre-release...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None922bdba685ea48400234d557977f0e32d9adbae6f5125725b4f48cacc6801106
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
release7c8a44665d760d73ead7e85d8f88b299152aa681
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/2831/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2831%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
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%2F2831%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/2831/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2831/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2831/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2831/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.6k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Code https://github.com/modelcontextprotocol/python-sdk
Issues 256 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
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
maxisbeyhttps://github.com/maxisbey
mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
v2-prerelease-prephttps://github.com/modelcontextprotocol/python-sdk/tree/v2-prerelease-prep
Conversation 0 https://github.com/modelcontextprotocol/python-sdk/pull/2831
Commits 4 https://github.com/modelcontextprotocol/python-sdk/pull/2831/commits
Checks 31 https://github.com/modelcontextprotocol/python-sdk/pull/2831/checks
Files changed https://github.com/modelcontextprotocol/python-sdk/pull/2831/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2831/files
Prepare release machinery for v2 pre-releases https://github.com/modelcontextprotocol/python-sdk/pull/2831/files#top
Show all changes 4 commits https://github.com/modelcontextprotocol/python-sdk/pull/2831/files
3bfe506 Prepare release machinery for v2 pre-releases maxisbey Jun 10, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2831/commits/3bfe5065e984f78111032b45797ddde40f2d80ad
14c691d Reword the v2 README banner maxisbey Jun 10, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2831/commits/14c691d92d5d49a8625c0d2dad1b661feff9f144
29944e1 Use a concrete specifier example in the upper-bound ask maxisbey Jun 10, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2831/commits/29944e1067c0e1cea5f6ecf170da070006912dd4
e6b1f64 Address review findings on the pre-release machinery maxisbey Jun 10, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2831/commits/e6b1f64a4f938cbb767bb14ff9390b38c1a0ff82
Clear filters https://github.com/modelcontextprotocol/python-sdk/pull/2831/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2831/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2831/files
comment-on-release.yml https://github.com/modelcontextprotocol/python-sdk/pull/2831/files#diff-d93f6fa4cfd11b9a1db3fc27ebbd3a5404e7c3fee8ff4762cfbad8494564c6dc
README.v2.md https://github.com/modelcontextprotocol/python-sdk/pull/2831/files#diff-08a4c6619676fe12972d812470e6bfada7b31d3d2fe6e2cf8cf8a88c79e78503
RELEASE.md https://github.com/modelcontextprotocol/python-sdk/pull/2831/files#diff-2b1b69303b927a484e02c7fad9fc87d0d3ff0dc22ae1da0ecd0dc935d922a23c
SECURITY.md https://github.com/modelcontextprotocol/python-sdk/pull/2831/files#diff-f6ed156e4bf5c791680662464b94ea5d753f219ee816b385f67870e2c0d7d4c7
stdio_client.py https://github.com/modelcontextprotocol/python-sdk/pull/2831/files#diff-80e22c31535d5b73813e1fc99d0e379ef7629c923133d659c30c2f267e87e29e
pyproject.toml https://github.com/modelcontextprotocol/python-sdk/pull/2831/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
.github/workflows/comment-on-release.ymlhttps://github.com/modelcontextprotocol/python-sdk/pull/2831/files#diff-d93f6fa4cfd11b9a1db3fc27ebbd3a5404e7c3fee8ff4762cfbad8494564c6dc
View file https://github.com/modelcontextprotocol/python-sdk/blob/e6b1f64a4f938cbb767bb14ff9390b38c1a0ff82/.github/workflows/comment-on-release.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2831/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2831/files#diff-d93f6fa4cfd11b9a1db3fc27ebbd3a5404e7c3fee8ff4762cfbad8494564c6dc
https://github.com/modelcontextprotocol/python-sdk/pull/2831/files#diff-d93f6fa4cfd11b9a1db3fc27ebbd3a5404e7c3fee8ff4762cfbad8494564c6dc
https://github.com/modelcontextprotocol/python-sdk/pull/2831/files#diff-d93f6fa4cfd11b9a1db3fc27ebbd3a5404e7c3fee8ff4762cfbad8494564c6dc
https://github.com/modelcontextprotocol/python-sdk/pull/2831/files#diff-d93f6fa4cfd11b9a1db3fc27ebbd3a5404e7c3fee8ff4762cfbad8494564c6dc
https://github.com/modelcontextprotocol/python-sdk/pull/2831/files#diff-d93f6fa4cfd11b9a1db3fc27ebbd3a5404e7c3fee8ff4762cfbad8494564c6dc
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2831/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2831/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.