Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
BITBUCKET_EMAILYesYour Atlassian account email used for authentication.
BITBUCKET_API_TOKENYesBitbucket API token with required scopes (read:repository:bitbucket, read:pullrequest:bitbucket, write:pullrequest:bitbucket).
BITBUCKET_WORKSPACENoOptional Bitbucket workspace. If omitted, workspace must be specified in each tool call.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_repositoriesA

Lists repositories in a workspace, sorted by most recently updated.

list_pull_requestsB

Lists a repository's PRs, filtered by state.

get_pull_requestA

Returns full metadata for a PR (description, branches, reviewers, state).

get_pull_request_diffB

Returns the PR's full unified diff — the basis for a first-pass review.

get_pull_request_commentsB

Lists a PR's existing comments (general and inline).

get_pull_request_commitsC

Lists the commits that make up the PR.

get_fileA

Reads a file's contents. If commit is omitted, uses the repository's default branch.

list_directoryA

Lists files and directories under a repository path at a commit/branch. Use it to explore the project structure while reviewing a PR. Empty path = root; max_depth > 1 lists recursively. To see the code as proposed in the PR, pass the source_commit returned by get_pull_request.

add_pull_request_commentA

WRITE — posts a comment on the PR. Provide path and line together for an inline comment.

approve_pull_requestB

WRITE — records the authenticated user's approval on the PR.

request_changes_pull_requestB

WRITE — records the authenticated user's 'request changes' on the PR.

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/daniloneto/bitbucket-mcp'

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