Skip to content

feat: Add tool permissions for creating commits and pushing branches #1252

Closed

Description

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 repository
  • repo_push_branch — Permission to push a branch to a remote

Motivation

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_branch and repo_create_pull_request.

Relevant REST Endpoints

Acceptance Criteria

  • A new repo_create_commit tool permission is added
  • A new repo_push_branch tool permission is added
  • Both permissions are documented in TOOLSET.md

Activity

  1. locked and limited conversation to collaborators on May 15, 2026
  2. converted this issue into a discussion #1254 on May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions