feat: Add tool permissions for creating commits and pushing branches #1254
CharlotteS34
started this conversation in
Backlog of Suggestions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Feature Request
Description
Add two new granular tool permissions to the MCP server to allow consumers to scope
access for Git write operations independently:
repo_create_commit— Permission to create commits in a repositoryrepo_push_branch— Permission to push a branch to a remoteMotivation
The current permission model does not expose commit and push operations as separate
controllable permissions. These are distinct Git operations and should be grantable
independently — for example, an agent may be permitted to stage and create commits
for human review without having permission to push those commits upstream.
This follows the principle of least privilege and is consistent with existing
fine-grained permissions such as
repo_create_branchandrepo_create_pull_request.Relevant REST Endpoints
POST https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repositoryId}/pushes?api-version=7.1Acceptance Criteria
repo_create_committool permission is addedrepo_push_branchtool permission is addedBeta Was this translation helpful? Give feedback.
All reactions