René's URL Explorer Experiment


Title: ci: deploy docs via GitHub Actions to py.sdk.modelcontextprotocol.io by maxisbey · Pull Request #2632 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: ci: deploy docs via GitHub Actions to py.sdk.modelcontextprotocol.io by maxisbey · Pull Request #2632 · modelcontextprotocol/python-sdk

X Title: ci: deploy docs via GitHub Actions to py.sdk.modelcontextprotocol.io by maxisbey · Pull Request #2632 · modelcontextprotocol/python-sdk

Description: Motivation and Context Fixes #2614. The Python SDK docs link on https://modelcontextprotocol.io/docs/sdk points to https://py.sdk.modelcontextprotocol.io/, which returns 404. Every other SDK serves correctly at its *.sdk.modelcontextprotocol.io domain. The DNS is already fully configured in modelcontextprotocol/dns (py.sdk CNAME → modelcontextprotocol.github.io, plus the GitHub Pages domain verification TXT records) and resolves correctly. The 404 is entirely a Pages-side gap: no Pages site claims the custom domain (gh api repos/modelcontextprotocol/python-sdk/pages shows cname: null). The root cause is the deployment mechanism. Docs are published with mkdocs gh-deploy --force, which force-pushes the built site to the gh-pages branch. With branch-based Pages, a custom domain only works if a CNAME file is present in that branch — and a force-push overwrites it on every publish. This is a known wart of the gh-deploy model. This PR migrates to the GitHub Actions Pages artifact pipeline (configure-pages → upload-pages-artifact → deploy-pages), which is GitHub's recommended modern model and what the TypeScript SDK already uses: The custom domain becomes a persistent repository Pages setting, not a file that gets overwritten — it survives every deploy. Drops contents: write (a bot pushing commits) in favour of scoped, short-lived pages: write + id-token: write (OIDC). No generated HTML accumulating in a gh-pages branch; atomic deploys with a real github-pages environment. Deploys continuously on push to main instead of only via manual workflow_dispatch, so docs no longer drift from main (workflow_dispatch is retained as a manual trigger). site_url is also updated to https://py.sdk.modelcontextprotocol.io/ so canonical links and sitemap.xml match the published domain. This subsumes and supersedes #2615 (which changed only site_url — necessary but not sufficient on its own). Prior art: this mirrors the TypeScript SDK's docs deployment (modelcontextprotocol/typescript-sdk#1109 introduced GitHub Pages deployment; modelcontextprotocol/typescript-sdk#1584 moved it to the artifact-based deploy-pages model used here). Maintainer action required after merge The workflow change alone does not flip the Pages mechanism — a repo admin must do the following one-time settings change (the manual-publish path required a maintainer too, so this adds no new gate). Recommended order to avoid a broken intermediate state: Settings → Pages → Source: GitHub Actions (switches build_type from legacy to workflow). Merge this PR (or run the workflow via workflow_dispatch) and confirm the first Actions deployment succeeds. Settings → Pages → Custom domain: py.sdk.modelcontextprotocol.io, Save. (Equivalently: gh api -X PUT repos/modelcontextprotocol/python-sdk/pages -f cname=py.sdk.modelcontextprotocol.io.) DNS is already verified, so this is near-instant. Once the certificate is issued, tick Enforce HTTPS. No DNS changes are needed. After step 3 the custom domain persists across all future deploys. The old modelcontextprotocol.github.io/python-sdk/ path keeps working — GitHub 301-redirects it to the custom domain. Verify: gh api repos/modelcontextprotocol/python-sdk/pages --jq '{build_type,cname,https_enforced}' # expect: {"build_type":"workflow","cname":"py.sdk.modelcontextprotocol.io","https_enforced":true} curl -sI https://py.sdk.modelcontextprotocol.io/ # expect HTTP/2 200 The stale gh-pages branch can be deleted once the custom domain is confirmed serving. How Has This Been Tested? uv run --frozen --no-sync mkdocs build was run locally: it builds in strict mode, outputs to site/ (matching the artifact path:), and the generated index.html canonical tag and sitemap.xml correctly use https://py.sdk.modelcontextprotocol.io/. The Pages source/custom-domain toggle is a repo setting and is covered in the maintainer checklist above. Breaking Changes No. User-facing docs URLs are unchanged (the new domain is where the docs were always meant to be served; the old github.io path redirects). 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 Pages actions are pinned to commit SHAs to match the repository's existing workflow convention. AI Disclaimer

Open Graph Description: Motivation and Context Fixes #2614. The Python SDK docs link on https://modelcontextprotocol.io/docs/sdk points to https://py.sdk.modelcontextprotocol.io/, which returns 404. Every other SDK serves...

X Description: Motivation and Context Fixes #2614. The Python SDK docs link on https://modelcontextprotocol.io/docs/sdk points to https://py.sdk.modelcontextprotocol.io/, which returns 404. Every other SDK serves...

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

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/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:92a03208-ff63-56c0-7791-4523e2a41821
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDF08:3201B9:CF547:1138B6:6AFD2BFD
html-safe-nonce6306bb35bbdcf20da842794587df5a76562bf389bb56d3ad32d481067b64ccbc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjA4OjMyMDFCOTpDRjU0NzoxMTM4QjY6NkFGRDJCRkQiLCJ2aXNpdG9yX2lkIjoiNTE1NjQ3NjY3NTgyMjUyOTUzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7826718ab1edd0a97b4fa5f9e77fb58355cbfb16cd45945f414bad8206032b26
hovercard-subject-tagpull_request:3701896266
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/2632/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:altMotivation and Context Fixes #2614. The Python SDK docs link on https://modelcontextprotocol.io/docs/sdk points to https://py.sdk.modelcontextprotocol.io/, which returns 404. Every other SDK serves...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None065128366c233a9d57ff68ab6c96e25b99dd1b0ab70d23b70873d3dd6b5e4f19
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
release941021edf0c2ec58298f4a2c8f27ae507d129c92
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/2632/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2632%2Ffiles
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%2F2632%2Ffiles
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%2Ffiles&source=header-repo&source_repo=modelcontextprotocol%2Fpython-sdk
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2632/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2632/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2632/files
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
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
docs-deploy-github-pages-actionshttps://github.com/modelcontextprotocol/python-sdk/tree/docs-deploy-github-pages-actions
Conversation 1 https://github.com/modelcontextprotocol/python-sdk/pull/2632
Commits 1 https://github.com/modelcontextprotocol/python-sdk/pull/2632/commits
Checks 30 https://github.com/modelcontextprotocol/python-sdk/pull/2632/checks
Files changed https://github.com/modelcontextprotocol/python-sdk/pull/2632/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2632/files
ci: deploy docs via GitHub Actions to py.sdk.modelcontextprotocol.io https://github.com/modelcontextprotocol/python-sdk/pull/2632/files#top
Show all changes 1 commit https://github.com/modelcontextprotocol/python-sdk/pull/2632/files
aa4aba6 ci: deploy docs via GitHub Actions to py.sdk.modelcontextprotocol.io maxisbey May 18, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2632/commits/aa4aba6bfeac63a55a8f86d51dff3cc630dc81d0
Clear filters https://github.com/modelcontextprotocol/python-sdk/pull/2632/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2632/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2632/files
deploy-docs.yml https://github.com/modelcontextprotocol/python-sdk/pull/2632/files#diff-87e860af4b9db6c503ed680b6edb6333c6f8d7659f7d1a779a2487466bbc50f6
publish-docs-manually.yml https://github.com/modelcontextprotocol/python-sdk/pull/2632/files#diff-420070fb8fb46e243ee7ae4e264af19884b1b9b054121787be4974dbcd352b4c
mkdocs.yml https://github.com/modelcontextprotocol/python-sdk/pull/2632/files#diff-98d0f806abc9af24e6a7c545d3d77e8f9ad57643e27211d7a7b896113e420ed2
.github/workflows/deploy-docs.ymlhttps://github.com/modelcontextprotocol/python-sdk/pull/2632/files#diff-87e860af4b9db6c503ed680b6edb6333c6f8d7659f7d1a779a2487466bbc50f6
View file https://github.com/modelcontextprotocol/python-sdk/blob/aa4aba6bfeac63a55a8f86d51dff3cc630dc81d0/.github/workflows/deploy-docs.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2632/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2632/checks?check_run_id=76526695659
claudehttps://github.com/apps/claude
May 18, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2632/files#r3258944422
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
modelcontextprotocol/typescript-sdk#1584https://github.com/modelcontextprotocol/typescript-sdk/pull/1584
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2632/files
.github/workflows/publish-docs-manually.ymlhttps://github.com/modelcontextprotocol/python-sdk/pull/2632/files#diff-420070fb8fb46e243ee7ae4e264af19884b1b9b054121787be4974dbcd352b4c
View file https://github.com/modelcontextprotocol/python-sdk/blob/161834d4aee2633c42d3976c8f8751b6c4d947d5/.github/workflows/publish-docs-manually.yml
Open in desktop https://desktop.github.com
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2632/files
mkdocs.ymlhttps://github.com/modelcontextprotocol/python-sdk/pull/2632/files#diff-98d0f806abc9af24e6a7c545d3d77e8f9ad57643e27211d7a7b896113e420ed2
View file https://github.com/modelcontextprotocol/python-sdk/blob/aa4aba6bfeac63a55a8f86d51dff3cc630dc81d0/mkdocs.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2632/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2632/files#diff-98d0f806abc9af24e6a7c545d3d77e8f9ad57643e27211d7a7b896113e420ed2
https://github.com/modelcontextprotocol/python-sdk/pull/2632/files#diff-98d0f806abc9af24e6a7c545d3d77e8f9ad57643e27211d7a7b896113e420ed2
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2632/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.