Repository navigation
Description
Summary
When Microsoft 365 Copilot uses the GitHub integration/MCP file-write operation to create or update repository files containing a legitimate external URL, the URL can be replaced with the literal string <scrubbed-url-domain> in the committed file.
This appears to turn a URL-sanitization/redaction mechanism into persistent source-code modification.
I cannot determine whether the transformation occurs in the Microsoft 365 Copilot host, connector/integration layer, remote GitHub MCP service, or another intermediary, so I am reporting this here as an interoperability issue rather than attributing the cause specifically to GitHub MCP Server.
Environment
- Client/host: Microsoft 365 Copilot
- Target: GitHub repository
- Operation: create/update repository file through the GitHub integration
- File type: JSON Schema
- Validation: GitHub Actions using Python
jsonschema, Draft 2020-12 - Repository branch:
feature/exploration-schema-foundation
Reproduction
The intended JSON Schema declaration was the standard Draft 2020-12 $schema value from json-schema.org.
Attempt 1: normal literal URL
A new schema file was created through the GitHub integration with the normal Draft 2020-12 $schema declaration.
After the write, the committed repository file contained:
"$schema": "https://<scrubbed-url-domain>/draft/2020-12/schema"
GitHub Actions subsequently rejected that schema.
Commit: 76006f7b733db0af19b4e9e1e53ebbdfa0775b28
Attempt 2: JSON Unicode escape
I then attempted to avoid sanitization by representing part of the domain using a JSON Unicode escape.
After that update, the committed repository file contained:
"$schema": "<scrubbed-url-domain>"
Commit: b2c84879ecbe5ad672437c2a76da3271ecc62774
This indicates that using an escaped representation did not preserve the intended source string.
Control evidence
Other existing schemas in the same repository contain the same legitimate Draft 2020-12 metaschema URL and validate successfully.
In the failing CI run:
- 10 other schema definitions passed.
- 1 schema definition failed.
- The failed schema was the newly connector-written
surface-region.schema.json. - 44 existing fixture checks passed.
- The validator specifically reported the persisted scrub marker.
After removing the corrupted $schema line:
Commit: 8181cff1210f82bc255bc50e128a23121f41c1f7
Expected behavior
If URL sanitization is required for model/tool output or display, it should not alter the literal file content ultimately committed to the user's repository.
A repository-write operation should either:
- preserve the requested file content exactly, or
- reject the write and clearly report that the content cannot be persisted.
Persisting a redaction placeholder into source code silently corrupts the target file.
Actual behavior
A legitimate URL supplied as source-file content can be replaced with <scrubbed-url-domain> and that replacement can be committed to the repository.
The resulting file differs semantically from the requested file and can break downstream tooling such as JSON Schema validation.
Impact
This potentially affects more than JSON Schema metadata. Any source, configuration, documentation, test fixture, API specification, or other repository artifact containing URLs could be altered if the same sanitization path applies.
For code-generation/file-editing workflows, display-time redaction and persisted file content need to remain separate.
Question for maintainers
Is URL sanitization performed anywhere in the remote GitHub MCP file-write path?
If not, could this transformation be occurring before the request reaches GitHub MCP Server, and is there diagnostic information that would help determine which integration layer performed it?
I can provide the GitHub Actions logs/screenshots and additional reproduction attempts if useful.


Activity
Thornquist1985 commentedon Nov 28, 2026
Additional CI evidence: In the failing run for commit
76006f7b733db0af19b4e9e1e53ebbdfa0775b28, GitHub Actions isolatedschemas/exploration/planetary/surface-region.schema.jsonas the only schema-definition failure and reported its$schemaas containing<scrubbed-url-domain>. The summary showed 10 schema definitions passed, 1 failed, 44 fixtures passed, and 0 fixture failures. The escaped-domain repair attempt atb2c84879ecbe5ad672437c2a76da3271ecc62774was again isolated to this same file; repository inspection showed the attempted value persisted as"$schema": "<scrubbed-url-domain>". Commit8181cff1210f82bc255bc50e128a23121f41c1f7then removed the corrupted property. I also have screenshots of these GitHub Actions runs. The MCP issue/comment tool exposed to this client has no image-attachment parameter, so I cannot attach the screenshots through this integration; I can add them manually in GitHub.