bitbucket-mcp-cloud

v1.3.7
bitbucket-mcp-cloud Checked 17 hours ago Published 1 year ago

A Model Context Protocol (MCP) server for Bitbucket Cloud API integration

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_projects

List all Bitbucket projects you have access to. Args: workspace: Workspace name (optional, uses BITBUCKET_DEFAULT_WORKSPACE if not provided) limit: Number of projects to return (default: 25, max: 1000) start: Start index for pagination (default: 0) Returns: List of projects with their details

ParameterTypeDescription
limitinteger
startinteger
workspace

list_repositories

List repositories within a workspace or project. Args: workspace: Workspace name (optional) project: Project key to filter repositories (optional) limit: Number of repositories to return (default: 25, max: 1000) start: Start index for pagination (default: 0) Returns: List of repositories with their details

ParameterTypeDescription
limitinteger
project
startinteger
workspace

get_pull_request

Get details of a specific pull request. Args: repository: Repository slug containing the pull request pr_id: Pull request ID number workspace: Workspace name (optional) Returns: Pull request details or None if not found

ParameterTypeDescription
pr_id *integer
repository *string
workspace

list_commits

List commits in repository. Args: repository: Repository slug workspace: Workspace name (optional) branch: Branch name to list commits from (optional, defaults to main branch) limit: Number of commits to return (default: 25) Returns: List of commits with their details

ParameterTypeDescription
repository *string
branch
limitinteger
workspace

list_pull_requests

List pull requests in repository. Args: repository: Repository slug workspace: Workspace name (optional) state: Pull request state (OPEN, MERGED, DECLINED, SUPERSEDED) limit: Number of pull requests to return (default: 25) Returns: List of pull requests with their details

ParameterTypeDescription
repository *string
limitinteger
statestring
workspace

create_pull_request

Create a new pull request. Args: repository: Repository slug title: Pull request title source_branch: Source branch name target_branch: Target branch name (default: main) description: Pull request description (optional) workspace: Workspace name (optional) close_source_branch: Whether to close source branch after merge (default: False) reviewers: List of reviewer UUIDs (optional) Returns: Created pull request details

ParameterTypeDescription
repository *string
source_branch *string
title *string
close_source_branchboolean
descriptionstring
reviewers
target_branchstring
workspace

approve_pull_request

Approve a pull request. Args: repository: Repository slug pr_id: Pull request ID workspace: Workspace name (optional) Returns: Approval result

ParameterTypeDescription
pr_id *integer
repository *string
workspace

decline_pull_request

Decline a pull request. Args: repository: Repository slug pr_id: Pull request ID workspace: Workspace name (optional) Returns: Decline result

ParameterTypeDescription
pr_id *integer
repository *string
workspace

merge_pull_request

Merge an approved pull request. Args: repository: Repository slug pr_id: Pull request ID merge_strategy: Merge strategy (merge_commit, squash, fast_forward) workspace: Workspace name (optional) Returns: Merge result

ParameterTypeDescription
pr_id *integer
repository *string
merge_strategystring
workspace

update_pull_request

Update pull request title and/or description. Args: repository: Repository slug pr_id: Pull request ID title: New pull request title (optional) description: New pull request description (optional) workspace: Workspace name (optional) Returns: Updated pull request details

ParameterTypeDescription
pr_id *integer
repository *string
description
title
workspace

list_pull_request_comments

List comments on a pull request. Args: repository: Repository slug pr_id: Pull request ID workspace: Workspace name (optional) Returns: List of comments

ParameterTypeDescription
pr_id *integer
repository *string
workspace

create_pull_request_comment

Create a comment on a pull request. Args: repository: Repository slug pr_id: Pull request ID content: Comment content workspace: Workspace name (optional) parent_id: Parent comment ID for replies (optional) Returns: Created comment details

ParameterTypeDescription
content *string
pr_id *integer
repository *string
parent_id
workspace

create_pull_request_inline_comment

Create an inline comment on a specific line in a pull request diff. Args: repository: Repository slug pr_id: Pull request ID content: Comment content filename: Path to the file in the repository line_number: Line number in the file to comment on workspace: Workspace name (optional) parent_id: Parent comment ID for replies (optional) Returns: Created inline comment details

ParameterTypeDescription
content *string
filename *string
line_number *integer
pr_id *integer
repository *string
parent_id
workspace

get_pull_request_diff

Get the diff of a pull request. Args: repository: Repository slug pr_id: Pull request ID workspace: Workspace name (optional) context: Number of context lines around changes (default: 3) Returns: Raw diff text showing all changes in the pull request

ParameterTypeDescription
pr_id *integer
repository *string
contextinteger
workspace

get_pull_request_diffstat

Get the diffstat (summary of changes) of a pull request. Args: repository: Repository slug pr_id: Pull request ID workspace: Workspace name (optional) Returns: Summary of changes including files modified, lines added/removed

ParameterTypeDescription
pr_id *integer
repository *string
workspace