Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default | 
|---|---|---|---|
| No arguments | |||
Schema
Prompts
Interactive templates invoked by user choice
| Name | Description | 
|---|---|
| No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description | 
|---|---|
| No resources | |
Tools
Functions exposed to the LLM to take actions
| Name | Description | 
|---|---|
| get_pull_request | Get details of a Bitbucket pull request including merge commit information | 
| list_pull_requests | List pull requests for a repository with optional filters | 
| create_pull_request | Create a new pull request | 
| update_pull_request | Update an existing pull request. When updating without specifying reviewers, existing reviewers and their approval status will be preserved. | 
| add_comment | Add a comment to a pull request. Supports: 1) General PR comments, 2) Replies to existing comments, 3) Inline comments on specific code lines (using line_number OR code_snippet), 4) Code suggestions for single or multi-line replacements. For inline comments, you can either provide exact line_number or use code_snippet to auto-detect the line. | 
| merge_pull_request | Merge a pull request | 
| list_branches | List branches in a repository | 
| delete_branch | Delete a branch | 
| get_pull_request_diff | Get the diff/changes for a pull request with optional filtering | 
| approve_pull_request | Approve a pull request | 
| unapprove_pull_request | Remove approval from a pull request | 
| request_changes | Request changes on a pull request | 
| remove_requested_changes | Remove change request from a pull request | 
| get_branch | Get detailed information about a branch including associated pull requests | 
| list_directory_content | List files and directories in a repository path | 
| get_file_content | Get file content from a repository with smart truncation for large files | 
| list_branch_commits | List commits in a branch with detailed information and filtering options | 
| list_pr_commits | List all commits that are part of a pull request | 
| search_code | Search for code across Bitbucket repositories with enhanced context-aware search patterns (currently only supported for Bitbucket Server) |