Skip to Content

Connect Bitbucket to Your AI Agent

Arrive at code review with the discussion and build status already organized. Choose MCP or oo CLI + Skill.

41 toolsOAuthMCP / oo CLI + Skill

20,000 free app calls every month(paid services billed separately)

Start Working with Bitbucket ↓

Start Working with Bitbucket

Authorize your Bitbucket account.

Check Resource Access First

Access to the workspace and repository needed for your task.

Connect Bitbucket

Sign in to OOMOL, select your team, and create the Bitbucket connection using a supported authorization method. Check that the connection is active, then use the same team in your MCP configuration or oo CLI login.

Connect Bitbucket
  • Access to the workspace and repository needed for your task.
  • Identify repositories by workspace and repository slug or UUID. Changes such as merging or running a pipeline require an explicit request.
Choose Your Access Method

For clients that support remote HTTP MCP and custom authentication headers.

  1. Open the MCP setup page, sign in, and select the team containing your application connection. Use Copy MCP Configuration to get the key and headers.
  2. Add the configuration using the MCP client instructions below, then reconnect your client.
  3. Copy the read-only verification task into your AI chat and run it.
Configure MCPMCP Client Configuration→

For agents that can run terminal commands and use the oo Skill.

  1. Follow the agent setup page to install oo CLI and the oo Skill.
  2. Sign in to the OOMOL team containing your application connection. Use oo login --team <team-name> with your team name.
  3. Copy the read-only verification task into your agent chat and run it.
Set Up oo CLI + SkillCLI Installation Guide→

MCP Client Configuration

Get MCP Configuration

Replace the placeholders with the key and team name from the OOMOL setup page. Keep credentials private and preserve other server entries.

Generic HTTP

In any client that supports remote Streamable HTTP MCP and custom headers, add a remote MCP server using the values below. Get the complete key and team from OOMOL’s MCP setup page; field names and configuration formats vary by client.

URL
https://connector.oomol.com/v1/mcp
Transport
Streamable HTTP
Authorization
Bearer <mcp-api-key>
x-oo-team-name
<team-name>

Replace the placeholders with your own values. Send Authorization as Bearer followed by the MCP key, and x-oo-team-name as the team containing your connection. Prefer the client’s secret-input or environment-variable support. A URL-only setup without these headers is incomplete.

Verify the Connection
  1. Reconnect the server in your client and check that it can list OOMOL tools such as connector_list_apps. If connection fails, check the URL and both authentication headers.
  2. Run the read-only verification task in a new AI chat to check access to your resource and its data.

Look for OOMOL tools such as connector_list_apps and connector_search_actions. They discover and run Bitbucket actions; each action may not appear as a separate MCP tool. Frequently Asked Questions →

Verify Your First Bitbucket Query

Copy this read-only task into a new AI chat. If it fails, check the FAQ.

Choose Your Access Method

Verify Your First Bitbucket Query

Check that the returned resource identifier matches your target and review the query results.

Use OOMOL MCP only. Check that Bitbucket has an active connection in the configured OOMOL team. Read the connected user, list workspaces, and let me select a workspace and repository. List at most 5 open pull requests. Return workspace, repository slug or UUID, PR IDs, titles, URLs, and actual states. Do not infer approvals or pipeline success, merge PRs, or trigger pipelines. Ask me to choose when the target is unclear. Report only actual results, identify the selected resource, and distinguish empty results from access errors. Do not create, update, delete, or send anything.

Try a Bitbucket Task

Replace the bracketed values before copying a task. Some tasks modify data; confirm the target and operation before running them.

Choose Your Access Method

Summarize a Pull Request Discussion

Read a pull request and comments for a review handoff.

Use OOMOL MCP only. Read pull request [number] and its comments in Bitbucket repository [workspace/repository]. Summarize its purpose, current state, and questions needing a response.

Inspect Pipeline Runs

Compare run records and inspect an identified pipeline.

Use OOMOL MCP only. Review pipelines in Bitbucket repository [workspace/repository], then inspect run [run]. Summarize its outcome and available timing details.

Bitbucket Tools

Read repository, branch, commit, and pull-request records in Bitbucket, and inspect pipeline runs for the selected project. Pull-request summaries draw on their details and comments rather than a full code diff.

Pull Requests and Comments

Read reviews and perform explicitly requested pull request actions.

Pipeline Runs

Inspect runs or start and stop pipelines when requested.

41 tools

Get Current User

Get the currently authenticated Bitbucket user.

bitbucket.get_current_user

List Workspaces

List workspaces available to the authenticated Bitbucket user.

bitbucket.list_workspaces

Get Workspace

Get a Bitbucket workspace by slug or UUID.

bitbucket.get_workspace

List Workspace Members

List members of a Bitbucket workspace.

bitbucket.list_workspace_members

List Workspace Projects

List projects in a Bitbucket workspace.

bitbucket.list_workspace_projects

List Repositories

List repositories in a Bitbucket workspace.

bitbucket.list_repositories

Get Repository

Get a Bitbucket repository by workspace and repository slug or UUID.

bitbucket.get_repository

Delete Repository

Permanently delete a Bitbucket repository.

bitbucket.delete_repository

List Branches

List branches in a Bitbucket repository.

bitbucket.list_branches

Get Branch

Get a branch in a Bitbucket repository.

bitbucket.get_branch

Create Branch

Create a branch from a commit hash or existing revision in a Bitbucket repository.

bitbucket.create_branch

Delete Branch

Delete a branch from a Bitbucket repository.

bitbucket.delete_branch

List Tags

List tags in a Bitbucket repository.

bitbucket.list_tags

List Commits

List commits in a Bitbucket repository, optionally starting from a revision.

bitbucket.list_commits

Get Commit

Get a commit from a Bitbucket repository.

bitbucket.get_commit

List Pull Requests

List pull requests in a Bitbucket repository.

bitbucket.list_pull_requests

Get Pull Request

Get a pull request from a Bitbucket repository.

bitbucket.get_pull_request

Create Pull Request

Create a pull request in a Bitbucket repository.

bitbucket.create_pull_request

Merge Pull Request

Merge a Bitbucket pull request.

bitbucket.merge_pull_request

Get Pull Request Merge Task Status

Get the status of an asynchronous Bitbucket pull request merge task.

bitbucket.get_pull_request_merge_task_status

Decline Pull Request

Decline a Bitbucket pull request.

bitbucket.decline_pull_request

Approve Pull Request

Approve a Bitbucket pull request.

bitbucket.approve_pull_request

List Pull Request Comments

List comments on a Bitbucket pull request.

bitbucket.list_pull_request_comments

Create Pull Request Comment

Create a comment on a Bitbucket pull request.

bitbucket.create_pull_request_comment

List Issues

List issues in a repository that still supports the deprecated Bitbucket issue tracker.

bitbucket.list_issues

Get Issue

Get an issue from a repository that still supports the deprecated Bitbucket issue tracker.

bitbucket.get_issue

Create Issue

Create an issue in a repository that still supports the deprecated Bitbucket issue tracker.

bitbucket.create_issue

Update Issue

Update an issue in a repository that still supports the deprecated Bitbucket issue tracker.

bitbucket.update_issue

List Issue Comments

List issue comments in a repository that still supports the deprecated Bitbucket issue tracker.

bitbucket.list_issue_comments

Create Issue Comment

Create an issue comment in a repository that still supports the deprecated Bitbucket issue tracker.

bitbucket.create_issue_comment

List Snippets

List snippets owned by or visible through a Bitbucket workspace.

bitbucket.list_snippets

Get Snippet

Get a Bitbucket snippet by workspace and encoded snippet ID.

bitbucket.get_snippet

List Pipelines

List Pipelines runs for a Bitbucket repository.

bitbucket.list_pipelines

Get Pipeline

Get a Pipelines run from a Bitbucket repository.

bitbucket.get_pipeline

Run Pipeline

Trigger a Bitbucket Pipelines run for a branch, tag, or commit.

bitbucket.run_pipeline

Stop Pipeline

Stop a running Bitbucket pipeline.

bitbucket.stop_pipeline

List Pipeline Variables

List repository-level Bitbucket Pipelines variables.

bitbucket.list_pipeline_variables

Create Pipeline Variable

Create a repository-level Bitbucket Pipelines variable.

bitbucket.create_pipeline_variable

Update Pipeline Variable

Replace a repository-level Bitbucket Pipelines variable.

bitbucket.update_pipeline_variable

Delete Pipeline Variable

Delete a repository-level Bitbucket Pipelines variable.

bitbucket.delete_pipeline_variable

List Repository Runners

List Pipelines runners configured for a Bitbucket repository.

bitbucket.list_repository_runners

Frequently Asked Questions

Why can I connect but not read my resource?

Use the OOMOL team containing your active application connection. Application authorization, the MCP key, and resource permissions are separate checks. Inspect the tool error and confirm the resource ID and query range. Report empty results separately from access errors; keep keys private. For Bitbucket, check the OAuth user and workspace/repository access. Identify the repository with its workspace and slug or UUID. A PR listing does not verify reviews, CI checks, or merge permission; empty results may reflect state filters.

Does this review include the code diff?

These operations read pull-request details and comments, not the code diff or repository files.

Can I inspect a specific build?

Yes. Supply the repository and pipeline run you want reviewed.