Title: create_or_update_file requires SHA for updating by marked as optional by default. · Issue #3130 · github/github-mcp-server · GitHub
Open Graph Title: create_or_update_file requires SHA for updating by marked as optional by default. · Issue #3130 · github/github-mcp-server
X Title: create_or_update_file requires SHA for updating by marked as optional by default. · Issue #3130 · github/github-mcp-server
Description: Describe the feature or problem you’d like to solve My Agent on foundry has GitHub MCP attached and it does the PRs by checking the current existence of the file and decides to creat or update the file. It uses same "create_or_update_fil...
Open Graph Description: Describe the feature or problem you’d like to solve My Agent on foundry has GitHub MCP attached and it does the PRs by checking the current existence of the file and decides to creat or update the ...
X Description: Describe the feature or problem you’d like to solve My Agent on foundry has GitHub MCP attached and it does the PRs by checking the current existence of the file and decides to creat or update the ...
Opengraph URL: https://github.com/github/github-mcp-server/issues/3130
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"create_or_update_file requires SHA for updating by marked as optional by default.","articleBody":"### Describe the feature or problem you’d like to solve\n\nMy Agent on foundry has GitHub MCP attached and it does the PRs by checking the current existence of the file and decides to creat or update the file. It uses same \"create_or_update_file\" tool to update the file, but it fails sometimes saying file can't be found while updating the file but is present in the repo. The issue is the MCP does not take the SHA value first (by using get_file_content or similar tool) and pass it to the next tool call (which is required by the create_or_update_file tool for updating).\n\n### Proposed solution\n\n1. We can have 2 different tool seperately for create_file(no SHA) and update_file(SHA required)\n2. Make SHA mandatory for create_or_update_file tool and pass placeholder for file creation (Ideally not good may be)\n\n### Additional context\n\nI see discussion before that team is aware of this issue\nhttps://github.com/github/github-mcp-server/pull/2134\n","author":{"url":"https://github.com/rohithp0914","@type":"Person","name":"rohithp0914"},"datePublished":"2026-08-20T21:10:05Z","url":"https://github.com/github/github-mcp-server/issues/3130"}
| 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 | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3649eb90-d006-f411-ab06-6f6159ca1dfc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C4A2:1CA0E6:89CDE7:B8FB2A:6B063661 |
| html-safe-nonce | e99236034fa0d57b21012e6f1cddb75014ab3de120002d9266b4aa893e580c45 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNEEyOjFDQTBFNjo4OUNERTc6QjhGQjJBOjZCMDYzNjYxIiwidmlzaXRvcl9pZCI6IjMwMzY0NTY4NDQwMTAwNzU3NDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4caa6df30b3df3075d59ea324c85ef9e058070a795df16ea6f814414893bc949 |
| hovercard-subject-tag | issue:5207897177 |
| 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/_view_fragments/issues/show/github/github-mcp-server/3130/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d2ccee1fadd4e6ef9249255653fb47a8802754c1fde5ef3bb072ee3e1c1a11c8/github/github-mcp-server/issues/3130 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d2ccee1fadd4e6ef9249255653fb47a8802754c1fde5ef3bb072ee3e1c1a11c8/github/github-mcp-server/issues/3130 |
| og:image:alt | Describe the feature or problem you’d like to solve My Agent on foundry has GitHub MCP attached and it does the PRs by checking the current existence of the file and decides to creat or update the ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rohithp0914 |
| hostname | github.com |
| expected-hostname | github.com |
| None | c3584c853cd39700ecff6e2cf8364295ffdb5313e571046c41cd2479270f7df0 |
| turbo-cache-control | no-preview |
| 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 | 9eb3bb1597d09170a5f282cd38ae376dee1a5ec1 |
| 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