bitbucket-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
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
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| bb_list_pull_requests | List Bitbucket pull requests in a repo, filtered by state. Args: state: OPEN, MERGED, DECLINED, or SUPERSEDED. workspace: Bitbucket workspace slug. repo: Repository slug. limit: Max PRs to return (default 50). |
| bb_get_pull_requestA | Get a Bitbucket PR's metadata: title, description, author, branches, reviewers, state. Args: pull_request_id: The PR id (number). workspace: Bitbucket workspace slug. repo: Repository slug. |
| bb_get_pull_request_diffB | Get the unified diff for a Bitbucket PR. Returns raw diff text. Args: pull_request_id: The PR id (number). file_path: Optional file path filter. workspace: Bitbucket workspace slug. repo: Repository slug. |
| bb_get_pull_request_commentsA | Get the review discussion on a Bitbucket PR (general and inline comments). Args: pull_request_id: The PR id (number). workspace: Bitbucket workspace slug. repo: Repository slug. |
| bb_get_file | Read a file at a given ref from a Bitbucket repo. Returns raw text. Args: path: File path within the repo. ref: Branch name or commit hash. workspace: Bitbucket workspace slug. repo: Repository slug. |
| bb_get_pull_request_statusA | Get CI/build status for a Bitbucket PR's latest commit. Args: pull_request_id: The PR id (number). workspace: Bitbucket workspace slug. repo: Repository slug. |
| bb_get_pipeline_status | Get CI status for a specific commit or branch in Bitbucket. Args: ref: Commit hash or branch name. workspace: Bitbucket workspace slug. repo: Repository slug. |
| bb_create_pull_requestB | Create a new Bitbucket pull request. Args: title: PR title. source_branch: Source branch name. destination_branch: Destination branch name (default "main"). description: PR description (Markdown). reviewers: List of Bitbucket account UUIDs. close_source_branch: Delete source branch after merge. workspace: Bitbucket workspace slug. repo: Repository slug. |
| bb_list_workspace_membersA | List known workspace members to resolve a person's name to their UUID. Members come from the local known-members directory (see directory.py).
Bitbucket's live members API is not used: it requires the You usually don't need to call this before bb_add_pull_request_reviewers — that tool resolves names against the same directory itself. Use this to inspect who is known, or when a name is ambiguous. If more than one member matches, present the candidates rather than guessing. Args: query: Optional case-insensitive name filter (display name or nickname). workspace: Bitbucket workspace slug. |
| bb_add_pull_request_reviewers | Assign reviewers to an existing Bitbucket pull request. Each entry may be a known member's name (resolved against the local
known-members directory) or a raw account UUID. Adds the resolved
reviewers to the PR, preserving the existing reviewers unless If any name is unknown or ambiguous, no change is made and the response lists the unresolved entries (with candidates) so you can disambiguate. Args: pull_request_id: The PR id (number). reviewers: Member names and/or Bitbucket account UUIDs to assign. replace: Replace the reviewer list instead of adding to it. workspace: Bitbucket workspace slug. repo: Repository slug. |
| bb_merge_pull_request | Merge a Bitbucket pull request into its destination branch. Merges the PR and returns the updated PR detail (its Args: pull_request_id: The PR id (number). merge_strategy: 'merge_commit', 'squash', or 'fast_forward'. message: Optional custom merge commit message. close_source_branch: Delete the source branch after merge. workspace: Bitbucket workspace slug. repo: Repository slug. |
| bb_create_pull_request_commentA | Add a comment to a Bitbucket pull request — general or inline on a specific file/line. Args: pull_request_id: The PR id (number). content: Comment body (Markdown). inline_path: File path for inline comment. inline_to: Line number in new version. inline_from: Line number in old version. workspace: Bitbucket workspace slug. repo: Repository slug. |
| bb_edit_pull_request_commentA | Edit the body of an existing Bitbucket pull request comment. Replaces the comment's content with Args: pull_request_id: The PR id (number). comment_id: The id of the comment to edit. content: New comment body (Markdown), replaces the old one. workspace: Bitbucket workspace slug. repo: Repository slug. |
| bb_delete_pull_request_commentA | Delete a comment from a Bitbucket pull request. Permanently removes the comment. Only the comment's author may delete it — deleting someone else's comment fails with an authorization error. Get comment ids from bb_get_pull_request_comments. Returns a confirmation with the deleted comment id. Args: pull_request_id: The PR id (number). comment_id: The id of the comment to delete. workspace: Bitbucket workspace slug. repo: Repository slug. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/matt-nann/bitbucket-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server