Bitbucket + Memtro

Pull requests, pipelines and code from Bitbucket Cloud.

Connect Bitbucket Cloud with a scoped Atlassian API token. Memtro answers who is waiting on a review, what a pull request changed, why a Pipelines run failed and what a file says, and records merged pull requests and failed main-branch builds as memories every hour. When you ask, and once an administrator has granted the action by name, it can comment on, approve, open, update and merge pull requests, commit files to a branch, create or delete branches and tags, and run or stop pipelines. A merge cannot be taken back from here, and pipelines spend build minutes.

In Memtro

What you can do with Bitbucket in Memtro

Ask in plain English from chat, your editor, a scheduled job or your own agent. The model picks the right Bitbucket tool, reads what it needs, and answers with the source cited.

What it does

  1. 01List repositories across your workspaces
  2. 02Search pull requests and read them with comments, approvals, tasks and changed files
  3. 03Browse commits on any branch or path, read files or search code across a workspace
  4. 04Inspect Pipelines runs with step results and failed-step logs
  5. 05When asked and granted, comments on pull requests (inline or overall), records approvals or change requests, adds and resolves tasks, and edits or permanently deletes its own comments
  6. 06When asked and granted, commits files to a branch, opens, updates, declines and merges pull requests, creates or deletes branches and tags, and runs or stops pipelines, deploys included

Acts when asked

When you ask it to

These tools change something in Bitbucket. The model is told to use them only when you ask for exactly that, and an administrator grants each one by name to the teams that may use it; a personal connection acts only after its owner allows it.

  1. 01Comment on a pull request, on the whole request or inline on one file and line
  2. 02Approve a pull request, take that approval back, or request changes
  3. 03Commit files to a branch as one commit, starting the branch from another when it is new
  4. 04Open a pull request from a branch that is already on Bitbucket
  5. 05Change a pull request's title, description, destination branch or draft state, or decline it
  6. 06Merge a pull request, choosing the strategy and whether the source branch goes
  7. 07Run a Bitbucket pipeline on a branch or tag, optionally a custom one with variables
  8. 08Stop a running pipeline
  9. 09Create a branch from a commit or another branch
  10. 10Delete a branch
  11. 11Create a tag at a commit
  12. 12Resolve or reopen a comment thread on a pull request
  13. 13Edit a comment on a pull request
  14. 14Delete a comment on a pull request
  15. 15Add a task to a pull request
  16. 16Resolve, reopen or reword a pull request task

Events

When it happens

Turn events on in the connection's Events tab on the Connections page, choose the kinds you want, and Memtro registers its address with Bitbucket for you. Each event can start a job, with the event as its input, and can be remembered where you choose. Bitbucket signs every delivery, and one whose signature does not check out is refused before it is read.

Events and webhooks
  • 01Commits pushed to a repository
  • 02A repository was forked
  • 03A repository's details changed
  • 04A repository was transferred
  • 05A repository was created
  • 06A repository was deleted
  • 07Someone commented on a commit
  • 08A build status was reported on a commit
  • 09A build status changed on a commit
  • 10A pull request was opened
  • 11A pull request was updated
  • 12New commits were pushed to a pull request
  • 13Changes were requested on a pull request
  • 14A request for changes was withdrawn
  • 15A pull request was approved
  • 16An approval was taken back
  • 17A pull request was merged
  • 18A pull request was declined
  • 19Someone commented on a pull request
  • 20A pull request comment was edited
  • 21A pull request comment was deleted
  • 22A pull request comment thread was resolved
  • 23A pull request comment thread was reopened
In practice

Ask it like you would a colleague

Once Bitbucket is connected, these are the kinds of things people ask. Plain questions, no syntax. If the answer lives partly in another system you have connected, Memtro looks there too.

Bitbucket + Memtro
  • Which pull requests in acme/web are open and unapproved?

  • What did PR 142 change and who requested changes?

  • Why did the last pipeline on main fail for the checkout service?

  • Read bitbucket-pipelines.yml from the develop branch

  • Comment on PR 142 that the migration needs a rollback step

01

Broken build

An engineer asks why main is red. Memtro pulls the latest pipeline, shows the failed step and its log tail, and connects it to the commit and pull request that introduced the change.

02

Review follow-through

Leo Martin at Globex asks Memtro to leave his review on PR 142 and request changes on the missing test. Memtro adds an inline comment on the file and line in question and records the change request under the connected account, and Bitbucket notifies the author and participants.

Teams

Where it fits

The teams that lean on Bitbucket most, a question each of them asks, and what they connect beside it.

Better together

Works with

A record in Bitbucket is rarely the whole story. Connect the systems that hold the rest and Memtro checks them together, then remembers what it learned so the next question starts further along.

Also in Engineering and operations

Using something else for the same job, or both? Each connector has its own tools; connect as many as you like.

Setup

How to connect

Connect withAPI token, plus Atlassian account email
  1. 1

    In your Atlassian account open Security → Create and manage API tokens → Create API token with scopes

  2. 2

    Select read:user, read:workspace, read:repository, read:pullrequest and read:pipeline, and for the actions write:pullrequest, write:repository and write:pipeline. Scopes cannot be widened later, so adding one means a new token

  3. 3

    In Memtro open Connections → Bitbucket, paste the API token with your Atlassian account email, and optionally set the Default workspace

  4. 4

    Test the connection, then ask which pull requests are waiting for review

Also works from

Chat in the dashboard, the OpenAI-compatible API, scheduled jobs, and any MCP client: Claude Code, OpenCode, Cursor, Claude Desktop. The Bitbucket tools are the same everywhere.

FAQ

Questions

Can Memtro change anything in Bitbucket?+

Only when you ask, and only what it has been granted: comment on a pull request, on the whole request or inline on one file and line; approve a pull request, take that approval back, or request changes; commit files to a branch as one commit, starting the branch from another when it is new; open a pull request from a branch that is already on Bitbucket; change a pull request's title, description, destination branch or draft state, or decline it; merge a pull request, choosing the strategy and whether the source branch goes; run a Bitbucket pipeline on a branch or tag, optionally a custom one with variables; stop a running pipeline; create a branch from a commit or another branch; delete a branch; create a tag at a commit; resolve or reopen a comment thread on a pull request; edit a comment on a pull request; delete a comment on a pull request; add a task to a pull request; resolve, reopen or reword a pull request task. Every other tool reads, searches or lists. The Connections page labels the tools that act, an administrator grants each one by name to the teams that may use it, and a personal connection acts only after its owner allows it.

Who can use a Bitbucket connection?+

A personal connection serves only your own requests. A shared connection serves the organisation: everyone, or only the teams an admin chooses. Admins can always add shared connections; other members need the permission.

Does Memtro store my Bitbucket data?+

Credentials are encrypted at rest. Tool results are cached briefly so agent loops do not repeat identical calls, and the facts the model extracts are saved to your organisation's memory with provenance (system, record and link) so they can be checked and superseded. An hourly sync anchors recently changed Bitbucket records into memory as entities.

How do I connect Bitbucket?+

API token, plus Atlassian account email. In your Atlassian account open Security → Create and manage API tokens → Create API token with scopes.

Can Bitbucket start a job?+

Yes. Turn events on in the connection's Events tab on the Connections page, choose the kinds you want, and Memtro registers its address with Bitbucket for you. A job set to start "When an event arrives" then runs once for each matching event, with the event as its input. The run treats the event as outside data, never as instructions, and anything the run remembers is kept as unverified.

Connect Bitbucket in a few minutes

Seven-day free trial, then one monthly price per organisation. Connectors, jobs and memory are never metered.

Where agents remember your company

Sign in, add a provider key, create an API key and point your tools at Memtro. It takes about five minutes.

7-day free trial · card on file, nothing charged until it ends · cancel any time