bitbucket_get_ failed_ pipeline_ logsWhy a Bitbucket Pipelines run failed, in one call: the failed steps and the end of each one's log.
Review a pull request with its changed files, comments and build results in one call, find out why a Pipelines run failed, commit a fix on a new branch, then open the pull request and merge it once the build is green.
PopMCPBitbucket
Every Bitbucket Cloud REST operation from pull requests to runners and deployment variables, the one-call review and failed-build tools, and the push, pull request and build events PopMCP can watch.
273 tools in the full catalog: 153 read and 120 write. 38 load by default, and the rest are found with tool search.
bitbucket_get_ failed_ pipeline_ logsWhy a Bitbucket Pipelines run failed, in one call: the failed steps and the end of each one's log.
bitbucket_get_ pipelineGet a pipeline.
bitbucket_get_ pipeline_ step_ logGet log file for a step.
bitbucket_list_ pipeline_ stepsList steps for a pipeline.
bitbucket_list_ pipelinesList pipelines.
bitbucket_run_ pipelineRun a pipeline.
bitbucket_approve_ pull_ requestApprove a pull request.
bitbucket_create_ pull_ requestCreate a pull request.
bitbucket_create_ pull_ request_ commentCreate a comment on a pull request.
bitbucket_create_ pull_ request_ taskCreate a task on a pull request.
bitbucket_decline_ pull_ requestDecline a pull request.
bitbucket_get_ pull_ requestGet a pull request.
bitbucket_get_ pull_ request_ contextEverything needed to review a pull request in one call: details, reviewers and approvals, changed files, comments, tasks and build results.
bitbucket_get_ pull_ request_ diffList changes in a pull request.
bitbucket_list_ pull_ request_ commentsList comments on a pull request.
bitbucket_list_ pull_ request_ commitsList commits on a pull request.
bitbucket_list_ pull_ requestsList pull requests.
bitbucket_merge_ pull_ requestMerge a pull request.
bitbucket_request_ pull_ request_ changesRequest changes for a pull request.
bitbucket_update_ pull_ requestUpdate a pull request.
bitbucket_get_ repositoryGet a repository.
bitbucket_list_ repositoriesList repositories in a workspace.
bitbucket_get_ commitGet a commit.
bitbucket_get_ diffCompare two commits.
bitbucket_list_ commitsList commits.
bitbucket_list_ deploymentsList deployments.
bitbucket_list_ projectsList projects in a workspace.
bitbucket_list_ user_ pull_ requestsList workspace pull requests for an user.
bitbucket_list_ workspace_ membersList users in a workspace.
bitbucket_list_ workspacesList workspaces for the current user.
bitbucket_search_ codeSearch code in a workspace.
bitbucket_create_ branchCreate a branch.
bitbucket_list_ branchesList open branches.
bitbucket_list_ tagsList tags.
bitbucket_commit_ filesCreate a commit by uploading a file.
bitbucket_get_ file_ or_ directoryGet file or directory contents.
bitbucket_list_ commit_ statusesList commit statuses for a commit.
bitbucket_list_ file_ historyList commits that modified a file.
bitbucket_create_ environment_ variableCreate a variable for an environment.
bitbucket_create_ pipeline_ known_ hostCreate a known host.
bitbucket_create_ pipeline_ scheduleCreate a schedule for the given repository.
bitbucket_create_ repository_ runnerCreate repository runner.
bitbucket_create_ repository_ variableCreate a variable for a repository.
bitbucket_create_ workspace_ runnerCreate workspace runner.
bitbucket_create_ workspace_ variableCreate a variable for a workspace.
bitbucket_delete_ environment_ variableDelete a variable for an environment.
bitbucket_delete_ pipeline_ cacheDelete a cache.
bitbucket_delete_ pipeline_ caches_ by_ nameDelete caches.
bitbucket_delete_ pipeline_ known_ hostDelete a known host.
bitbucket_delete_ pipeline_ scheduleDelete a schedule.
bitbucket_delete_ pipeline_ ssh_ key_ pairDelete SSH key pair.
bitbucket_delete_ repository_ runnerDelete repository runner by uuid.
bitbucket_delete_ repository_ variableDelete a variable for a repository.
bitbucket_delete_ workspace_ runnerDelete workspace runner by uuid.
bitbucket_delete_ workspace_ variableDelete a variable for a workspace.
bitbucket_get_ pipeline_ cache_ download_ linkGet cache content URI.
bitbucket_get_ pipeline_ container_ logGet the logs for the build container or a service container for a given step of a pipeline.
bitbucket_get_ pipeline_ known_ hostGet a known host.
bitbucket_get_ pipeline_ scheduleGet a schedule.
bitbucket_get_ pipeline_ ssh_ key_ pairGet SSH key pair.
bitbucket_get_ pipeline_ stepGet a step of a pipeline.
bitbucket_get_ pipeline_ step_ test_ reportsGet a summary of test reports for a given step of a pipeline.
bitbucket_get_ pipelines_ configGet configuration.
bitbucket_get_ pipelines_ oidc_ configurationGet OpenID configuration for OIDC in Pipelines.
bitbucket_get_ pipelines_ oidc_ keysGet keys for OIDC in Pipelines.
bitbucket_get_ repository_ runnerGet repository runner.
bitbucket_get_ repository_ variableGet a variable for a repository.
bitbucket_get_ workspace_ runnerGet workspace runner by uuid.
bitbucket_get_ workspace_ variableGet variable for a workspace.
bitbucket_list_ environment_ variablesList variables for an environment.
bitbucket_list_ pipeline_ cachesList caches.
bitbucket_list_ pipeline_ known_ hostsList known hosts.
bitbucket_list_ pipeline_ schedule_ executionsList executions of a schedule.
bitbucket_list_ pipeline_ schedulesList schedules.
bitbucket_list_ pipeline_ step_ test_ casesGet test cases for a given step of a pipeline.
bitbucket_list_ repository_ runnersGet repository runners.
bitbucket_list_ repository_ variablesList variables for a repository.
bitbucket_list_ test_ case_ reasonsGet test case reasons (output) for a given test case in a step of a pipeline.
bitbucket_list_ workspace_ runnersGet workspace runners.
bitbucket_list_ workspace_ variablesList variables for a workspace.
bitbucket_set_ next_ build_ numberUpdate the next build number that should be assigned to a pipeline.
bitbucket_set_ pipeline_ ssh_ key_ pairUpdate SSH key pair.
bitbucket_stop_ pipelineStop a pipeline.
bitbucket_update_ environment_ variableUpdate a variable for an environment.
bitbucket_update_ pipeline_ known_ hostUpdate a known host.
bitbucket_update_ pipeline_ scheduleUpdate a schedule.
bitbucket_update_ pipelines_ configUpdate configuration.
bitbucket_update_ repository_ runnerUpdate repository runner.
bitbucket_update_ repository_ variableUpdate a variable for a repository.
bitbucket_update_ workspace_ runnerUpdate workspace runner.
bitbucket_update_ workspace_ variableUpdate variable for a workspace.
bitbucket_add_ default_ reviewerAdd an user to the default reviewers.
bitbucket_delete_ pull_ request_ commentDelete a comment on a pull request.
bitbucket_delete_ pull_ request_ taskDelete a task on a pull request.
bitbucket_get_ default_ reviewerGet a default reviewer.
bitbucket_get_ pull_ request_ commentGet a comment on a pull request.
bitbucket_get_ pull_ request_ conflictsGet file conflicts for a pull request.
bitbucket_get_ pull_ request_ diffstatGet the diff stat for a pull request.
bitbucket_get_ pull_ request_ merge_ statusGet the merge task status for a pull request.
bitbucket_get_ pull_ request_ patchGet the patch for a pull request.
bitbucket_get_ pull_ request_ taskGet a task on a pull request.
bitbucket_list_ commit_ pull_ requestsList pull requests that contain a commit.
bitbucket_list_ default_ reviewersList default reviewers.
bitbucket_list_ effective_ default_ reviewersList effective default reviewers.
bitbucket_list_ pull_ request_ activityList a pull request activity log.
bitbucket_list_ pull_ request_ mergeability_ checksList pull request mergeability checks.
bitbucket_list_ pull_ request_ statusesList commit statuses for a pull request.
bitbucket_list_ pull_ request_ tasksList tasks on a pull request.
bitbucket_list_ repository_ pull_ request_ activityList a pull request activity log.
bitbucket_remove_ default_ reviewerRemove an user from the default reviewers.
bitbucket_remove_ pull_ request_ change_ requestRemove change request for a pull request.
bitbucket_reopen_ pull_ request_ commentReopen a comment thread.
bitbucket_resolve_ pull_ request_ commentResolve a comment thread.
bitbucket_unapprove_ pull_ requestUnapprove a pull request.
bitbucket_update_ pull_ request_ commentUpdate a comment on a pull request.
bitbucket_update_ pull_ request_ taskUpdate a task on a pull request.
bitbucket_check_ snippet_ watchCheck if the current user is watching a snippet.
bitbucket_create_ snippetCreate a snippet.
bitbucket_create_ snippet_ commentCreate a comment on a snippet.
bitbucket_create_ workspace_ snippetCreate a snippet for a workspace.
bitbucket_delete_ snippetDelete a snippet.
bitbucket_delete_ snippet_ commentDelete a comment on a snippet.
bitbucket_delete_ snippet_ revisionDelete a previous revision of a snippet.
bitbucket_get_ snippetGet a snippet.
bitbucket_get_ snippet_ changeGet a previous snippet change.
bitbucket_get_ snippet_ commentGet a comment on a snippet.
bitbucket_get_ snippet_ diffGet snippet changes between versions.
bitbucket_get_ snippet_ fileGet a snippet's raw file at HEAD.
bitbucket_get_ snippet_ patchGet snippet patch between versions.
bitbucket_get_ snippet_ revisionGet a previous revision of a snippet.
bitbucket_get_ snippet_ revision_ fileGet a snippet's raw file.
bitbucket_list_ snippet_ changesList snippet changes.
bitbucket_list_ snippet_ commentsList comments on a snippet.
bitbucket_list_ snippetsList snippets in a workspace.
bitbucket_unwatch_ snippetStop watching a snippet.
bitbucket_update_ snippetUpdate a snippet.
bitbucket_update_ snippet_ commentUpdate a comment on a snippet.
bitbucket_update_ snippet_ revisionUpdate a previous revision of a snippet.
bitbucket_watch_ snippetWatch a snippet.
bitbucket_create_ repositoryCreate a repository.
bitbucket_delete_ repositoryDelete a repository.
bitbucket_delete_ repository_ group_ permissionDelete an explicit group permission for a repository.
bitbucket_delete_ repository_ user_ permissionDelete an explicit user permission for a repository.
bitbucket_fork_ repositoryFork a repository.
bitbucket_get_ repository_ group_ permissionGet an explicit group permission for a repository.
bitbucket_get_ repository_ settings_ inheritanceRetrieve the inheritance state for repository settings.
bitbucket_get_ repository_ user_ permissionGet an explicit user permission for a repository.
bitbucket_list_ forksList repository forks.
bitbucket_list_ my_ repository_ permissionsList repository permissions in a workspace for an user.
bitbucket_list_ repository_ group_ permissionsList explicit group permissions for a repository.
bitbucket_list_ repository_ user_ permissionsList explicit user permissions for a repository.
bitbucket_list_ repository_ watchersList repositories watchers.
bitbucket_set_ repository_ group_ permissionUpdate an explicit group permission for a repository.
bitbucket_set_ repository_ settings_ inheritanceSet the inheritance state for repository settings.
bitbucket_set_ repository_ user_ permissionUpdate an explicit user permission for a repository.
bitbucket_update_ repositoryUpdate a repository.
bitbucket_approve_ commitApprove a commit.
bitbucket_create_ commit_ commentCreate comment for a commit.
bitbucket_delete_ commit_ commentDelete a commit comment.
bitbucket_get_ commit_ commentGet a commit comment.
bitbucket_get_ diffstatCompare two commit diff stats.
bitbucket_get_ file_ conflictsGet file conflicts for a commit spec
bitbucket_get_ merge_ baseGet the common ancestor between two commits.
bitbucket_get_ patchGet a patch for two commits.
bitbucket_list_ commit_ commentsList a commit's comments.
bitbucket_list_ commits_ for_ revisionList commits for revision.
bitbucket_list_ commits_ for_ revision_ with_ filtersList commits for revision using include/exclude.
bitbucket_list_ commits_ with_ filtersList commits with include/exclude.
bitbucket_unapprove_ commitUnapprove a commit.
bitbucket_update_ commit_ commentUpdate a commit comment.
bitbucket_add_ deploy_ keyAdd a repository deploy key.
bitbucket_add_ project_ default_ reviewerAdd the specific user as a default reviewer for the project.
bitbucket_add_ project_ deploy_ keyCreate a project deploy key.
bitbucket_create_ environmentCreate an environment.
bitbucket_create_ projectCreate a project in a workspace.
bitbucket_delete_ deploy_ keyDelete a repository deploy key.
bitbucket_delete_ environmentDelete an environment
bitbucket_delete_ projectDelete a project for a workspace.
bitbucket_delete_ project_ deploy_ keyDelete a deploy key from a project.
bitbucket_delete_ project_ group_ permissionDelete an explicit group permission for a project.
bitbucket_delete_ project_ user_ permissionDelete an explicit user permission for a project.
bitbucket_get_ deploy_ keyGet a repository deploy key.
bitbucket_get_ deploymentGet a deployment.
bitbucket_get_ environmentGet an environment.
bitbucket_get_ projectGet a project for a workspace.
bitbucket_get_ project_ default_ reviewerGet a default reviewer.
bitbucket_get_ project_ deploy_ keyGet a project deploy key.
bitbucket_get_ project_ group_ permissionGet an explicit group permission for a project.
bitbucket_get_ project_ user_ permissionGet an explicit user permission for a project.
bitbucket_list_ deploy_ keysList repository deploy keys.
bitbucket_list_ environmentsList environments.
bitbucket_list_ project_ default_ reviewersList the default reviewers in a project.
bitbucket_list_ project_ deploy_ keysList project deploy keys.
bitbucket_list_ project_ group_ permissionsList explicit group permissions for a project.
bitbucket_list_ project_ user_ permissionsList explicit user permissions for a project.
bitbucket_remove_ project_ default_ reviewerRemove the specific user from the project's default reviewers.
bitbucket_set_ project_ group_ permissionUpdate an explicit group permission for a project.
bitbucket_set_ project_ user_ permissionUpdate an explicit user permission for a project.
bitbucket_update_ deploy_ keyUpdate a repository deploy key.
bitbucket_update_ environmentUpdate an environment
bitbucket_update_ projectUpdate a project for a workspace.
bitbucket_create_ repository_ webhookCreate a webhook for a repository.
bitbucket_create_ workspace_ webhookCreate a webhook for a workspace.
bitbucket_delete_ repository_ webhookDelete a webhook for a repository.
bitbucket_delete_ workspace_ webhookDelete a webhook for a workspace.
bitbucket_get_ my_ workspace_ permissionGet user permission on a workspace.
bitbucket_get_ repository_ webhookGet a webhook for a repository.
bitbucket_get_ workspaceGet a workspace.
bitbucket_get_ workspace_ gpg_ public_ keyGet the workspace system GPG public key(s).
bitbucket_get_ workspace_ memberGet user membership for a workspace.
bitbucket_get_ workspace_ webhookGet a webhook for a workspace.
bitbucket_list_ repository_ permissionsList a repository permissions for a workspace.
bitbucket_list_ repository_ webhooksList webhooks for a repository.
bitbucket_list_ webhook_ event_ typesList subscribable webhook types.
bitbucket_list_ webhook_ resourcesGet a webhook resource.
bitbucket_list_ workspace_ permissionsList user permissions in a workspace.
bitbucket_list_ workspace_ repository_ permissionsList all repository permissions for a workspace.
bitbucket_list_ workspace_ webhooksList webhooks for a workspace.
bitbucket_update_ repository_ webhookUpdate a webhook for a repository.
bitbucket_update_ workspace_ webhookUpdate a webhook for a workspace.
bitbucket_create_ tagCreate a tag.
bitbucket_delete_ branchDelete a branch in the specified repository.
bitbucket_delete_ commit_ reportDelete a report.
bitbucket_delete_ report_ annotationDelete an annotation.
bitbucket_delete_ tagDelete a tag in the specified repository.
bitbucket_get_ branchGet a branch.
bitbucket_get_ commit_ reportGet a report.
bitbucket_get_ report_ annotationGet an annotation.
bitbucket_get_ tagGet a tag.
bitbucket_list_ commit_ reportsList reports.
bitbucket_list_ refsList branches and tags.
bitbucket_list_ report_ annotationsList annotations.
bitbucket_set_ commit_ reportCreate or update a report.
bitbucket_set_ report_ annotationCreate or update an annotation.
bitbucket_set_ report_ annotationsBulk create or update annotations.
bitbucket_get_ branching_ modelGet the branching model for a repository.
bitbucket_get_ branching_ model_ settingsGet the branching model config for a repository.
bitbucket_get_ effective_ branching_ modelGet the effective, or currently applied, branching model for a repository.
bitbucket_get_ project_ branching_ modelGet the branching model for a project.
bitbucket_get_ project_ branching_ model_ settingsGet the branching model config for a project.
bitbucket_update_ branching_ model_ settingsUpdate the branching model config for a repository.
bitbucket_update_ project_ branching_ model_ settingsUpdate the branching model config for a project.
bitbucket_add_ ssh_ keyAdd a new SSH key.
bitbucket_create_ branch_ restrictionCreate a branch restriction rule.
bitbucket_delete_ branch_ restrictionDelete a branch restriction rule.
bitbucket_delete_ ssh_ keyDelete a SSH key.
bitbucket_get_ branch_ restrictionGet a branch restriction rule.
bitbucket_get_ merge_ queueGet a merge queue.
bitbucket_get_ merge_ queue_ pull_ requestGet a pullrequest in a merge queue.
bitbucket_get_ ssh_ keyGet a SSH key.
bitbucket_list_ branch_ restrictionsList branch restrictions.
bitbucket_list_ merge_ queue_ pull_ requestsList pullrequests in a merge queue.
bitbucket_list_ merge_ queuesList merge queues.
bitbucket_list_ ssh_ keysList SSH keys.
bitbucket_remove_ pull_ request_ from_ merge_ queueRemove a pullrequest from a merge queue.
bitbucket_update_ branch_ restrictionUpdate a branch restriction rule.
bitbucket_update_ ssh_ keyUpdate a SSH key.
bitbucket_add_ gpg_ keyAdd a new GPG key.
bitbucket_create_ commit_ build_ statusCreate a build status for a commit.
bitbucket_delete_ downloadDelete a download artifact.
bitbucket_delete_ gpg_ keyDelete a GPG key.
bitbucket_get_ commit_ build_ statusGet a build status for a commit.
bitbucket_get_ current_ userGet current user.
bitbucket_get_ current_ user_ emailGet an email address for current user.
bitbucket_get_ download_ linkGet a download artifact link.
bitbucket_get_ gpg_ keyGet a GPG key.
bitbucket_get_ userGet an user.
bitbucket_list_ current_ user_ emailsList email addresses for current user.
bitbucket_list_ downloadsList download artifacts.
bitbucket_list_ gpg_ keysList GPG keys.
bitbucket_list_ root_ filesGet the root directory of the main branch.
bitbucket_update_ commit_ build_ statusUpdate a build status for a commit.
bitbucket_upload_ downloadUpload a download artifact.
Credentials off one Bitbucket screen, then an endpoint your client signs into. Nothing to deploy, and nothing to install.
In your Atlassian account settings choose Security, then Create API token with scopes, pick Bitbucket and tick the read and write scopes you want. Paste the token and pick the workspace. A repository, project or workspace access token works too.
••••••••••••3f7aacme or https://bitbucket.org/acme/webmerge_pull_request, commit_files and run_pipeline run as soon as the AI calls them. New connections start read-only, only clients ticked on the PopMCP consent screen reach Bitbucket, and a token with only read scopes can't write.
Drop the PopMCP URL into Claude, ChatGPT, Claude Code, Codex or any other supported client. It signs in through PopMCP with OAuth, so your Bitbucket credential never leaves the server.
app.popmcp.com/mcpAsk for something harmless before the agent changes anything. Writes run as soon as it calls them, so confirm it reads the right account first.
Review pull request #42 in web-app: what changed, what's still unresolved, and is the build green?
bitbucket_get_pull_request_contextok
Then just ask for the work
“Review pull request #42 in web-app: what changed, what's still unresolved, and is the build green?”
“Why did the last Pipelines run on main fail? Rerun it if it was a flaky test”
“Which open pull requests are waiting on me, and which of them have a failing build?”
“Fix the typo in the README on a new branch and open a pull request for it”
One hosted endpoint, registered once per client. The same tools and the same permissions, whichever window the request comes from.
Add the PopMCP URL under Customize → Connectors and the tools appear in every chat.
The same endpoint, registered in the browser. Nothing to install on the machine you are working from.
Register PopMCP as a custom connector, then let ChatGPT read and update the account.
Wire the endpoint into Codex or the Codex CLI when a task needs live business context, not a fixture.
Register the remote MCP server in OpenCode's config for terminal-first and scripted agent runs.
Add PopMCP as an MCP server in Z.ai's desktop app and work the account from the same window.
FAQ
What teams ask before putting Bitbucket behind an AI client.
An Atlassian API token with scopes for Bitbucket. In your Atlassian account settings open Security, then Create and manage API tokens, then Create API token with scopes; name it, set an expiry (a year at most), choose Bitbucket and tick the scopes: read and write for repositories, pull requests, pipelines and webhooks, and read for workspaces, projects and user. App passwords no longer work: Atlassian switched them off in 2026. A repository, project or workspace access token works too; enter its workspace under More options.
Yes. After you paste the token PopMCP lists every workspace it reaches and you choose which ones to connect, each into its own PopMCP workspace. A connection stays bound to the workspace you picked: the AI never has to name it, and a request for another workspace is refused rather than answered from the wrong one.
Yes. get_pull_request_context returns a pull request's details, reviewers and approvals, changed files with line counts, comments with their file and line, tasks and build results in one call. get_failed_pipeline_logs finds the newest failed Pipelines run and reads the end of each failed step's log. With write actions allowed the AI can then comment inline, approve, ask for changes, rerun the pipeline or merge.
15 of them. Through a workspace webhook PopMCP registers with the connection's own token: code pushed, pull request opened, updated, approved, merged or declined, changes requested, pull request and commit comments, a build started or finished, a repository forked or changed. By comparing snapshots: a new repository and a finished deployment. Registering the webhook needs the webhook scopes and a workspace admin's token.
38 load by default; the rest of the 274 operations stay searchable, from branch restrictions and deploy keys to runners, schedules, Code Insights reports and merge queues. 154 read and 120 write. A read-only connection, or a token with only read scopes, keeps every write tool from running.
No. Atlassian removed the Bitbucket Cloud issue tracker and wikis on 20 August 2026 and moved people to Jira and Confluence, so there is nothing left to call. Connect Jira and Confluence in PopMCP for those.
No. PopMCP hosts it and gives you a Streamable HTTP MCP URL. There is nothing to deploy, no callback URL to register, and no infrastructure to keep running or patch.
Any client that supports a remote Streamable HTTP MCP server: Claude Desktop, Claude Web, Claude Code, ChatGPT custom connectors, Codex and the Codex CLI, OpenCode and Z.ai's ZCode, as well as editors such as Cursor, Windsurf and Zed. Your client signs in to PopMCP with OAuth; the provider credential never leaves the server.
Connect Bitbucket in PopMCP first, then run claude mcp add --transport http popmcp https://app.popmcp.com/mcp in a terminal. Inside Claude Code, run /mcp and sign in to PopMCP in the browser window it opens, ticking Bitbucket on the consent screen. The Bitbucket tools are then available in that session, and no Bitbucket credential is stored on your machine.
Loading 273 tool definitions into every conversation burns context before the work starts. PopMCP loads a curated 38-tool set covering the everyday workflows and keeps the rest searchable, so your AI pulls a specialist tool only when a task needs it. Every tool stays searchable, and on Scale the owner can load the full catalog for a teammate's connection.
A tool is something your AI calls, and there are 273 here. A trigger is something PopMCP watches for you: 15 Bitbucket events that can start work on the PopMCP side. Triggers never enter your AI client's context, and none of them ask you to paste a callback URL into Bitbucket.
Launch a hosted MCP endpoint for Bitbucket, keep tool access under control, and start testing real workflow prompts right away.