createPullRequest
Creates a new pull request.
How to use it
createPullRequest is exposed by the Bitbucket MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the createPullRequest tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Bitbucket MCP
npx -y bitbucket-mcp@latestOther tools in Bitbucket MCP (39)
Creates a comment on a pull request (general or inline).
When true (and page is not provided), the server automatically follows Bitbucket next links until all items are fetched or a safety cap of 1,000 entries is reached.
Approves a pull request.
Comment ID
Comment content in markdown format
Converts a regular pull request to draft status.
Creates a new draft pull request.
Declines a pull request.
Pull request description
(optional): Whether to create the pull request as a draft
Gets details for a specific pull request.
Gets the activity log for a pull request.
Gets a specific comment on a pull request.
Lists comments on a pull request.
Gets pull requests for a repository.
Gets details for a specific repository.
(optional): Inline comment information for commenting on specific lines
Deprecated alias for pagelen kept for backward compatibility.
Lists repositories in a workspace.
Merges a pull request.
(optional): Reason for declining
(optional): Filter repositories by partial name match
1-based Bitbucket page number to fetch. When omitted, the first page is returned.
Number of items per page (Bitbucket pagelen). Defaults to 10 and is capped at 100.
Publishes a draft pull request to make it ready for review.
Pull request ID
Removes a change request from a pull request.
Repository slug
Requests changes on a pull request.
(optional): List of reviewer usernames
Source branch name
(optional): Pull request state (OPEN, MERGED, DECLINED, SUPERSEDED)
(optional): Merge strategy (merge-commit, squash, fast-forward)
Target branch name
Pull request title
Removes an approval from a pull request.
Updates a pull request.
Updates a comment on a pull request.
(optional): Bitbucket workspace name