Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
BITBUCKET_URLNoFull base URL alternative (e.g. https://git.company.com)
BITBUCKET_HOSTNoBitbucket DC hostname (e.g. git.company.com)
BITBUCKET_API_TOKENNoPersonal Access Token

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
bitbucket_get_projects

Get a list of Bitbucket projects.

Returns projects the authenticated user has access to. Use name to filter by project name, and permission to filter by access level.

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 from_ref branch to to_ref branch. Optionally add a description and reviewers.

bitbucket_update_pull_request

Update a pull request's title, description, or reviewers.

Requires the current PR version number for optimistic locking — fetch it first using bitbucket_get_pull_request.

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 since/until to specify a commit range (like git log since..until). Use path to only show commits that modified a specific file.

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 path points to a file, returns its content instead. Use at to browse a specific branch or commit.

bitbucket_get_file_content

Get the raw content of a file from a repository.

Returns the full file content as text. Use at to fetch from a specific branch, tag, or commit hash.

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 filter_text to search for branches by name.

bitbucket_get_tags

List tags in a repository.

Returns tags with their associated commit hash. Use filter_text to search for tags by name.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/christopherekfeldt/mcp-bitbucket-dc'

If you have feedback or need assistance with the MCP directory API, please join our Discord server