René's URL Explorer Experiment


Title: Move the docs-preview workflow scripts out of the YAML into .github/scripts by maxisbey · Pull Request #3446 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: Move the docs-preview workflow scripts out of the YAML into .github/scripts by maxisbey · Pull Request #3446 · modelcontextprotocol/python-sdk

X Title: Move the docs-preview workflow scripts out of the YAML into .github/scripts by maxisbey · Pull Request #3446 · modelcontextprotocol/python-sdk

Description: Pure refactor: no behaviour change to the docs preview flow. Motivation and Context docs-preview.yml carried two ~45-line blocks of inline JavaScript in actions/github-script steps (authorize and comment). Inline scripts can't be linted, unit-tested, or reviewed as code, and every edit to them is a YAML diff. require-linked-issue.yml already does this the better way: the logic lives in .github/scripts/pr_intake_gate.js with scenario tests beside it, and the workflow step is a two-line require + call. This moves the docs-preview logic to .github/scripts/docs_preview.js (authorize and comment exports) in the same shape, verbatim apart from hoisting the marker/bot-login constants. That also sets up the checkout-v7 follow-up (#3445) to be a few lines in the module plus a test, rather than another YAML-embedded edit. Workflow changes that come with the move: Both authorize and comment now start with a sparse checkout of .github/scripts (persist-credentials: false) so the module is on disk for github-script's require. Under pull_request_target and issue_comment a default checkout resolves to the default branch, so this is trusted code, never the PR's; the header notes it. comment gains contents: read for that checkout. shared.yml's checks job runs node --test '.github/scripts/*.test.js' instead of naming the one gate test file, and the setup-node comment no longer names a github-script major (v9 is still node24). The Cloudflare cleanup shell block in docs-preview-cleanup.yml stays inline: moving it would mean adding a checkout to a job that holds the Cloudflare token, for little gain. How Has This Been Tested? New .github/scripts/docs_preview.test.js (14 scenarios) alongside the existing gate tests; node --test '.github/scripts/*.test.js' passes all 43 locally. Ran the pinned actions/github-script v9.0.0 bundle locally against the new two-line authorize stub in a scratch workspace containing only .github/scripts/: the module resolves via the action's wrapped require, authorize runs, and the injected client issues the collaborators-permission request (stopping at the expected 401 with a dummy token). pre-commit run --files on the four touched files. pull_request_target/issue_comment read the workflow from main, so CI on this PR does not exercise the new steps; after merge, /preview-docs on any open docs PR (or the next admin push to one) is the live check. Breaking Changes None. 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 Refactor of CI tooling only. 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 AI Disclaimer

Open Graph Description: Pure refactor: no behaviour change to the docs preview flow. Motivation and Context docs-preview.yml carried two ~45-line blocks of inline JavaScript in actions/github-script steps (authorize and c...

X Description: Pure refactor: no behaviour change to the docs preview flow. Motivation and Context docs-preview.yml carried two ~45-line blocks of inline JavaScript in actions/github-script steps (authorize and c...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

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:382ae4bd-1b42-9970-197a-52c7a4af96b9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB1FC:3B6A24:1569EDB:1D797B4:6B057B93
html-safe-nonce92020f5b5c318be9e95b96f997afce177205f05020688f3ceb04637cb7adb19b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMUZDOjNCNkEyNDoxNTY5RURCOjFENzk3QjQ6NkIwNTdCOTMiLCJ2aXNpdG9yX2lkIjoiNDE5MTg5MDUwOTM0ODA0MzY2NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac08e091e81bc2a620b95f602cd872c54dc700a0db482d77641f30221ef133c51c
hovercard-subject-tagpull_request:4446091272
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/3446/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:altPure refactor: no behaviour change to the docs preview flow. Motivation and Context docs-preview.yml carried two ~45-line blocks of inline JavaScript in actions/github-script steps (authorize and c...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None507b2d62524c0f595c35a2a2ee8a6ec54b119f245b3c59eaa070013b70ed1ada
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
releasee7a883ae3b439b8952652eaa7803e2587f30e339
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/3446/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F3446%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%2F3446%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/3446/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/3446/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/3446/files
modelcontextprotocolhttps://github.com/modelcontextprotocol
python-sdkhttps://github.com/modelcontextprotocol/python-sdk
Codehttps://github.com/modelcontextprotocol/python-sdk
Issues320 (320)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
extract-workflow-scriptshttps://github.com/modelcontextprotocol/python-sdk/tree/extract-workflow-scripts
Conversation 0 https://github.com/modelcontextprotocol/python-sdk/pull/3446
Commits 1 https://github.com/modelcontextprotocol/python-sdk/pull/3446/commits
Checks 38 https://github.com/modelcontextprotocol/python-sdk/pull/3446/checks
Files changed https://github.com/modelcontextprotocol/python-sdk/pull/3446/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3446/files
Move the docs-preview workflow scripts out of the YAML into .github/scripts https://github.com/modelcontextprotocol/python-sdk/pull/3446/files#top
Show all changes 1 commit https://github.com/modelcontextprotocol/python-sdk/pull/3446/files
761425d Move the docs-preview workflow scripts out of the YAML into .github/s… maxisbey Sep 4, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3446/commits/761425d8bbc09a4a9cb78ecf5e4bf28e018bdf8e
Clear filters https://github.com/modelcontextprotocol/python-sdk/pull/3446/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3446/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3446/files
docs_preview.js https://github.com/modelcontextprotocol/python-sdk/pull/3446/files#diff-a09be9cab1798bbd0e83d5799a1dd8576897bd11c375b6b52df23958f6576059
docs_preview.test.js https://github.com/modelcontextprotocol/python-sdk/pull/3446/files#diff-4b7a356af28e045f41d3c8c8baf6ee4c92f8dd1b2509cca8f971d121c9119467
docs-preview.yml https://github.com/modelcontextprotocol/python-sdk/pull/3446/files#diff-b2dfe4aeecdb9075a7cc1eb9e254ffdd4c35485caefa7aea80e4895c0f379918
shared.yml https://github.com/modelcontextprotocol/python-sdk/pull/3446/files#diff-9852c0f7d79fa9d5200f11511ffdbadc321f7115fe1c5e8d2f2e63863d2441ee
.github/scripts/docs_preview.jshttps://github.com/modelcontextprotocol/python-sdk/pull/3446/files#diff-a09be9cab1798bbd0e83d5799a1dd8576897bd11c375b6b52df23958f6576059
View file https://github.com/modelcontextprotocol/python-sdk/blob/761425d8bbc09a4a9cb78ecf5e4bf28e018bdf8e/.github/scripts/docs_preview.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3446/{{ revealButtonHref }}
.github/scripts/docs_preview.test.jshttps://github.com/modelcontextprotocol/python-sdk/pull/3446/files#diff-4b7a356af28e045f41d3c8c8baf6ee4c92f8dd1b2509cca8f971d121c9119467
View file https://github.com/modelcontextprotocol/python-sdk/blob/761425d8bbc09a4a9cb78ecf5e4bf28e018bdf8e/.github/scripts/docs_preview.test.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3446/{{ revealButtonHref }}
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3446/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3446/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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.