Skip to content

Add delete_branch tool #25

Description

@gastrodon

Summary

The server exposes create_branch and list_branches but has no delete_branch tool. After merging a PR, there's no way to clean up the remote branch without falling back to gh api -X DELETE.

Proposed tool

delete_branch(owner, repo, branch)

Maps to DELETE /repos/{owner}/{repo}/git/refs/heads/{branch}.

Use case

Standard PR workflow: create branch → open PR → merge → delete branch. The last step currently requires dropping out of MCP.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions