René's URL Explorer Experiment
Title: Add read-only deployment history tools (list_deployments, list_deployment_statuses) by Mystery01092000 · Pull Request #3886 · github/github-mcp-server · GitHub
Open Graph Title: Add read-only deployment history tools (list_deployments, list_deployment_statuses) by Mystery01092000 · Pull Request #3886 · github/github-mcp-server
X Title: Add read-only deployment history tools (list_deployments, list_deployment_statuses) by Mystery01092000 · Pull Request #3886 · github/github-mcp-server
Description: Summary
Adds two read-only tools to the repos toolset, list_deployments and list_deployment_statuses. With them an agent can check which commit reached an environment and whether that deployment succeeded.
Why
The issue describes a release audit where the agent could see merged PRs, commits, checks and Actions runs, but not GitHub Deployment objects. Without them it could report what merged, but not whether it was actually deployed. The deployment and deployment_status filters on actions_list only select workflow triggers. They don't read the Deployment records that external deployment services create.
Fixes #3876
What changed
list_deployments wraps GET /repos/{owner}/{repo}/deployments. It takes the API's sha, ref, task and environment filters plus page/perPage, and returns id, sha, ref, task, environment, description, creator, created_at and updated_at, newest first.
list_deployment_statuses wraps GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses. It returns id, state, description, environment, environment_url, log_url, creator and the timestamps, newest first, so the first entry is the deployment's current state.
I didn't add a separate get-by-ID tool. list_deployments already returns every field the single-deployment endpoint has, so a third tool would mostly add to the tool count. Happy to add it if you'd like the 1:1 mapping from the issue.
payload is left out. It's arbitrary JSON that integrations fill with large blobs, and it isn't needed to answer "what's deployed where".
Descriptions go through sanitize.PlainText, like release names.
A new ifc.LabelDeployment label: untrusted integrity, with confidentiality following repository visibility. Deployments are written by CI and deployment integrations, and on public repositories those often run for fork PRs (preview deployments), so the ref, environment and description can carry outside text. It has the same shape as LabelActionsResult, but has its own name and doc comment so the reasoning stays next to it.
The release-preparation skill maps both tools as optional and now notes that merged or released does not mean deployed.
Registered in tools.go, with toolsnaps and README regenerated.
MCP impact
No tool or API changes
Tool schema or behavior changed
New tool added: list_deployments and list_deployment_statuses, both read-only.
Prompts tested (tool changes only)
I ran these through the locally built server over stdio with --read-only --toolsets repos, against live GitHub:
"Which commit was last deployed to production in vercel/next.js?" list_deployments with environment: Production, perPage: 2 returned deployment 6228410729 for 5b8c866c…, created by vercel[bot], and the one before it.
"Did that deployment succeed?" list_deployment_statuses for 6228410729 returned one status with state: failure and Vercel's description and log URL. This is the case the issue is about: the commit was handed to a deployment, but it didn't go live.
A non-existent deployment ID returns a tool error carrying GitHub's 404, not a crash.
Both tools show up in tools/list in read-only mode.
Security / limits
No security or limits impact
Auth / permissions considered: both tools use scopes.PublicRead(scopes.Repo), like the release and tag tools, and are read-only, so they are available with --read-only.
Data exposure, filtering, or token/size limits considered: paginated (default 30, max 100), payload omitted, free text sanitized, results labelled untrusted.
Tool renaming
I am renaming tools as part of this PR (e.g. a part of a consolidation effort)
I have added the new tool aliases in deprecated_tool_aliases.go
I am not renaming tools as part of this PR
Lint & tests
Linted locally with ./script/lint: golangci-lint v2.14.0 reports 0 issues, and gofmt is clean.
Tested locally with ./script/test: go test ./... passes. The new tests cover the filters and pagination query string, the no-filter defaults, field mapping, a missing deployment_id, API errors, and the IFC label on public and private repositories.
Docs
Not needed
Updated (README / docs / examples): README regenerated with generate-docs.
Skills
Updated relevant skills or confirmed no bundled skill applies: release-preparation maps both tools and mentions checking the deployed commit.
Open Graph Description: Summary
Adds two read-only tools to the repos toolset, list_deployments and list_deployment_statuses. With them an agent can check which commit reached an environment and whether that deployment su...
X Description: Summary
Adds two read-only tools to the repos toolset, list_deployments and list_deployment_statuses. With them an agent can check which commit reached an environment and whether that deployment su...
Opengraph URL: https://github.com/github/github-mcp-server/pull/3886
X: @github
direct link
Domain: github.com
IPv4 address: 140.82.114.3
| react-profiling | 0 |
| react-import-map | react,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-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:86fec738-d182-be77-9a1e-db737e09c346 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D634:395006:27A79E:349A58:6B0616F5 |
| html-safe-nonce | 0b8191ae2d2c6ba8f88d2974b9169733b239d670b228b66c6b71f815b147b6f9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjM0OjM5NTAwNjoyN0E3OUU6MzQ5QTU4OjZCMDYxNkY1IiwidmlzaXRvcl9pZCI6IjczODQwMDY2NzcyOTA2ODYxOTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f131da34067acdd0d6bec1de0f701e9293b6391f7de78b4746ac4829c15cd606 |
| hovercard-subject-tag | pull_request:5382092013 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/github/github-mcp-server/pull/3886/files |
| twitter:image | https://avatars.githubusercontent.com/u/43115768?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/43115768?s=400&v=4 |
| og:image:alt | Summary
Adds two read-only tools to the repos toolset, list_deployments and list_deployment_statuses. With them an agent can check which commit reached an environment and whether that deployment su... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/github/github-mcp-server git https://github.com/github/github-mcp-server.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 942771284 |
| octolytics-dimension-repository_nwo | github/github-mcp-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 942771284 |
| octolytics-dimension-repository_network_root_nwo | github/github-mcp-server |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 866f202ebf7ac5aff8f633417d9fd8a53818a977 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
| Skip to content | https://github.com/github/github-mcp-server/pull/3886/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgithub-mcp-server%2Fpull%2F3886%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgithub-mcp-server%2Fpull%2F3886%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=github%2Fgithub-mcp-server |
| Reload | https://github.com/github/github-mcp-server/pull/3886/files |
| Reload | https://github.com/github/github-mcp-server/pull/3886/files |
| Reload | https://github.com/github/github-mcp-server/pull/3886/files |
| github | https://github.com/github |
| github-mcp-server | https://github.com/github/github-mcp-server |
| Code | https://github.com/github/github-mcp-server |
| Issues238 (238) | https://github.com/github/github-mcp-server/issues |
| Pull requests226 (226) | https://github.com/github/github-mcp-server/pulls |
| Discussions | https://github.com/github/github-mcp-server/discussions |
| Actions | https://github.com/github/github-mcp-server/actions |
| Security and quality2 (2) | https://github.com/github/github-mcp-server/security |
| Insights | https://github.com/github/github-mcp-server/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fgithub%2Fgithub-mcp-server%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fgithub%2Fgithub-mcp-server%2Fissues%2Fnew%2Fchoose |
| Mystery01092000 | https://github.com/Mystery01092000 |
| github:main | https://github.com/github/github-mcp-server/tree/main |
| Mystery01092000:feat/deployment-history | https://github.com/Mystery01092000/github-mcp-server/tree/feat/deployment-history |
|
Conversation
5
| https://github.com/github/github-mcp-server/pull/3886 |
|
Commits
2
| https://github.com/github/github-mcp-server/pull/3886/commits |
|
Checks
1
| https://github.com/github/github-mcp-server/pull/3886/checks |
|
Findings
| https://github.com/github/github-mcp-server/pull/3886/findings |
|
Files changed
| https://github.com/github/github-mcp-server/pull/3886/files |
| Please reload this page | https://github.com/github/github-mcp-server/pull/3886/files |
|
Add read-only deployment history tools (list_deployments, list_deployment_statuses)
| https://github.com/github/github-mcp-server/pull/3886/files#top |
|
Show all changes
2 commits
| https://github.com/github/github-mcp-server/pull/3886/files |
|
5d8da0e
feat(repos): add read-only deployment history tools
Mystery01092000 Nov 18, 2026
| https://github.com/github/github-mcp-server/pull/3886/commits/5d8da0e374eefde59641ecf53e23a6055121fa86 |
|
b68bc14
fix(repos): scope current deployment state to page 1 and verify live …
Mystery01092000 Nov 20, 2026
| https://github.com/github/github-mcp-server/pull/3886/commits/b68bc14036eb38c84fc47e1a47b075d18c03ce4e |
|
Clear filters
| https://github.com/github/github-mcp-server/pull/3886/files |
| Please reload this page | https://github.com/github/github-mcp-server/pull/3886/files |
| Please reload this page | https://github.com/github/github-mcp-server/pull/3886/files |
|
README.md
| https://github.com/github/github-mcp-server/pull/3886/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5 |
|
list_deployment_statuses.snap
| https://github.com/github/github-mcp-server/pull/3886/files#diff-5a004390ec12d12c1bc747cce71fc59028c5c4000da82c221297a266a3a8e2a6 |
|
list_deployments.snap
| https://github.com/github/github-mcp-server/pull/3886/files#diff-ca3856c0e763416e1c8fea2c1235fee88127b647de2512f2730c7c6a0705b746 |
|
deployments.go
| https://github.com/github/github-mcp-server/pull/3886/files#diff-fd0807719962338132f309acafd9057a09725b74522c7f02a5a5c3a01ae95ac9 |
|
deployments_test.go
| https://github.com/github/github-mcp-server/pull/3886/files#diff-cfb4171a04aa84e4ecad69043243a992535e3e16bf972fe9f05c4535179d0fc7 |
|
helper_test.go
| https://github.com/github/github-mcp-server/pull/3886/files#diff-e8fa532ff8ba951d7e64e769647b469b857271a3926192545c2d9ab7bb94f402 |
|
tools.go
| https://github.com/github/github-mcp-server/pull/3886/files#diff-bcdea1f25cf43d8b075cfa770714fc9db90a9fe0bb05e5172304b66912b33889 |
|
ifc.go
| https://github.com/github/github-mcp-server/pull/3886/files#diff-4f9df0f23f170a1fcf9e6b70a9457ef8680cbec19df1ba6b5108b621e731ab65 |
|
ifc_test.go
| https://github.com/github/github-mcp-server/pull/3886/files#diff-1bc1d6daa67e8bd7098f921b95679e80f5eedbbe941f8ade204af0496043a134 |
|
SKILL.md
| https://github.com/github/github-mcp-server/pull/3886/files#diff-45b99890557dec8d1996802c2de3071e62ca481ed7a0e0e351cb889c287a2c7a |
|
tools.go
| https://github.com/github/github-mcp-server/pull/3886/files#diff-5c89bcea79251bd661cd63a177927f070b0bfbfb127aa5f62c8e8b4e27a6b4fd |
|
| https://github.com/github/github-mcp-server/blob/main/.github/CODEOWNERS#L1 |
| README.md | https://github.com/github/github-mcp-server/pull/3886/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5 |
|
View file
| https://github.com/github/github-mcp-server/blob/b68bc14036eb38c84fc47e1a47b075d18c03ce4e/README.md |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/github/github-mcp-server/pull/3886/{{ revealButtonHref }} |
|
| https://github.com/github/github-mcp-server/pull/3886/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5 |
|
| https://github.com/github/github-mcp-server/pull/3886/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5 |
|
| https://github.com/github/github-mcp-server/blob/main/.github/CODEOWNERS#L1 |
| pkg/github/__toolsnaps__/list_deployment_statuses.snap | https://github.com/github/github-mcp-server/pull/3886/files#diff-5a004390ec12d12c1bc747cce71fc59028c5c4000da82c221297a266a3a8e2a6 |
|
View file
| https://github.com/github/github-mcp-server/blob/b68bc14036eb38c84fc47e1a47b075d18c03ce4e/pkg/github/__toolsnaps__/list_deployment_statuses.snap |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/github/github-mcp-server/pull/3886/{{ revealButtonHref }} |
|
| https://github.com/github/github-mcp-server/blob/main/.github/CODEOWNERS#L1 |
| pkg/github/__toolsnaps__/list_deployments.snap | https://github.com/github/github-mcp-server/pull/3886/files#diff-ca3856c0e763416e1c8fea2c1235fee88127b647de2512f2730c7c6a0705b746 |
|
View file
| https://github.com/github/github-mcp-server/blob/b68bc14036eb38c84fc47e1a47b075d18c03ce4e/pkg/github/__toolsnaps__/list_deployments.snap |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/github/github-mcp-server/pull/3886/{{ revealButtonHref }} |
| Please reload this page | https://github.com/github/github-mcp-server/pull/3886/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |
Response headers:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width
URLs of crawlers that visited me.