Superglue tools for Bitbucket: repos, branches, PRs, pipelines, and webhooks.
For each tool below, use the Download Config or Copy Config button (placeholders for now). You'll paste or save this JSON in your project.
We use API keys, not OAuth, for this integration. Create an App Password in your Bitbucket Settings > App passwords. Add BITBUCKET_APP_PASSWORD, BITBUCKET_USERNAME, and optionally BITBUCKET_BASE_URL to your environment variables. Use Basic Auth with username and app password. See official docs: Bitbucket App Passwords
npm install @superglue/client
Load the JSON config into the SDK and run the workflow with your env credentials. No API key required.
The SDK executes the downloaded JSON workflow locally using your environment's Bitbucket app password.
import { SuperglueClient } from "@superglue/client";
import config from "./bitbucket_list_repos.json"; // or paste JSON string
const client = new SuperglueClient();
async function run() {
const result = await client.run(config, {
env: {
BITBUCKET_APP_PASSWORD: process.env.BITBUCKET_APP_PASSWORD!,
BITBUCKET_USERNAME: process.env.BITBUCKET_USERNAME!,
BITBUCKET_BASE_URL: process.env.BITBUCKET_BASE_URL || "https://api.bitbucket.org/2.0",
SUPERGLUE_REDIRECT_URI: process.env.SUPERGLUE_REDIRECT_URI || "https://app.superglue.cloud/api/auth/callback"
}
});
console.log(JSON.stringify(result, null, 2));
}
run();
| Tool | Actions |
|---|---|
![]() bitbucket_list_reposList repos for a workspace. 👥 1,420 users
|
|
![]() bitbucket_create_repoCreate a new repo in a workspace. 👥 1,108 users
|
|
![]() bitbucket_get_repoFetch default branch and visibility. 👥 1,036 users
|
|
![]() bitbucket_create_branchCreate a branch from a base ref. 👥 987 users
|
|
![]() bitbucket_create_pull_requestCreate PR from source → target. 👥 952 users
|
|
![]() bitbucket_merge_pull_requestMerge an open PR (strategy options). 👥 903 users
|
|
![]() bitbucket_comment_pull_requestPost a PR comment. 👥 876 users
|
|
![]() bitbucket_get_pipeline_statusRetrieve latest pipeline runs. 👥 844 users
|
|
![]() bitbucket_create_webhookRegister repo webhook for events. 👥 819 users
|
|
![]() bitbucket_list_tagsList repo tags/releases. 👥 801 users
|
|