Skip to main content
Glama
jabdon00

bitbucket-standalone-mcp

by jabdon00

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
BITBUCKET_URLNoBase URL of the Bitbucket Server / Data Center instance. Defaults to http://vcs.tiddev.com when unset.http://vcs.tiddev.com
BITBUCKET_PASSWORDYesPassword or app password for HTTP Basic authentication.
BITBUCKET_USERNAMEYesUsername for HTTP Basic authentication.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
bb_list_projectsA

List Bitbucket Server projects visible to the authenticated user. Returns project key, name, description, visibility and lock state. Paginated.

bb_list_repositoriesA

List GIT repositories, either all at server level (no filter) or scoped to one project. Each item: project key, slug, name, state. Paginated.

bb_get_repositoryA

Get full details for a single repository: project key, slug, name, state, default branch, fork source, clone URLs and web link.

bb_create_repositoryA

Create a new repository under an existing project. Defaults: empty repo with initial 'master' branch, private. Set 'forkFrom' to fork from another repo.

bb_list_branchesA

List branches in a repository. For each branch: name, latest commit, and how far it is behind/ahead of the default branch (when available). Paginated.

bb_get_branchA

Get details for one branch: name, latest commit id and author, relation to default branch.

bb_create_branchA

Create a new branch from a given start point (branch name or commit SHA).

bb_delete_branchA

Delete a branch from a repository. Refuses to delete the default branch.

bb_list_pull_requestsA

List pull requests in a repository. Filter by state (OPEN default, MERGED, DECLINED), author, reviewer, or text match on title/description. Paginated. Note: projectKey must be the exact uppercase key (e.g. 'USDMF'), not lowercase.

bb_get_pull_requestA

Get full details for a single PR: state, branches (from/to), author, reviewers, participants, version, and web link.

bb_create_pull_requestA

Create a new PR from a source branch to a destination branch. 'reviewer' is optional (username). Returns the created PR with its id.

bb_update_pull_requestA

Update title/description/reviewers of a PR. Omitted fields are left unchanged. Returns the updated PR.

bb_merge_pull_requestB

Merge an OPEN PR. Strategy: 'noFF' (default three-way merge), 'fastForward', 'squash', 'rebase', or a custom variant string. Returns the merged PR.

bb_decline_pull_requestA

Decline an OPEN PR (closes it without merging). Returns the declined PR.

bb_approve_pull_requestB

Approve a PR as the authenticated user. Idempotent — re-approving is a no-op.

bb_unapprove_pull_requestB

Remove the authenticated user's approval from a PR.

bb_list_pull_request_commentsA

List comments on a PR (including global and inline code comments). Each comment: id, text, author, state (OPEN/RESOLVED), anchored-to line/lineType, and web link. Paginated.

bb_create_pull_request_commentA

Add a comment on a PR. Inline code comments need 'anchoredTo' (file path + line number + lineType). Plain text goes in 'text'. Returns the created comment.

bb_update_commentB

Edit the text of an existing comment. Returns the updated comment.

bb_delete_commentC

Delete a comment. Returns confirmation.

bb_resolve_commentB

Mark a comment as resolved. Resolving a parent resolves the whole thread.

bb_get_diffA

Get the full diff between two refs (commit SHA or branch name). 'until' defaults to the default branch. On this server the diff is reconstructed by walking /commits//diff along the branch lineage from until down to (but not including) from. Returns per-file entries with status, +N/−N counts and the unified diff body.

bb_get_diff_summaryA

Get a per-file summary of the diff between two refs (commit SHA or branch name). 'until' defaults to the default branch. On this server it is reconstructed by walking /commits//diff along the branch lineage from until down to (but not including) from. Each entry: path, status, +N/−N counts, and a short preview (first ~400 chars of the file's diff).

bb_get_pull_request_diffA

Get the full unified diff for a PR (all changed files as one large diff text).

bb_get_pull_request_diff_summaryA

Get a per-file summary of what a PR changes: status, +N/−N counts, first hunk.

bb_get_commitA

Get details for a single commit: message, author, date, parents, and relevant PRs. 'slug' can be a full SHA, short SHA, or 'HEAD'.

bb_list_commitsA

List commits on a branch in newest-to-oldest order. Each: short SHA, full SHA, message, author, date. 'branch' defaults to default branch. Paginated.

bb_get_commit_diffA

Get the raw diff introduced by a single commit (the changes the commit makes relative to its parent).

bb_get_commit_parentsA

Get the parent commits of a commit (usually one; two for a merge commit).

bb_list_directoryA

List immediate children of a directory in a repo at a given ref (default branch or commit SHA). Each item: name, type (FILE/DIRECTORY), and path.

bb_get_fileA

Read the full content of a file at a ref. Returns the text content as-is (no wrapping).

bb_raw_fileA

Fetch the raw bytes of a file at a ref and return as plain text. Use this to read files. Binary files will be base64-encoded.

bb_get_file_metadataA

Get metadata about a file: name, parent directory, and commit that last touched it. Use for existence checks and audit trails.

bb_create_fileA

Create a new file at 'path' on 'branch' with 'content'. Optional 'message' is the commit message (default = 'Create '). Returns the new commit id and file path.

bb_update_fileA

Replace the full content of an existing file on 'branch'. 'message' is the commit message (default = 'Update '). Returns the new commit id.

bb_delete_fileA

Remove a file from 'branch' with a commit. The commit message is 'Delete ' by default.

bb_search_repositoriesA

Search repositories across the server by name/description. Returns project key, slug, name, and description for each match.

bb_search_codeA

Not available on this Bitbucket Server (v7.12.1). The code-search endpoint is disabled; use get_file / list_directory instead.

bb_list_commit_buildsA

List build statuses for a commit (from CI providers reporting to Bitbucket). Each build: key, state (SUCCESS/FAILED/RUNNING/QUEUED), and URL.

bb_application_propertiesA

Read server-wide application properties (read-only; modifications require admin). Useful for confirming connectivity and server version.

bb_detect_repoA

Given a project folder (relative to CWD or absolute), find its .git directory, read git remote get-url origin, and parse out the Bitbucket project key + repo slug. When the folder isn't itself a git repo, it searches the folder's children (up to 2 levels) for a git repo. If more than one is found, it lists the candidates and you must re-invoke with one of them. Returns { projectKey, repoSlug, remoteUrl, resolvedDir }.

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

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