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.
What agents do in Bitbucket.
Check a pull request before merging
Get the diff and comments on a pull request to review changes before deciding whether to approve it.
Create a branch for new work
Create a new branch from a repository so a developer can start work without touching main.
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.
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
78Look things up. Allowed by default.
- bitbucket.get_userGet user
- bitbucket.list_tagsList tags
- bitbucket.get_branchGet branch
- bitbucket.get_snippetGet snippet
- bitbucket.list_issuesList issues in a repository
- bitbucket.list_commitsList commits
- bitbucket.get_workspaceGet workspace
- bitbucket.list_branchesList branches
- bitbucket.list_snippetsList snippets
- bitbucket.list_versionsList versions
- bitbucket.get_repositoryGet repository
- bitbucket.list_pipelinesList pipelines
- bitbucket.get_commit_diffGet Commit Diff
- bitbucket.get_hook_eventsGet hook events
- bitbucket.get_user_emailsGet user emails
- bitbucket.list_workspacesList workspaces
write
23Create and change things. Allow, or ask the user first.
- bitbucket.create_issueCreate an issue
- bitbucket.update_issueUpdate an issue
- bitbucket.create_branchCreate a branch
- bitbucket.create_repositoryCreate repository
- bitbucket.create_pull_requestCreate a pull request
- bitbucket.update_pull_requestUpdate Pull Request
- bitbucket.create_issue_commentCreate an issue comment
- bitbucket.create_snippet_commentCreate snippet comment
- bitbucket.create_pull_request_commentCreate pull request comment
- bitbucket.create_repositories_commits2List commits from revision (POST)
- bitbucket.update_repositories_commit_commentsUpdate commit comment
- bitbucket.create_teams_pipelines_config_variablesCreate team pipeline variable
- bitbucket.create_users_pipelines_config_variablesCreate user pipeline variable
- bitbucket.update_teams_pipelines_config_variablesUpdate team pipeline variable
- bitbucket.update_users_pipelines_config_variablesUpdate user pipeline variable
- bitbucket.create_repositories_commit_reports_annotationsCreate commit report annotations
destructive
9Delete, cancel or archive. Ask first, or deny outright.
- bitbucket.delete_issueDelete issue
- bitbucket.delete_repositoryDelete repository
- bitbucket.delete_commit_commentDelete commit comment
- bitbucket.delete_snippets_watchDelete snippet watch
- bitbucket.delete_pull_request_commentDelete pull request comment
- bitbucket.delete_user_pipeline_variableDelete user pipeline variable
- bitbucket.delete_repositories_commit_reports_annotationsDelete commit report annotation
- bitbucket.merge_pull_requestMerge Pull Request
- bitbucket.get_repositories_merge_baseGet Repositories Merge Base
Bitbucket in three steps.
- 01Your users connect BitbucketThey sign in to Bitbucket on Arc0 Connect, under your brand, and approve the access you ask for.
- 02You set the rulesReads run, writes like “create an issue” can wait for the user, and “delete issue” can be denied outright.
- 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.
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
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
Use Bitbucket from any agent.
Bitbucket and Arc0, answered.
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.
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.
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.
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.
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.
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