Bitbucket for AI agents

Bitbucket is Atlassian's Git hosting platform for teams to store repositories and review code, used by engineering teams to manage pull requests, pipelines, and branches. Connect it once through Arc0, and your agent, or Claude, ChatGPT and Cursor, can use it through one MCP endpoint, limited to what each user approved.

Developer toolsOAuth 2.0MCP + RESTbitbucket.org
AUDIT LOG · BITBUCKETPOLICY: acme-support
09:41:07 · claude · u_8f2read
bitbucket.list_tags
List tags✓ allowed · 212ms
09:41:08 · claude · u_8f2read
bitbucket.get_user
Get user✓ allowed · 164ms
09:41:09 · claude · u_8f2write
bitbucket.create_issue
Create an issue✓ approved · approved by user
09:41:12 · claude · u_8f2destructive
bitbucket.delete_issue
Delete issue✕ blocked · policy: deny
EVERY BITBUCKET CALL, ON THE RECORD
01 · USE CASES

What agents do in Bitbucket.

01

Check a pull request before merging

Get the diff and comments on a pull request to review changes before deciding whether to approve it.

02

Create a branch for new work

Create a new branch from a repository so a developer can start work without touching main.

03

Delete a repository with sign-off

Delete a repository only after a lead confirms it's no longer needed, since removing it deletes its history.

02 · ACTIONS

110 Bitbucket actions, graded by risk.

Every Bitbucket action is tagged read, write or destructive, so one policy covers the whole app and new actions inherit the right default.

read

78

Look things up. Allowed by default.

  • bitbucket.get_user
    Get user
  • bitbucket.list_tags
    List tags
  • bitbucket.get_branch
    Get branch
  • bitbucket.get_snippet
    Get snippet
  • bitbucket.list_issues
    List issues in a repository
  • bitbucket.list_commits
    List commits
  • bitbucket.get_workspace
    Get workspace
  • bitbucket.list_branches
    List branches
  • bitbucket.list_snippets
    List snippets
  • bitbucket.list_versions
    List versions
  • bitbucket.get_repository
    Get repository
  • bitbucket.list_pipelines
    List pipelines
  • bitbucket.get_commit_diff
    Get Commit Diff
  • bitbucket.get_hook_events
    Get hook events
  • bitbucket.get_user_emails
    Get user emails
  • bitbucket.list_workspaces
    List workspaces
+ 62 MORE

write

23

Create and change things. Allow, or ask the user first.

  • bitbucket.create_issue
    Create an issue
  • bitbucket.update_issue
    Update an issue
  • bitbucket.create_branch
    Create a branch
  • bitbucket.create_repository
    Create repository
  • bitbucket.create_pull_request
    Create a pull request
  • bitbucket.update_pull_request
    Update Pull Request
  • bitbucket.create_issue_comment
    Create an issue comment
  • bitbucket.create_snippet_comment
    Create snippet comment
  • bitbucket.create_pull_request_comment
    Create pull request comment
  • bitbucket.create_repositories_commits2
    List commits from revision (POST)
  • bitbucket.update_repositories_commit_comments
    Update commit comment
  • bitbucket.create_teams_pipelines_config_variables
    Create team pipeline variable
  • bitbucket.create_users_pipelines_config_variables
    Create user pipeline variable
  • bitbucket.update_teams_pipelines_config_variables
    Update team pipeline variable
  • bitbucket.update_users_pipelines_config_variables
    Update user pipeline variable
  • bitbucket.create_repositories_commit_reports_annotations
    Create commit report annotations
+ 7 MORE

destructive

9

Delete, cancel or archive. Ask first, or deny outright.

  • bitbucket.delete_issue
    Delete issue
  • bitbucket.delete_repository
    Delete repository
  • bitbucket.delete_commit_comment
    Delete commit comment
  • bitbucket.delete_snippets_watch
    Delete snippet watch
  • bitbucket.delete_pull_request_comment
    Delete pull request comment
  • bitbucket.delete_user_pipeline_variable
    Delete user pipeline variable
  • bitbucket.delete_repositories_commit_reports_annotations
    Delete commit report annotation
  • bitbucket.merge_pull_request
    Merge Pull Request
  • bitbucket.get_repositories_merge_base
    Get Repositories Merge Base
03 · HOW IT WORKS

Bitbucket in three steps.

  1. 01Your users connect BitbucketThey sign in to Bitbucket on Arc0 Connect, under your brand, and approve the access you ask for.
  2. 02You set the rulesReads run, writes like “create an issue” can wait for the user, and “delete issue” can be denied outright.
  3. 03Any agent can actYour agent calls Bitbucket through the Arc0 SDK or MCP, and so can Claude, ChatGPT and Cursor. Every call lands on the audit log.
POLICY.TS
await arc0.policies.set('bitbucket', {
  read: 'allow',
  write: 'ask',        // create_issue
  destructive: 'deny',  // delete_issue
})

# Claude Code: the same connection, one URL
$ claude mcp add --transport http arc0 \
    https://mcp.arc0.ai/u/u_8f2
04 · AUTH AND DATA

How Bitbucket connects.

Users sign in to Bitbucket on Arc0 Connect and approve the scopes you request. Build with Arc0’s Bitbucket OAuth app, or bring your own so the Bitbucket consent screen names you. Tokens refresh automatically, and you can export them whenever you want.

The same Bitbucket connection serves your agent over MCP and your own backend over REST and the proxy, so a user connects once. How Arc0 handles credentials →

AUTH
OAuth 2.0
CREDENTIALS
Per-tenant encrypted vault
MODEL SEES
Results only, never credentials
AUDIT LOG
Every call, on every plan
05 · WORKS WITH

Use Bitbucket from any agent.

Claude
ChatGPT
Cursor
Codex
VS Code
OpenAI Agents SDK
Claude Agent SDK
Vercel AI SDK
Mastra
LangGraph
07 · FAQ

Bitbucket and Arc0, answered.

Q01

Can I use Bitbucket with Claude, ChatGPT or Cursor?

Yes. Connect Bitbucket to Arc0 once, then add your Arc0 MCP URL to Claude, ChatGPT, Cursor, Claude Code or any other remote-MCP client. Each assistant only gets the Bitbucket actions you allow.

Q02

How do users connect Bitbucket?

Users sign in to Bitbucket on Arc0 Connect and approve the scopes you request. Build with Arc0’s Bitbucket OAuth app, or bring your own so the Bitbucket consent screen names you. Tokens refresh automatically, and you can export them whenever you want.

Q03

Which Bitbucket actions can my agent take?

110 in total: 78 read, 23 write and 9 destructive, such as “create an issue”. Your policies decide which of them each agent may call.

Q04

Can I stop my agent from deleting things in Bitbucket?

Yes. Actions like “delete issue” are graded destructive. Set destructive actions to deny, or to ask so the user approves each one, and blocked calls still show up on the audit log.

Q05

Can my own backend call Bitbucket too?

Yes. The same Bitbucket connection is available over REST and through the Arc0 proxy, so your product and your agent share one connection per user.

Get started

Plug Bitbucket into your agent.

Your users connect Bitbucket once, under your brand. Your agent gets 110 actions behind your policies, with every call on the record.

Free to build · MCP + REST · Audit log on every plan