Draft
Conversation
Agent-Logs-Url: https://github.com/github/github-mcp-server/sessions/8180b3b5-6e5d-44bb-bff0-72b375d242ab Co-authored-by: RossTarrant <14926097+RossTarrant@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update user profile management system
Add update_user_profile MCP tool
May 1, 2026
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
Adds a new
update_user_profiletool to the Context toolset, enabling agents to update the authenticated user's GitHub profile viaPATCH /user.Why
The Context toolset had
get_mefor reading profile data but no write counterpart for updating it.What changed
UpdateUserProfiletool inpkg/github/context_tools.go— accepts optional fields (name,email,blog,twitter_username,company,location,hireable,bio), requires at least one field, returns updatedMinimalUserAllToolsinpkg/github/tools.goPatchUser = "PATCH /user"endpoint constant tohelper_test.goTest_UpdateUserProfilewith cases: single-field update, multi-field update, no-fields error, client error, API errorupdate_user_profile.snapMCP impact
update_user_profilein thecontexttoolset; requiresuserOAuth scopePrompts tested (tool changes only)
Security / limits
userOAuth scope (grants read/write to profile info); fine-grained PATs needprofilewrite permissionTool renaming
Lint & tests
./script/lint./script/testDocs
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
golangci-lint.run/usr/bin/curl curl -sSfL REDACTED l/linux_amd64/vet /tmp/go-build1744740609/b248/vet.cfg ault.go --global ux-amd64/pkg/tool/linux_amd64/compile core.hooksPath(dns block)raw.api.githubcopilot.com/tmp/go-build720382805/b356/http.test /tmp/go-build720382805/b356/http.test -test.testlogfile=/tmp/go-build720382805/b356/testlog.txt -test.paniconexit0 -test.timeout=10m0s /tmp/go-build720382805/b147/vet.cfg ux-amd64/src/run-errorsas mpile ux-amd64/pkg/tool/linux_amd64/vet /tmp/go-build981/home/REDACTED/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.25.0.linux-amd64/pkg/too-buildtags -O2 t ux-amd64/pkg/too/tmp/go-build720382805/b176/vet.cfg(dns block)raw.ghe.example.com/tmp/go-build720382805/b367/oauth.test /tmp/go-build720382805/b367/oauth.test -test.testlogfile=/tmp/go-build720382805/b367/testlog.txt -test.paniconexit0 -test.timeout=10m0s eZLOObdCANydOduaZ5Bh/eZLOObdCANydOduaZ5Bh -goversion go1.25.0 -c=4 -race -nolocalimports -importcfg /tmp/go-build720382805/b231/importcfg(dns block)raw.mycompanygithub.com/tmp/go-build720382805/b405/utils.test /tmp/go-build720382805/b405/utils.test -test.testlogfile=/tmp/go-build720382805/b405/testlog.txt -test.paniconexit0 -test.timeout=10m0s uOjjyVHBjbejg2oLJ351/uOjjyVHBjbejg2oLJ351 -dwarf=false -goversion go1.25.0 -c=4 -race -nolocalimports -importcfg(dns block)raw.myghe.com/tmp/go-build720382805/b405/utils.test /tmp/go-build720382805/b405/utils.test -test.testlogfile=/tmp/go-build720382805/b405/testlog.txt -test.paniconexit0 -test.timeout=10m0s uOjjyVHBjbejg2oLJ351/uOjjyVHBjbejg2oLJ351 -dwarf=false -goversion go1.25.0 -c=4 -race -nolocalimports -importcfg(dns block)raw.notgithub.com/tmp/go-build720382805/b405/utils.test /tmp/go-build720382805/b405/utils.test -test.testlogfile=/tmp/go-build720382805/b405/testlog.txt -test.paniconexit0 -test.timeout=10m0s uOjjyVHBjbejg2oLJ351/uOjjyVHBjbejg2oLJ351 -dwarf=false -goversion go1.25.0 -c=4 -race -nolocalimports -importcfg(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
Created from VS Code.