Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| BITBUCKET_URL | No | Full base URL alternative (e.g. https://git.company.com) | |
| BITBUCKET_HOST | No | Bitbucket DC hostname (e.g. git.company.com) | |
| BITBUCKET_API_TOKEN | No | Personal Access Token |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| bitbucket_get_projects | Get a list of Bitbucket projects. Returns projects the authenticated user has access to. Use |
| bitbucket_get_project | Get details of a specific Bitbucket project by its key. |
| bitbucket_get_repositories | Get repositories for a Bitbucket project. Lists all repositories within the specified project that the authenticated user has access to. |
| bitbucket_get_repository | Get details of a specific repository including clone URLs and configuration. |
| bitbucket_get_pull_requests | List pull requests for a repository. Returns pull requests filtered by state, direction, and text. Defaults to showing OPEN pull requests ordered by newest first. |
| bitbucket_get_pull_request | Get full details of a specific pull request including description and reviewers. |
| bitbucket_get_pull_request_comments | Get comments and activity for a pull request. Returns all activities (comments, approvals, status changes) on the PR, including inline code comments with file path and line information. |
| bitbucket_get_pull_request_changes | Get the list of files changed in a pull request. Shows which files were added, modified, deleted, or renamed in the PR. |
| bitbucket_get_pull_request_diff | Get the text diff for a specific file in a pull request. Returns the unified diff showing additions and deletions for the specified file. |
| bitbucket_post_pull_request_comment | Post a comment on a pull request. Can post general comments, reply to existing comments, or add inline code comments at a specific file and line. |
| bitbucket_create_pull_request | Create a new pull request. Creates a PR from |
| bitbucket_update_pull_request | Update a pull request's title, description, or reviewers. Requires the current PR |
| bitbucket_get_required_reviewers | Get required reviewers for a potential pull request between two branches. Use this before creating a PR to discover mandatory reviewers configured via merge checks or default reviewer rules. |
| bitbucket_get_commits | Get commits for a repository. Lists commits in reverse chronological order. Use |
| bitbucket_code_search | Search code across all Bitbucket repositories using the search API. Uses Bitbucket's built-in code search (powered by Elasticsearch). Searches across all repositories the authenticated user has access to. Returns matching files with surrounding code context and line numbers. Requires the Bitbucket Search feature to be enabled on the Data Center instance. |
| bitbucket_browse | Browse the file tree of a repository. Lists files and directories at the given path. If |
| bitbucket_get_file_content | Get the raw content of a file from a repository. Returns the full file content as text. Use |
| bitbucket_list_files | Recursively list all file paths in a repository or sub-directory. Returns a flat list of all file paths (no directories). Useful for understanding the project structure or finding files by name. |
| bitbucket_get_branches | List branches in a repository. Returns branches with their latest commit hash. Use |
| bitbucket_get_tags | List tags in a repository. Returns tags with their associated commit hash. Use |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |