← Catalog

Bitbucket

Connect Bitbucket to Claude Code, Codex, Cursor or any MCP agent through CoreSpeed. Work in Bitbucket Cloud: browse workspaces, repositories, files, branches and commits; review, comment on, approve and merge pull requests; create branches and commits; and follow pipelines, code-insights reports, deployments and environments. Your agent works through your own Bitbucket account and gets 38 Bitbucket tools; CoreSpeed holds the credential, so the agent never sees the token. Calling it is free.

Tools38

  • bitbucket__list_workspaces

    List the Bitbucket workspaces the connected account belongs to, with whether it administers each.

    Free
  • bitbucket__get_workspace

    Get a workspace by slug or UUID.

    Free
  • bitbucket__list_repositories

    List the repositories in a workspace that the connected account can see, filterable by role and BBQL (e.g. name, project.key, updated_on).

    Free
  • bitbucket__get_repository

    Get a repository — its main branch, project, language, size and links.

    Free
  • bitbucket__get_default_reviewers

    List a repository's effective default reviewers — its own plus those inherited from its project — who Bitbucket adds to every new pull request.

    Free
  • bitbucket__get_file_contentRead a file's text, or list a directory, at a branch, tag or commit (default: the main branch).
    Free

    Long files come back in line windows with next_start_line; binary files return their size, not their bytes.

  • bitbucket__get_branch

    Get a branch — its tip commit (target.hash) and allowed merge strategies.

    Free
  • bitbucket__get_commit

    Get a commit — author, message, date and parents.

    Free
  • bitbucket__list_commit_reports

    List the code-insights reports (tests, coverage, security, bugs) attached to a commit.

    Free
  • bitbucket__get_commit_report

    Get one code-insights report on a commit — its result and data fields.

    Free
  • bitbucket__get_commit_report_annotations

    List the annotations (findings with file, line, severity) of a code-insights report.

    Free
  • bitbucket__list_pull_requests

    List a repository's pull requests — open ones by default — filterable by state and BBQL.

    Free
  • bitbucket__get_pull_request

    Get a pull request — branches, commits, description, reviewers and participants with their approval state.

    Free
  • bitbucket__get_pull_request_diffGet a pull request's unified diff, optionally for chosen files.
    Free

    A diff too long for one call is cut at a line and comes with the changed-file list — ask again with path for the files you need.

  • bitbucket__list_pull_request_comments

    List a pull request's comments — general, inline (with file and line) and replies — oldest first.

    Free
  • bitbucket__list_pull_request_tasks

    List a pull request's tasks with their state.

    Free
  • bitbucket__list_pipelines

    List a repository's pipeline runs, newest first, filterable by status, branch, commit and trigger.

    Free
  • bitbucket__get_pipeline

    Get a pipeline run — state, result, target and duration.

    Free
  • bitbucket__list_pipeline_steps

    List the steps of a pipeline run with their state.

    Free
  • bitbucket__get_pipeline_step

    Get one step of a pipeline run.

    Free
  • bitbucket__get_pipeline_step_log

    Read a pipeline step's log in byte windows — from the start, from start_byte, or the tail (where failures usually are).

    Free
  • bitbucket__list_deployments

    List a repository's deployments with their environment, release and state.

    Free
  • bitbucket__get_deployment

    Get a deployment.

    Free
  • bitbucket__list_environments

    List a repository's deployment environments (e.g. Test, Staging, Production).

    Free
  • bitbucket__get_environment

    Get a deployment environment.

    Free
  • bitbucket__create_pull_request

    Open a pull request from a branch (or a fork's branch) into the main branch or destination_branch, with a Markdown description and reviewers.

    Free
  • bitbucket__update_pull_requestChange an open pull request's title, description, destination, reviewers, close-source-branch flag or draft state.
    Free

    Only the fields given change; everything else, reviewers included, is kept.

  • bitbucket__merge_pull_requestMerge a pull request with a chosen strategy and message.
    Free

    If Bitbucket is still merging when the call returns, the result says so — check get_pull_request instead of merging again.

  • bitbucket__approve_pull_request

    Approve a pull request as the connected account.

    Free
  • bitbucket__request_changes_on_pull_request

    Request changes on a pull request as the connected account.

    Free
  • bitbucket__add_pull_request_comment

    Comment on a pull request — generally, on a file, on a line or line range of the new or old version, or as a reply.

    Free
  • bitbucket__resolve_pull_request_comment

    Resolve a comment thread (by its top-level comment).

    Free
  • bitbucket__reopen_pull_request_comment

    Reopen a resolved comment thread.

    Free
  • bitbucket__create_pull_request_task

    Add a task to a pull request, optionally under a comment.

    Free
  • bitbucket__set_pull_request_task_state

    Resolve or reopen a pull request task.

    Free
  • bitbucket__create_branch

    Create a branch at a commit.

    Free
  • bitbucket__create_commitCommit file additions, overwrites and deletions to a branch (created if missing) in one commit, without a clone.
    Free

    Returns the new commit's hash.

  • bitbucket__run_pipelineStart a pipeline run for a branch, tag or commit — the matching definition, or a custom one by name, with variables.
    Free

    A custom pipeline can deploy; check its definition first.

Pages about Bitbucket

Give this to your agent

set up https://corespeed.io/SKILL.md
Get started
FAQ

Questions people ask.