Repository navigation
CLAUDE.md: document MCP write-tool workflow for no-local-checkout sessions - #167
Merged
Merged
Conversation
…l checkout Some remote/web sessions have no local git clone at all, not just a missing gh CLI - every branch/file/PR change goes through the GitHub MCP write tools. Document the get_file_contents -> create_or_update_file pattern (full-file replace, sha required and must be re-fetched per write) and add table rows for create_or_update_file and create_branch, discovered while implementing gha#152/#153.
Contributor
|
Claude finished @d-morrison's task in 2m 49s —— View job Todo
ReviewThis is a docs-only addition to the "GitHub access in remote / web sessions" section of Fact-check of the technical claims:
No blocking issues found. This is a pure documentation clarification with no code paths to break, and as CLAUDE.md itself notes, VerdictReady for merge |
3 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
clone at all — every branch, file edit, and PR went through the GitHub MCP
tools).
CLAUDE.md's "GitHub access in remote / web sessions" section documentedthe read-side mapping (
gh→ MCP) thoroughly but had no guidance for thewrite side: creating a branch or editing a file with no local checkout to
git commit/git pushagainst.get_file_contentsfor thecurrent blob
sha→create_or_update_filewith the full new content andthat
sha; re-fetchshabefore every subsequent write) and two new tablerows for
create_or_update_fileandcreate_branch.Test plan
_selftest.yml.Generated by Claude Code