René's URL Explorer Experiment


Title: Source code files corrupted when server/tool attempts to base64 encode my files on read and write · Issue #841 · github/github-mcp-server · GitHub

Open Graph Title: Source code files corrupted when server/tool attempts to base64 encode my files on read and write · Issue #841 · github/github-mcp-server

X Title: Source code files corrupted when server/tool attempts to base64 encode my files on read and write · Issue #841 · github/github-mcp-server

Description: Describe the bug I had an awesome day with GPT 5.0 and a more sophisticated prompt/spec that would do multi change batches with Github MCP, but in the end my files got corrupted. It was corrupted because the MCP seems to only work with b...

Open Graph Description: Describe the bug I had an awesome day with GPT 5.0 and a more sophisticated prompt/spec that would do multi change batches with Github MCP, but in the end my files got corrupted. It was corrupted b...

X Description: Describe the bug I had an awesome day with GPT 5.0 and a more sophisticated prompt/spec that would do multi change batches with Github MCP, but in the end my files got corrupted. It was corrupted b...

Opengraph URL: https://github.com/github/github-mcp-server/issues/841

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Source code files corrupted when server/tool attempts to base64 encode my files on read and write","articleBody":"### Describe the bug\n\nI had an awesome day with GPT 5.0 and a more [sophisticated prompt/spec that would do multi change batches](https://gist.github.com/paulyuk/ff7c3d45f19a2b3739bbf249798a5140) with Github MCP, but in the end my files got [corrupted](https://github.com/paulyuk/functions-quickstart-dotnet-azd-eventgrid-blob/commit/ba8485af126fda3a0960080c1ab92dee536a29f1).  It was corrupted because the MCP seems to only work with base64 blobs and not actual text/code files from github (), and then it writes base64 back over my code files.  Details below.  I don't know if it matters (validating now) but I was using today's new GPT 5.0 preview.\n\n### Detailed response from agent mode\n```\nCannot safely rewrite all remote main.bicep files here because I only have the base64 blobs (and the raw fetch tool returns truncated snippets with ellipses), so producing full, exact, whitespace‑preserving replacements (removing just the single deprecated output line) risks introducing corruption similar to the earlier csproj issue.\nSummary of findings:\nAll sampled dotnet templates (eventgrid-blob, dotnet-sql) still contain: output APPLICATIONINSIGHTS_CONNECTION_STRING string = monitoring.outputs.connectionString\nLikely present in the other language templates too (pattern is consistent across these AZD samples).\nRoot cause of earlier miss:\nInfra removal step never executed; workflow focused only on csproj/package edits; no audit pass enforced absence of the output.\n```\n\n### Steps to reproduce the behavior\n\n1. Run the prompt spec above\n2. Observe commits made by Github MCP server.  See already done examples above.\n\n\n### Expected vs actual behavior\n\nThese are just source code files (xml, json, js) so text should come in and text should go out.  Never base64.\n\n### Logs\n\n```\nTool Call - call_nldxATetAhrrZMmutwn6wRL6__vscode-1754595944293\nRequest\nid   : call_nldxATetAhrrZMmutwn6wRL6__vscode-1754595944293\ntool : mcp_github_get_file_contents\nargs : {\n  \"owner\": \"Azure-Samples\",\n  \"repo\": \"functions-quickstart-dotnet-azd-eventgrid-blob\",\n  \"path\": \"src/src.csproj\",\n  \"branch\": \"main\"\n}\nResponse\n{\"type\":\"file\",\"encoding\":\"base64\",\"size\":1482,\"name\":\"src.csproj\",\"path\":\"src/src.csproj\",\"content\":\"77u/PFByb2plY3QgU2RrPSJNaWNyb3NvZnQuTkVULlNkayI+CiAgPFByb3Bl\\ncnR5R3JvdXA+CiAgICA8VGFyZ2V0RnJhbWV3b3JrPm5ldDguMDwvVGFyZ2V0\\nRnJhbWV3b3JrPgogICAgPEF6dXJlRnVuY3Rpb25zVmVyc2lvbj52NDwvQXp1\\ncmVGdW5jdGlvbnNWZXJzaW9uPgogICAgPE91dHB1dFR5cGU+RXhlPC9PdXRw\\ndXRUeXBlPgogICAgPEltcGxpY2l0VXNpbmdzPmVuYWJsZTwvSW1wbGljaXRV\\nc2luZ3M+CiAgICA8TnVsbGFibGU+ZW5hYmxlPC9OdWxsYWJsZT4KICAgIDxV\\nc2VyU2VjcmV0c0lkPjc2MzM5NGRmLWI4MDctNGY4Mi04ZTUwLTI1MTZlNDBj\\nM2M1YjwvVXNlclNlY3JldHNJZD4KICA8L1Byb3BlcnR5R3JvdXA+CiAgPEl0\\nZW1Hcm91cD4KICAgIDxGcmFtZXdvcmtSZWZlcmVuY2UgSW5jbH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ICAgIDwvTm9uZT4KICAgIDxO\\nb25lIFVwZGF0ZT0ibG9jYWwuc2V0dGluZ3MuanNvbiI+CiAgICAgIDxDb3B5\\nVG9PdXRwdXREaXJlY3Rvcnk+UHJlc2VydmVOZXdlc3Q8L0NvcHlUb091dHB1\\ndERpcmVjdG9yeT4KICAgICAgPENvcHlUb1B1Ymxpc2hEaXJlY3Rvcnk+TmV2\\nZXI8L0NvcHlUb1B1Ymxpc2hEaXJlY3Rvcnk+CiAgICA8L05vbmU+CiAgPC9J\\ndGVtR3JvdXA+CiAgPEl0ZW1Hcm91cD4KICAgIDxVc2luZyBJbmNsdWRlPSJT\\neXN0ZW0uVGhyZWFkaW5nLkV4ZWN1dGlvbkNvbnRleHQiIEFsaWFzPSJFeGVj\\ndXRpb25Db250ZXh0IiAvPgogIDwvSXRlbUdyb3VwPgo8L1Byb2plY3Q+\\n\",\"sha\":\"dfedb117726cf0cddfb5fe0f7964d7f60689299d\",\"url\":\"https://api.github.com/repos/Azure-Samples/functions-quickstart-dotnet-azd-eventgrid-blob/contents/src/src.csproj?ref=main\",\"git_url\":\"https://api.github.com/repos/Azure-Samples/functions-quickstart-dotnet-azd-eventgrid-blob/git/blobs/dfedb117726cf0cddfb5fe0f7964d7f60689299d\",\"html_url\":\"https://github.com/Azure-Samples/functions-quickstart-dotnet-azd-eventgrid-blob/blob/main/src/src.csproj\",\"download_url\":\"https://raw.githubusercontent.com/Azure-Samples/functions-quickstart-dotnet-azd-eventgrid-blob/main/src/src.csproj\"}\nThinking\n```\n\n\n","author":{"url":"https://github.com/paulyuk","@type":"Person","name":"paulyuk"},"datePublished":"2025-08-08T01:31:16Z","url":"https://github.com/github/github-mcp-server/issues/841"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f7a279d2-7ac0-654e-9526-f1dafee38776
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC55C:23E430:1D9BF2F:26FF275:6B068A5E
html-safe-noncec21517a9df35b1493480279839389672d2d4fbdd291db8447adcf15c966d3370
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTVDOjIzRTQzMDoxRDlCRjJGOjI2RkYyNzU6NkIwNjhBNUUiLCJ2aXNpdG9yX2lkIjoiMTA0Njg0MzA3MjY4NTk2Nzk2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac870f30c2a23d28c7c9ecea663b5aaaa1c564c92c6ccec4da784b80046d22ed54
hovercard-subject-tagissue:3302336421
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/github-mcp-server/841/issue_layout
twitter:imagehttps://opengraph.githubassets.com/76e2bcf4fcad048faa59059ce419a8417707e1e318d162e5257ff881d4c9d76a/github/github-mcp-server/issues/841
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/76e2bcf4fcad048faa59059ce419a8417707e1e318d162e5257ff881d4c9d76a/github/github-mcp-server/issues/841
og:image:altDescribe the bug I had an awesome day with GPT 5.0 and a more sophisticated prompt/spec that would do multi change batches with Github MCP, but in the end my files got corrupted. It was corrupted b...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepaulyuk
hostnamegithub.com
expected-hostnamegithub.com
None4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a
turbo-cache-controlno-preview
go-importgithub.com/github/github-mcp-server git https://github.com/github/github-mcp-server.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id942771284
octolytics-dimension-repository_nwogithub/github-mcp-server
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id942771284
octolytics-dimension-repository_network_root_nwogithub/github-mcp-server
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release6d3909414814ff86ce7da4c51a0f4918a13fb41b
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/github/github-mcp-server/issues/841#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgithub-mcp-server%2Fissues%2F841
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%2Fgithub%2Fgithub-mcp-server%2Fissues%2F841
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=github%2Fgithub-mcp-server
Reloadhttps://github.com/github/github-mcp-server/issues/841
Reloadhttps://github.com/github/github-mcp-server/issues/841
Reloadhttps://github.com/github/github-mcp-server/issues/841
githubhttps://github.com/github
github-mcp-serverhttps://github.com/github/github-mcp-server
Codehttps://github.com/github/github-mcp-server
Issues238 (238)https://github.com/github/github-mcp-server/issues
Pull requests228 (228)https://github.com/github/github-mcp-server/pulls
Discussionshttps://github.com/github/github-mcp-server/discussions
Actionshttps://github.com/github/github-mcp-server/actions
Security and quality2 (2)https://github.com/github/github-mcp-server/security
Insightshttps://github.com/github/github-mcp-server/insights
https://github.com/github/github-mcp-server
New issuehttps://github.com/login?return_to=https://github.com/github/github-mcp-server/issues/841
New issuehttps://github.com/login?return_to=https://github.com/github/github-mcp-server/issues/841
Source code files corrupted when server/tool attempts to base64 encode my files on read and writehttps://github.com/github/github-mcp-server/issues/841#top
https://github.com/toby
bughttps://github.com/github/github-mcp-server/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/paulyuk
paulyukhttps://github.com/paulyuk
on Aug 8, 2025https://github.com/github/github-mcp-server/issues/841#issue-3302336421
sophisticated prompt/spec that would do multi change batcheshttps://gist.github.com/paulyuk/ff7c3d45f19a2b3739bbf249798a5140
corruptedhttps://github.com/paulyuk/functions-quickstart-dotnet-azd-eventgrid-blob/commit/ba8485af126fda3a0960080c1ab92dee536a29f1
paulyukhttps://github.com/paulyuk
tobyhttps://github.com/toby
on Aug 8, 2025https://github.com/github/github-mcp-server/issues/841#event-19045940976
paulyukhttps://github.com/paulyuk
bughttps://github.com/github/github-mcp-server/issues?q=state%3Aopen%20label%3A%22bug%22
on Aug 8, 2025https://github.com/github/github-mcp-server/issues/841#event-19045941181
https://github.com/paulyuk
paulyukhttps://github.com/paulyuk
on Aug 8, 2025https://github.com/github/github-mcp-server/issues/841#issuecomment-3166302582
https://private-user-images.githubusercontent.com/1968137/475828128-37f1196b-c747-41a4-839a-1bba713a37a5.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTU1OTEwNTEsIm5iZiI6MTc5NTU5MDc1MSwicGF0aCI6Ii8xOTY4MTM3LzQ3NTgyODEyOC0zN2YxMTk2Yi1jNzQ3LTQxYTQtODM5YS0xYmJhNzEzYTM3YTUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MTEyNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjExMjVUMDcxMjMxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NzA4ZjBhZmU1ODc5NWI3NDBjZGQ4ZDE5ZDI0OTUyNTkxZDVjZGY3YzBmYzQ1NTU4MTY0OGYyNmE5ZDc3YmQ3NCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.51ra2d5TgN5iq7LBijNsxnnC3ItP2ZpHdtvrmh7_d3w
https://github.com/SamMorrowDrums
SamMorrowDrumshttps://github.com/SamMorrowDrums
on Aug 8, 2025https://github.com/github/github-mcp-server/issues/841#issuecomment-3166318235
@paulyukhttps://github.com/paulyuk
https://github.com/paulyuk
paulyukhttps://github.com/paulyuk
on Aug 8, 2025https://github.com/github/github-mcp-server/issues/841#issuecomment-3166352277
@SamMorrowDrumshttps://github.com/SamMorrowDrums
https://private-user-images.githubusercontent.com/1968137/475835279-c306c3ff-a856-4c41-afd6-e95d84d8cc9a.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTU1OTEwNTEsIm5iZiI6MTc5NTU5MDc1MSwicGF0aCI6Ii8xOTY4MTM3LzQ3NTgzNTI3OS1jMzA2YzNmZi1hODU2LTRjNDEtYWZkNi1lOTVkODRkOGNjOWEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MTEyNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjExMjVUMDcxMjMxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZjA3ZDJhYzYyZTg0NzYxNWMyZmNiODZkZGNmYTZmNjcyMGQ3NjA5NTAzNmE5ZGYyYmFkNzYyZGU2YjkwZTg3NCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.K_zJTx6IyxvrugARPZezatOazDgwVaAr_7rMbelx5l0
https://github.com/SamMorrowDrums
SamMorrowDrumshttps://github.com/SamMorrowDrums
on Aug 8, 2025https://github.com/github/github-mcp-server/issues/841#issuecomment-3166363168
SamMorrowDrumshttps://github.com/SamMorrowDrums
completedhttps://github.com/github/github-mcp-server/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Aug 8, 2025https://github.com/github/github-mcp-server/issues/841#event-19049807241
Sign up for freehttps://github.com/signup?return_to=https://github.com/github/github-mcp-server/issues/841
Sign in to commenthttps://github.com/login?return_to=https://github.com/github/github-mcp-server/issues/841
tobyhttps://github.com/toby
bughttps://github.com/github/github-mcp-server/issues?q=state%3Aopen%20label%3A%22bug%22
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-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.