Bitbucket
JSON →Manage Bitbucket repositories, pull requests, and pipelines via the Bitbucket API for both Cloud and Server.
Install
npx (Recommended) Tools · 32
- get_pull_request Full PR details including comments, file changes, and merge info
- list_pull_requests List PRs with filters (state, author, pagination)
- create_pull_request Create new pull requests
- update_pull_request Update PR details (title, description, reviewers, destination branch)
- merge_pull_request Merge pull requests with various strategies
- decline_pull_request Decline/reject a pull request
- add_comment Add general, inline, threaded, or suggestion comments to a PR
- delete_comment Delete a comment from a pull request
- get_pull_request_diff Structured line-by-line diff with ADDED/REMOVED/CONTEXT types
- set_pr_approval Approve (approved: true) or unapprove (approved: false) a PR
- set_review_status Request changes (request_changes: true) or remove the request (false)
- list_pr_tasks List all tasks on a pull request
- create_pr_task Create a new task on a pull request
- update_pr_task Update the text of an existing task
- set_pr_task_status Mark a task done (done: true) or reopen it (done: false)
- delete_pr_task Delete a task from a pull request
- convert_pr_item Convert a comment to a task (direction: "to_task") or back ("to_comment")
- list_pr_commits List all commits in a pull request
- list_branch_commits List commits in a branch with date/author/message filters
- get_commit_detail Get the structured diff for a specific commit by SHA
- list_branches List branches with filtering and pagination
- get_branch Detailed branch info including associated PRs and stats
- delete_branch Delete a branch
- list_directory_content List files and directories in a repository path
- get_file_content Get file content with smart truncation for large files
- search_files Search for files by glob pattern (case-insensitive, like VS Code Ctrl+P)
- get_file_blame Per-line blame: who last modified each line, commit hash, and author timestamp (Bitbucket Server only)
- search_code Index-backed code search with Bitbucket modifiers (lang:, ext:, path:, archived:, fork:, -term), client-side regex_filter post-filter, snake_case ↔ camelCase fanout, and an index-reach probe that surfaces INDEX_GAP_LIKELY when the index returns nothing despite matching files existing
- find_in_files Content search via file listing + raw-content fan-out. Full PCRE regex; works on languages or branches Bitbucket's index does not cover; with rate-limit detection and honest scan diagnostics
- search_repositories Search for repositories by name, slug, or description
- list_projects List all accessible Bitbucket projects/workspaces
- list_repositories List repositories in a project or across all accessible projects
Environment variables
BITBUCKET_TOKENBITBUCKET_BASE_URL
Links
★ 21 GitHub stars