MCPVault

delete_branch

MCP tool from Forgejo MCP by goern

Delete a branch

How to use it

delete_branch is exposed by the Forgejo MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the delete_branch tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.

Install Forgejo MCP

$go install .
FULL FORGEJO MCP LISTING

Other tools in Forgejo MCP (39)

add_issue_dependency

Make one issue depend on another

add_issue_labels

Add labels to an issue (requires numeric label IDs)

check_notifications

Check and list user notifications

create_branch

Create a new branch

create_branch_protection

Create a rule. Requires branchname; statuscheckcontexts is a comma-separated list of required checks (e.g. "ci/build,ci/test").

create_file

Create a new file

create_issue

Create a new issue

create_repo

Create a new repository

create_repo_label

Create a repository label (name, color as 6-digit hex, optional description). Returns numeric id for immediate use in addissuelabels.

delete_branch_protection

Delete a rule by rule name

delete_file

Delete a file

edit_branch_protection

Edit a rule by rule name. Only fields you pass change; omitted fields are left unchanged.

fork_repo

Fork a repository

get_branch_protection

Get a single rule by rule name

get_file_content

Get the content of a file. Optional startline/endline request a 1-indexed inclusive line range (clamps to file extent; ignored when withmetadata=true).

get_issue_by_index

Get a specific issue

get_my_user_info

Get information about the authenticated user

get_notification_thread

Get detailed info on a single notification thread

issue_state_change

Open or close an issue

list_branch_protections

List a repository's branch protection rules. Bounded by page (1-based) + limit (page size); the response echoes page/limit so callers can fetch the next page.

list_branches

List all branches in a repository

list_issue_dependencies

List issues the given issue depends on. Bounded by page (1-based) + limit (page size); the response echoes page/limit so callers can fetch the next page.

list_issue_dependents

List issues that depend on the given issue. Bounded by page (1-based) + limit (page size); the response echoes page/limit so callers can fetch the next page.

list_my_repos

List all repositories you own

list_org_labels

List organization-level labels with their IDs (use with addissuelabels, removeissuelabels).

list_repo_commits

List commits in a repository

list_repo_issues

List issues in a repository (page/limit)

list_repo_labels

List labels with their IDs. Merges org-level labels for org-owned repos (set includeorglabels=false to opt out). Each entry carries a scope field ("repo" or "org").

list_repo_milestones

List milestones with their IDs (use with updateissue)

list_repo_notifications

Filter notifications scoped to a single repository

mark_all_notifications_read

Acknowledge all notifications

mark_notification_read

Mark a single notification thread as read

mark_repo_notifications_read

Mark all notifications in a specific repo as read

remove_issue_dependency

Remove a dependency from an issue

remove_issue_labels

Remove labels from an issue (requires numeric label IDs)

search_repos

Search for repositories

search_users

Search for users

update_file

Update an existing file

update_issue

Update an existing issue (requires numeric milestone ID)