Bitbucket MCP server
104 operations0 webhooks
Git repository hosting for source code, pull requests, and CI/CD pipelines.
Try Bitbucket with your agent
Connect Bitbucket, then paste this into Claude, ChatGPT or Cursor. For ideas from other apps, see the use cases.
Using Corsair, show me what you can do in Bitbucket on my account, then run one read-only example and show me the result.
Bitbucket tools and triggers
Tools are what your agent can do in Bitbucket through Corsair's MCP server. Triggers are the Bitbucket events a routine can start from.
Commits And Insights
- Create Repositories Commit Reports AnnotationsWrite
Adds multiple annotations to a commit report in bulk. Use when you need to add code analysis findings (vulnerabilities, code smells, bugs) to a report attached to a specific commit.
commitsAndInsights.createRepositoriesCommitReportsAnnotations
- Create Repositories Commits2Write
Tool to list commits from a revision using POST method. Identical to GET endpoint but allows sending include/exclude parameters in request body to avoid URL length limits. Use when include/exclude parameters are too long for query strings.
commitsAndInsights.createRepositoriesCommits2
- Delete Commit CommentDestructive
Permanently deletes a specific comment on a commit. Use when removing outdated, incorrect, or unwanted feedback on a commit.
commitsAndInsights.deleteCommitComment
- Delete Repositories Commit Reports AnnotationsDestructive
Deletes a single annotation matching the provided ID from a commit report. Use when you need to remove a specific annotation from a code analysis report.
commitsAndInsights.deleteRepositoriesCommitReportsAnnotations
- Get Commit Build StatusRead-only
Get a specific build status for a commit in Bitbucket. Use when you need to check the status of a particular build/CI run for a commit.
commitsAndInsights.getCommitBuildStatus
- Get Commit ChangesRead-only
Tool to retrieve a page of changes made in a specified commit, showing all changed files with their change statistics (lines added/removed, status). Use when you need to enumerate files modified in a specific commit or commit range.
commitsAndInsights.getCommitChanges
- Get Commit CommentRead-only
Retrieves a specific comment from a commit by its ID. Use when you need to fetch details of a particular commit comment including content, author, timestamps, and inline location.
commitsAndInsights.getCommitComment
- Get Commit DiffRead-only
Tool to retrieve the unified diff between two provided revisions or for a single commit in a Bitbucket repository. Use when you need to see the actual code changes in a commit or between two commits. Supports filtering by file path and various diff options.
commitsAndInsights.getCommitDiff
- Get Repositories CommitRead-only
Tool to retrieve detailed information about a specific commit in a Bitbucket repository. Use when you need to get complete commit details including author, message, date, parents, and related links.
commitsAndInsights.getRepositoriesCommit
- Get Repositories Commit CommentsRead-only
Retrieves all comments on a specific commit in a Bitbucket repository. Returns both global and inline code comments. Use when you need to view feedback, discussions, or notes left on a specific commit.
commitsAndInsights.getRepositoriesCommitComments
- Get Repositories Commit ReportRead-only
Returns a single report matching the provided ID from a commit. Use when you need to retrieve details of a specific analysis report (e.g., security scan, code coverage, test results, or bug report) for a commit.
commitsAndInsights.getRepositoriesCommitReport
- Get Repositories Commit ReportsRead-only
Tool to get reports linked to a specific commit. Use when you need to retrieve analysis results, test reports, security scans, or code coverage data associated with a commit.
commitsAndInsights.getRepositoriesCommitReports
- Get Repositories Commit Reports AnnotationsRead-only
Returns a single annotation matching the provided ID from a commit report. Use when you need to retrieve details of a specific code analysis finding (e.g., vulnerability, code smell, or bug) identified in a commit.
commitsAndInsights.getRepositoriesCommitReportsAnnotations
- Get Repositories Commit StatusesRead-only
Returns all build statuses (e.g., CI/CD pipeline results) for a specific commit. Use when you need to check build status, verify test results, or monitor deployment pipelines for a particular commit.
commitsAndInsights.getRepositoriesCommitStatuses
- Get Repositories Merge BaseRead-only
Get the merge base (best common ancestor) between two commits in a Bitbucket repository. Use when you need to find the common ancestor commit between two branches or commits for comparison or merge operations.
commitsAndInsights.getRepositoriesMergeBase
- Get Repository PatchRead-only
Tool to retrieve the git patch content for a Bitbucket repository at a specified revision or commit range. Use when you need to review code changes, generate diffs, or analyze modifications between commits. Returns raw patch in unified diff format.
commitsAndInsights.getRepositoryPatch
- List CommitsRead-only
Tool to retrieve a page of commits from a Bitbucket repository. Returns commits in reverse chronological order (newest first), similar to git log. Use when you need to browse commit history, filter commits by branch/tag, or restrict to commits affecting a specific path.
commitsAndInsights.listCommits
- List Commits From RevisionRead-only
Tool to list commits starting from a specific revision in a Bitbucket repository. Commits are paginated and returned in reverse chronological order. Use when you need to retrieve commit history from a specific commit, branch, or tag.
commitsAndInsights.listCommitsFromRevision
- List Commits On MasterRead-only
Lists commits on the master branch of a Bitbucket repository. Use when you need to retrieve the commit history for the master branch, including commit messages, authors, dates, and parent relationships.
commitsAndInsights.listCommitsOnMaster
- Update Insights Projects Repos Commits ReportsWrite
Create or update an insight report for a commit. Creates a new report if it doesn't exist, or replaces the existing one if a report already exists for the given repository, commit, and report key. Note: replacing an existing report will be rejected if the authenticated user was not the creator of the specified report.
commitsAndInsights.updateInsightsProjectsReposCommitsReports
- Update Repositories Commit CommentsWrite
Updates the contents of a comment on a commit. Use when you need to modify an existing comment's text on a commit.
commitsAndInsights.updateRepositoriesCommitComments
- Update Repositories Commit Reports AnnotationsWrite
Creates or updates an individual annotation for a commit report. Use when you need to add or modify code analysis findings (vulnerabilities, code smells, or bugs) identified in a commit.
commitsAndInsights.updateRepositoriesCommitReportsAnnotations
Pipelines And Deployments
- Create Teams Pipelines Config VariablesWrite
Creates a team-level pipeline configuration variable in Bitbucket. Use when you need to add environment variables or configuration values that should be available to all pipelines within a team.
pipelinesAndDeployments.createTeamsPipelinesConfigVariables
- Create Users Pipelines Config VariablesWrite
Creates a user-level pipeline variable for Bitbucket pipelines. Use when you need to create account-level configuration variables that can be used across all repositories owned by the user.
pipelinesAndDeployments.createUsersPipelinesConfigVariables
- Delete User Pipeline VariableDestructive
Permanently deletes a user-level pipeline configuration variable identified by its UUID. Use this to remove pipeline variables that are no longer needed at the account level.
pipelinesAndDeployments.deleteUserPipelineVariable
- Get Deployment Environment VariablesRead-only
Retrieves deployment environment level variables for a specific Bitbucket repository environment. Use when you need to view or audit environment-specific configuration variables for deployments.
pipelinesAndDeployments.getDeploymentEnvironmentVariables
- Get Openid ConfigurationRead-only
Retrieves the OpenID Connect discovery configuration for Bitbucket Pipelines OIDC. Use when integrating Bitbucket Pipelines with resource servers (AWS, GCP, Vault) using OpenID Connect authentication. Returns issuer URL, JWKS URI, and supported capabilities.
pipelinesAndDeployments.getOpenidConfiguration
- Get Repositories Environments2Read-only
Retrieve detailed information about a specific deployment environment in a Bitbucket repository. Use when you need to get environment configuration, deployment settings, or check environment properties like locks and restrictions.
pipelinesAndDeployments.getRepositoriesEnvironments2
- Get Repositories Pipelines Config CachesRead-only
Retrieves the repository pipelines caches. Use when you need to list all caches configured for Bitbucket Pipelines in a specific repository.
pipelinesAndDeployments.getRepositoriesPipelinesConfigCaches
- Get Repositories Pipelines Config RunnersRead-only
Retrieves the list of self-hosted runners configured for a repository's pipelines. Use when you need to view available runners for pipeline execution.
pipelinesAndDeployments.getRepositoriesPipelinesConfigRunners
- Get Repositories Pipelines Config SchedulesRead-only
Retrieves configured pipeline schedules for a Bitbucket repository. Use when you need to view scheduled pipeline runs and their cron patterns.
pipelinesAndDeployments.getRepositoriesPipelinesConfigSchedules
- Get Repositories Pipelines Config Ssh Known HostsRead-only
Retrieves repository-level SSH known hosts configured for Bitbucket Pipelines. Use when you need to list or verify SSH known hosts that Pipelines can connect to during builds.
pipelinesAndDeployments.getRepositoriesPipelinesConfigSshKnownHosts
- Get Repositories Pipelines Config VariablesRead-only
Retrieves repository-level pipeline variables for a specific Bitbucket repository. Use when you need to view or audit pipeline configuration variables that are scoped to a repository.
pipelinesAndDeployments.getRepositoriesPipelinesConfigVariables
- Get Repositories Pipelines StepsRead-only
Retrieves all steps for a given pipeline. Use when you need to inspect the individual steps of a pipeline execution, including their state, duration, and commands.
pipelinesAndDeployments.getRepositoriesPipelinesSteps
- Get Repositories Pipelines2Read-only
Retrieve a specified pipeline from a Bitbucket repository. Use when you need to get detailed information about a specific pipeline execution including its status, build number, and results.
pipelinesAndDeployments.getRepositoriesPipelines2
- List DeploymentsRead-only
Lists deployments for a specified Bitbucket repository. Use when you need to view deployment history and status across environments.
pipelinesAndDeployments.listDeployments
- List PipelinesRead-only
Tool to find pipelines in a Bitbucket repository. Returns pipeline metadata including state, trigger, and duration. Use when you need to browse pipeline history or check pipeline status.
pipelinesAndDeployments.listPipelines
- List Repositories EnvironmentsRead-only
List all deployment environments configured for a Bitbucket repository. Use when you need to view available environments for deployments, check environment configurations, or select an environment for deployment operations.
pipelinesAndDeployments.listRepositoriesEnvironments
- Update Teams Pipelines Config VariablesWrite
Updates a team-level pipeline configuration variable in Bitbucket. Use when you need to modify existing environment variables or configuration values that are available to all pipelines within a team.
pipelinesAndDeployments.updateTeamsPipelinesConfigVariables
- Update Users Pipelines Config VariablesWrite
Updates a user-level pipeline variable for Bitbucket pipelines. Use when you need to modify account-level configuration variables such as changing the value, key name, or security status.
pipelinesAndDeployments.updateUsersPipelinesConfigVariables
Pull Requests
- Approve Pull RequestWrite
Tool to approve a pull request as the authenticated user. Use when you need to formally approve changes in a pull request review process.
pullRequests.approvePullRequest
- Create Pull RequestWrite
Creates a new pull request in a specified Bitbucket repository, ensuring the source branch exists and is distinct from the (optional) destination branch.
pullRequests.createPullRequest
- Create Pull Request CommentWrite
Creates a new comment on a Bitbucket pull request. Supports top-level comments, threaded replies, and inline code comments. Use when providing feedback on a PR, replying to existing comments, or commenting on specific code lines.
pullRequests.createPullRequestComment
- Get Pull RequestRead-only
Get a single pull request by ID with complete details.
pullRequests.getPullRequest
- Get Pull Request CommentRead-only
Tool to retrieve a specific comment from a pull request by its ID. Use when you need to fetch details of a particular pull request comment including content, author, timestamps, and inline location.
pullRequests.getPullRequestComment
- Get Pull Request CommitsRead-only
Tool to retrieve commits for a specified pull request. Use when reviewing the commit history of a PR or analyzing changes included in a pull request.
pullRequests.getPullRequestCommits
- Get Pull Request DiffRead-only
Tool to fetch the unified diff for a Bitbucket pull request (follows 302 redirect to repository diff). Use when reviewing code changes in a PR. Supports optional truncation for large diffs via max_chars parameter.
pullRequests.getPullRequestDiff
- Get Pull Request DiffstatRead-only
Tool to get the diffstat for a Bitbucket pull request, showing all changed files with their change statistics (lines added/removed, status). Use when you need to enumerate files modified in a PR.
pullRequests.getPullRequestDiffstat
- Get Repositories Pullrequests ActivityRead-only
Get paginated activity log for all pull requests in a repository. Returns comments, updates, approvals, and request changes. Use when you need to track pull request activity history.
pullRequests.getRepositoriesPullrequestsActivity
- Get Repositories Pullrequests CommentsRead-only
Retrieves a paginated list of comments on a specific pull request in a Bitbucket repository. Returns global, inline, and threaded comments. Use when you need to view feedback, discussions, or reviews left on a pull request.
pullRequests.getRepositoriesPullrequestsComments
- Get Repositories Pullrequests StatusesRead-only
Returns all build statuses (e.g., CI/CD pipeline results) for a specific pull request. Use when you need to check build status, verify test results, or monitor deployment pipelines for a pull request.
pullRequests.getRepositoriesPullrequestsStatuses
- List Pull Request TasksRead-only
Lists all tasks associated with a pull request in a Bitbucket repository. Use when you need to view or track tasks on a PR.
pullRequests.listPullRequestTasks
- List Pull RequestsRead-only
Lists pull requests in a specified, accessible Bitbucket repository, optionally filtering by state (OPEN, MERGED, DECLINED).
pullRequests.listPullRequests
- Request Pull Request ChangesWrite
Tool to request changes on a pull request as the authenticated user. Use when you need to formally request changes in a pull request review process, indicating the PR needs modifications before approval.
pullRequests.requestPullRequestChanges
Source And Refs
- Browse Repository PathRead-only
Tool to retrieve content for a file path or browse directory contents at a specified revision in a Bitbucket repository. Use when you need flexible access to repository content - returns raw file data for files or paginated directory listings for directories.
sourceAndRefs.browseRepositoryPath
- Create BranchWrite
Creates a new branch in a Bitbucket repository from a target commit hash; the branch name must be unique, adhere to Bitbucket's naming conventions, and not include the 'refs/heads/' prefix.
sourceAndRefs.createBranch
- Get BranchRead-only
Retrieves detailed information about a specific branch in a Bitbucket repository. Use when you need to get branch metadata, the commit it points to, or verify a branch exists.
sourceAndRefs.getBranch
- Get File From RepositoryRead-only
Retrieves a specific file's content from a Bitbucket repository at a given commit (hash, branch, or tag), failing if the file path is invalid for that commit.
sourceAndRefs.getFileFromRepository
- Get Raw File ContentRead-only
Tool to retrieve the raw content of a file from a Bitbucket repository at a specified commit, branch, or tag. Use when you need to read file contents from a specific revision.
sourceAndRefs.getRawFileContent
- Get Repositories Branching ModelRead-only
Return the branching model as applied to the repository. Use when you need to understand the repository's branch workflow configuration, including development/production branches and branch type prefixes.
sourceAndRefs.getRepositoriesBranchingModel
- Get Repositories Effective Branching ModelRead-only
Retrieves the effective branching model for a Bitbucket repository, showing which branching model is currently applied (including any inheritance from project-level settings). Use when you need to understand the repository's branch workflow configuration, including development and production branches and branch type prefixes.
sourceAndRefs.getRepositoriesEffectiveBranchingModel
- Get Repositories FilehistoryRead-only
Returns a paginated list of commits that modified the specified file. Use when you need to track file changes over time, find who modified a file, or determine when a file was created or last changed.
sourceAndRefs.getRepositoriesFilehistory
- Get Repositories RefsRead-only
Returns the branches and tags in the repository. Use when you need to list all refs (both branches and tags) in a single API call with optional filtering by type, name pattern, or commit hash.
sourceAndRefs.getRepositoriesRefs
- Get Repositories Refs TagsRead-only
Retrieves detailed information about a specific tag in a Bitbucket repository. Use when you need to get tag metadata, target commit details, or verify a tag exists.
sourceAndRefs.getRepositoriesRefsTags
- Get Repositories SrcRead-only
Lists the contents of the root directory on the repository's main branch without needing to specify a commit or branch. This endpoint redirects to the main branch automatically.
sourceAndRefs.getRepositoriesSrc
- List BranchesRead-only
Lists branches in a Bitbucket repository with optional server-side filtering by name pattern (BBQL) and sorting. Use when you need to discover available branches, search for specific branch patterns, or navigate repository branch structure.
sourceAndRefs.listBranches
- List Repository PathsRead-only
Lists file and directory entries under a repository path at a given revision, with optional breadth-first recursion via max_depth for repository traversal and scanning. Fails if the path points to a file rather than a directory.
sourceAndRefs.listRepositoryPaths
- List TagsRead-only
Lists tags in a Bitbucket repository with optional server-side filtering by name pattern or commit hash (BBQL) and sorting. Use when you need to discover available tags, search for specific tag patterns, or find tags pointing to specific commits.
sourceAndRefs.listTags
Users And Permissions
- Get Current User2Read-only
Tool to retrieve complete profile information for the currently authenticated Bitbucket user. Use when you need comprehensive user details including account_id, username, nickname, and other profile fields.
usersAndPermissions.getCurrentUser2
- Get Ssh Latest KeysRead-only
Retrieves a paginated list of SSH keys for a specified Bitbucket user. Use when you need to view or audit SSH keys configured for a user account.
usersAndPermissions.getSshLatestKeys
- Get UserRead-only
Retrieves public profile information for a specific Bitbucket user by username or UUID. Use when you need to get user details like display name, avatar, creation date, and links to related resources.
usersAndPermissions.getUser
- Get User EmailsRead-only
Returns all the authenticated user's email addresses, both confirmed and unconfirmed. Use when you need to retrieve all email addresses associated with the current user's account.
usersAndPermissions.getUserEmails
- Get User Emails2Read-only
Retrieves details about a specific email address for the authenticated user. Use when you need to check if an email is primary, confirmed, or verify email ownership.
usersAndPermissions.getUserEmails2
- Get User Permissions RepositoriesRead-only
Returns an object for each repository the caller has explicit access to, including their permission level. Use when you need to discover which repositories the authenticated user can access and their specific permissions.
usersAndPermissions.getUserPermissionsRepositories
- Get User Permissions WorkspacesRead-only
Retrieves workspace memberships and permission levels for the authenticated user. Returns an object for each workspace the caller is a member of, along with their effective role (highest privilege level). Use when you need to determine which workspaces a user can access and their permission level in each.
usersAndPermissions.getUserPermissionsWorkspaces
- Get User WorkspacesRead-only
Tool to retrieve all workspaces accessible to the authenticated user. Use when you need to list workspaces the current user can access, optionally filtered by workspace slug or permission level.
usersAndPermissions.getUserWorkspaces
Issues
- Create IssueWrite
Creates a new issue in a Bitbucket repository, setting the authenticated user as reporter; ensures assignee (if provided) has repository access, and that any specified milestone, version, or component IDs exist.
issues.createIssue
- Create Issue CommentWrite
Adds a new comment with markdown support to an existing Bitbucket issue.
issues.createIssueComment
- Delete IssueDestructive
Permanently deletes a specific issue, identified by its `issue_id`, from the repository specified by `repo_slug` within the given `workspace`.
issues.deleteIssue
- Get Repositories Issues VoteRead-only
Tool to check whether the authenticated user has voted for a specific issue in a Bitbucket repository. Use when you need to verify if the current user has already voted on an issue before attempting to vote or unvote.
issues.getRepositoriesIssuesVote
- List IssuesRead-only
Lists issues in a Bitbucket repository with optional filtering by state, priority, kind, or assignee. Use when you need to discover issue IDs or get an overview of repository issues.
issues.listIssues
- List VersionsRead-only
Lists versions (milestones) in a Bitbucket repository's issue tracker. Use when you need to discover available versions for associating with issues, or to retrieve version IDs for use with create_issue.
issues.listVersions
- Update IssueWrite
Updates an existing issue in a Bitbucket repository by modifying specified attributes; requires `workspace`, `repo_slug`, `issue_id`, and at least one attribute to update.
issues.updateIssue
Repositories
- Create RepositoryWrite
Creates a new Bitbucket 'git' repository in a specified workspace, defaulting to the workspace's oldest project if `project_key` is not provided.
repositories.createRepository
- Delete RepositoryDestructive
Permanently deletes a specified Bitbucket repository; this action is irreversible and does not affect forks.
repositories.deleteRepository
- Get Repositories WatchersRead-only
Retrieves a paginated list of all the watchers on the specified repository. Use when you need to see who is watching a particular repository.
repositories.getRepositoriesWatchers
- Get RepositoryRead-only
Retrieves detailed information about a specific repository in a Bitbucket workspace. Use when you need to get repository metadata, settings, or details.
repositories.getRepository
- List RepositoriesRead-only
Retrieves a paginated list of all public repositories on Bitbucket. Use when you need to discover or search across public repositories, optionally filtered by role, query string, creation date, or sorted by various fields.
repositories.listRepositories
- List Repositories In WorkspaceRead-only
Lists repositories in a specified Bitbucket workspace, accessible to the authenticated user, with options to filter by role or query string, and sort results. Responses are paginated; iterate using the `next` field in each response until it is absent to retrieve all repositories.
repositories.listRepositoriesInWorkspace
Workspaces And Projects
- Get Projects ReposRead-only
Retrieves repositories from a project in a Bitbucket workspace. Use when you need to list all repositories belonging to a specific project key within a workspace.
workspacesAndProjects.getProjectsRepos
- Get WorkspaceRead-only
Retrieves detailed information about a specific Bitbucket workspace. Use when you need to get workspace metadata, settings, or details.
workspacesAndProjects.getWorkspace
- Get Workspaces PullrequestsRead-only
Tool to get all workspace pull requests authored by a specified user. Use when you need to retrieve pull requests created by a specific user across all repositories in a workspace.
workspacesAndProjects.getWorkspacesPullrequests
- List Workspace MembersRead-only
Lists all members of a specified Bitbucket workspace; the workspace must exist.
workspacesAndProjects.listWorkspaceMembers
- List Workspace ProjectsRead-only
Lists projects in a specified Bitbucket workspace. Use when you need to retrieve all projects belonging to a workspace.
workspacesAndProjects.listWorkspaceProjects
- List WorkspacesRead-only
Lists Bitbucket workspaces accessible to the authenticated user, optionally filtered and sorted. Results are paginated; follow the `next` field in each response to retrieve subsequent pages until `next` is absent. When multiple workspaces are returned, verify the correct `slug` or UUID before passing to downstream tools.
workspacesAndProjects.listWorkspaces
Snippets
- Create Snippet CommentWrite
Posts a new top-level comment or a threaded reply to an existing comment on a specified Bitbucket snippet.
snippets.createSnippetComment
- Delete Snippets WatchWrite
Stops watching a specific snippet. Use when you want to unsubscribe from notifications for a snippet.
snippets.deleteSnippetsWatch
- Get SnippetRead-only
Retrieves a specific Bitbucket snippet by its encoded ID from an existing workspace, returning its metadata and file structure.
snippets.getSnippet
- Get Snippets WatchRead-only
Checks if the current user is watching a specific snippet. Use when you need to verify watch status for a snippet.
snippets.getSnippetsWatch
- List SnippetsRead-only
Returns all snippets accessible to the authenticated user. Use when you need to discover or list snippets, optionally filtered by role (owner, contributor, or member).
snippets.listSnippets
Search And Discovery
- Get Hook EventsRead-only
Retrieves a paginated list of all valid webhook events for a specified entity type (repository or workspace). Use when you need to discover available webhook event types for subscription or webhook configuration.
searchAndDiscovery.getHookEvents
- Get Workspaces Search CodeRead-only
Tool to search for code in the repositories of the specified workspace. Use when you need to find specific code patterns, function definitions, or text across all repositories in a workspace.
searchAndDiscovery.getWorkspacesSearchCode
- Search Team CodeRead-only
Search for code in repositories of a specified team. Matches can occur in file content or paths. Note: Teams endpoints were deprecated in Oct 2020; use workspace search endpoints for new integrations.
searchAndDiscovery.searchTeamCode
- Search User Repositories CodeRead-only
Tool to search for code in the repositories of a specified user. Use when you need to find specific code patterns, functions, or text across all repositories owned by a user.
searchAndDiscovery.searchUserRepositoriesCode
Connect Bitbucket to Claude, ChatGPT or Cursor
- 1
Connect Bitbucket in Corsair
Sign in to Bitbucket once in Corsair. Corsair stores the credential encrypted and makes the Bitbucket API calls for your agent, so it never goes into a prompt or a config file. Connect Bitbucket
If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs Bitbucket. On a ChatGPT personal plan, connect Bitbucket here first.
- 2
Add Corsair's MCP server to your agent
Every client uses the same address:
https://mcp.corsair.dev/mcpOpen Plugins → Add → Add custom connector, name it Corsair, paste the address, select Continue, then Add.Install Corsair from ChatGPT's plugin directory, connect it and sign in. A custom MCP server with the address works too, but personal plans get its read tools only.Add to Cursor / Grok BuildOr add this to~/.cursor/mcp.json. It opens Corsair to sign in the first time it connects.{ "mcpServers": { "corsair": { "url": "https://mcp.corsair.dev/mcp" } } }Run this, then run/mcpin Claude Code to sign in.claude mcp add --transport http corsair https://mcp.corsair.dev/mcpCodex, Antigravity, Gemini CLI, VS Code, Zed and other clients with OAuth sign-in work the same way. Clients without it, such as GitHub Copilot's coding agent, use a link's own address and an API key. Setup for every client
- 3
Sign in and choose what needs your approval
Your client opens Corsair to sign in. Pick a link: the apps your agent can use and a mode that decides what it may do without asking. In the default Cautious mode, Bitbucket's read and write operations run right away and its 5 destructive operations wait for your approval. Strict mode asks before every write and refuses destructive operations, and Read mode allows reads only.
Bitbucket works with
FAQ
Install corsair and @corsair-dev/bitbucket, add the Bitbucket plugin, and connect with OAuth. Then call methods like corsair.bitbucket.api.commitsAndInsights.createRepositoriesCommitReportsAnnotations() from your app. Corsair stores tokens, and syncs data per tenant.
Yes. Bitbucket needs an OAuth app with scopes that match what you automate. Register the app in Bitbucket, configure redirect URLs, then connect through Corsair or managed OAuth in Hub.
Yes. One Corsair client can hit Bitbucket, GitHub, Notion, Stripe, and the rest. Trigger Bitbucket from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.
Teams use Corsair for git repository hosting for source code, pull requests, and CI/CD pipelines. Common builds include sync jobs, admin tooling, and agents that call Bitbucket APIs from your backend. Local DB entities let you query synced Bitbucket records without hitting the API on every read.
The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per Bitbucket API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.
We maintain @corsair-dev/bitbucket in the open repo. When Bitbucket ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.
No. Corsair does not read your Bitbucket data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store Bitbucket data on your behalf.
Yes. Add https://mcp.corsair.dev/mcp as a custom connector or MCP server in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex or any client that supports remote MCP servers with OAuth sign-in, then sign in to Corsair. On ChatGPT personal plans, custom servers currently get read tools only.
Yes. Put Bitbucket on a link in Strict mode and every write waits for your approval, while destructive actions are refused. The default Cautious mode asks only before the 5 destructive Bitbucket operations. You can change a link's mode at hub.corsair.dev/me.