← All integrations

Developer Tools · Integration

Embed a Bitbucket integration in your product

Add Bitbucket to your product for your customers, and give your AI agents governed access to it.

Embed a Bitbucket integration so your customers can work their own repositories, branches, pull requests, and pipelines from inside your product, and so your agents can act on them under per-customer governance. Bitbucket emits a lot of webhooks, so events are delivered per customer and can be replayed after an outage, which means a push or build notification missed during downtime is not silently lost. fastn handles each customer's OAuth and monitors the connector for Bitbucket API changes, proposing a tested fix your team approves.

In your product

Embedded for your customers. Per-tenant auth, customized per customer, monitored by fastn.

  • Let customers connect their own Bitbucket workspaces and list repositories and branches inside your product.
  • Open, review, and merge pull requests from your product, with comments and approvals written back.
  • Read pipeline runs and their logs so users debug a failed build where they already work.
  • Trigger your product on a push, a new pull request, or a pipeline that succeeds or fails.

For your AI agents

Governed, audited access for the agents you build, through the MCP server.

  • An agent reads a pull request diff and posts a review comment within scoped permissions.
  • An agent reads the failing pipeline log for a branch and summarizes the cause.
  • An agent reacts to a merge into the default branch and runs the next workflow step.

Example prompt

List open pull requests with no review in the last three days and show who is assigned to each.

Set up Bitbucket in 4 steps

  1. 01Open the Bitbucket connector from your fastn dashboard.
  2. 02Have each customer authenticate their own Bitbucket workspace with OAuth.
  3. 03Map the repositories and pull request fields your product uses, then enable actions and triggers.
  4. 04Call them from your product, or expose them to an agent through the MCP server.

Bitbucket connector reference: actions, triggers and auth

Why teams use the Bitbucket integration

  • Ship a Bitbucket integration without building it. Your customers connect their own Bitbucket account inside your product and work their services, builds and deployments there, and nothing lands on your team.
  • Handle the part that actually costs time: these apps emit a lot of webhooks, and replay after downtime has to be handled. fastn handles the auth, token refresh, rate limits and pagination, and when Bitbucket changes, its maintainer agent proposes a tested fix, so a Bitbucket update does not start in your backlog.

Used by these teams

Bitbucket integration FAQ

Can AI agents use this Bitbucket integration?

Yes, through the fastn MCP gateway, scoped per customer and audited. An agent reads a pull request diff and posts a review comment within scoped permissions. For example: "List open pull requests with no review in the last three days and show who is assigned to each."

Can I react to Bitbucket events in real time?

Yes, through event triggers. Events are delivered per tenant and can be replayed after an outage, so a webhook missed during downtime is not silently lost.

Can an agent open or update items in Bitbucket?

Yes, within scoped permissions, and every action is audited so an agent's changes are attributable.

What can I build with the Bitbucket integration?

A common starting point: connect their own Bitbucket workspaces and list repositories and branches inside your product. The use cases above list the rest.

Add Bitbucket to your product

Start free with 3 customer connections. No sales call required, and no per-customer integration code.