Title: Use GitHub-signed commits for repository file write tools · Issue #2771 · github/github-mcp-server · GitHub
Open Graph Title: Use GitHub-signed commits for repository file write tools · Issue #2771 · github/github-mcp-server
X Title: Use GitHub-signed commits for repository file write tools · Issue #2771 · github/github-mcp-server
Description: GitHub's official MCP Server. Contribute to github/github-mcp-server development by creating an account on GitHub.
Open Graph Description: GitHub's official MCP Server. Contribute to github/github-mcp-server development by creating an account on GitHub.
X Description: GitHub's official MCP Server. Contribute to github/github-mcp-server development by creating an account on GitHub.
Opengraph URL: https://github.com/github/github-mcp-server
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Use GitHub-signed commits for repository file write tools","articleBody":"## Summary\n\nRepository write tools such as `create_or_update_file` and `push_files` can create unsigned commits. In repositories that require verified commit signatures, the MCP-created pull request is then blocked with:\n\n> Commits must have verified signatures.\n\n## Reproduction\n\n1. Use the MCP server against a repository with a ruleset/branch protection rule requiring signed commits.\n2. Create a branch.\n3. Use `create_or_update_file` or `push_files` to write a commit.\n4. Open a pull request.\n\n## Actual behavior\n\nThe commit can be reported by GitHub as `verification.verified=false` with `verification.reason=unsigned`, and the pull request cannot be merged while the signed-commit rule is active.\n\n## Expected behavior\n\nRepository write tools should use a GitHub API path that can produce GitHub-verified commits when supported by the authenticated actor, so MCP-generated pull requests can satisfy signed-commit requirements without clients managing GPG or SSH signing keys.\n\n## Notes\n\nI verified in an internal test repository that switching the file write to GraphQL `createCommitOnBranch` produced a commit with:\n\n- `verification.verified=true`\n- `verification.reason=valid`\n\nThe existing `delete_file` implementation already avoids the simpler REST contents deletion path because of commit signing behavior. The same issue can affect create/update and multi-file writes.\n\n## Proposed fix\n\nUse GraphQL `createCommitOnBranch` for `create_or_update_file` and `push_files`, keeping the existing tool inputs and response shape as much as possible.\n","author":{"url":"https://github.com/bongsu-rapportlabs","@type":"Person","name":"bongsu-rapportlabs"},"datePublished":"2026-06-26T02:59:02Z","url":"https://github.com/github/github-mcp-server/issues/2771"}
| 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/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:85e55053-38a2-71e8-7c98-de7e3d553924 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 807C:1E1784:5F7661:7EC55A:6B0624DC |
| html-safe-nonce | 98c5a35fb85eca2f194143ba13f7c977630706baf4933a0439de2b914c6f2bc5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDdDOjFFMTc4NDo1Rjc2NjE6N0VDNTVBOjZCMDYyNERDIiwidmlzaXRvcl9pZCI6IjY3Nzc3MDYyMzU5NzEzODA0NDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0d6747a64c7f4dfd513f6367bd99113a8f830af4969a3fe2bcec26a1a7d48e0a |
| hovercard-subject-tag | repository:942771284 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/github/github-mcp-server/issues/2771 |
| twitter:image | https://opengraph.githubassets.com/87b70adffa3ad5bb39a6fbaff7f589d450fdbbaa21dbbedd3a0310be7882510b/github/github-mcp-server |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/87b70adffa3ad5bb39a6fbaff7f589d450fdbbaa21dbbedd3a0310be7882510b/github/github-mcp-server |
| og:image:alt | GitHub's official MCP Server. Contribute to github/github-mcp-server development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9e10bb0ecc0bd0f8692aa89586ee9b54e498d7ab9f244a44cdb5b93653a125ce |
| turbo-cache-control | no-cache |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 32e57d5cc2ce6ce92ec6dceb65858344750c27c2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width