Skip to main content
Glama

Atlassian Bitbucket MCP Server

by aashari

bb_add_pr

Create pull requests in Bitbucket repositories with customizable title, source branch, and optional destination branch. Automatically delete the source branch after merging and use Markdown for PR descriptions. Requires write permissions.

Instructions

Creates a new pull request in a repository (repoSlug). If workspaceSlug is not provided, the system will use your default workspace. Required parameters include title, sourceBranch (branch with changes), and optionally destinationBranch (target branch, defaults to main/master). The description parameter accepts Markdown-formatted text for the PR description. Set closeSourceBranch to true to automatically delete the source branch after merging. Returns the newly created pull request details as formatted Markdown. Requires Bitbucket credentials with write permissions to be configured.

Input Schema

NameRequiredDescriptionDefault
closeSourceBranchNoWhether to close the source branch after the pull request is merged. Default: false
descriptionNoOptional description for the pull request in Markdown format. Supports standard Markdown syntax including headings, lists, code blocks, and links.
destinationBranchNoDestination branch name (the branch you want to merge into, defaults to main). Example: "develop"
repoSlugYesRepository slug to create the pull request in. This must be a valid repository in the specified workspace. Example: "project-api"
sourceBranchYesSource branch name (the branch containing your changes). Example: "feature/new-login"
titleYesTitle for the pull request. Example: "Add new feature"
workspaceSlugNoWorkspace slug containing the repository. If not provided, the system will use your default workspace. Example: "myteam"

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "closeSourceBranch": { "description": "Whether to close the source branch after the pull request is merged. Default: false", "type": "boolean" }, "description": { "description": "Optional description for the pull request in Markdown format. Supports standard Markdown syntax including headings, lists, code blocks, and links.", "type": "string" }, "destinationBranch": { "description": "Destination branch name (the branch you want to merge into, defaults to main). Example: \"develop\"", "type": "string" }, "repoSlug": { "description": "Repository slug to create the pull request in. This must be a valid repository in the specified workspace. Example: \"project-api\"", "minLength": 1, "type": "string" }, "sourceBranch": { "description": "Source branch name (the branch containing your changes). Example: \"feature/new-login\"", "minLength": 1, "type": "string" }, "title": { "description": "Title for the pull request. Example: \"Add new feature\"", "minLength": 1, "type": "string" }, "workspaceSlug": { "description": "Workspace slug containing the repository. If not provided, the system will use your default workspace. Example: \"myteam\"", "type": "string" } }, "required": [ "repoSlug", "title", "sourceBranch" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aashari/mcp-server-atlassian-bitbucket'

If you have feedback or need assistance with the MCP directory API, please join our Discord server