bitbucket_list_branches
List branches in a Bitbucket repository with optional filtering by base branch, pattern, and pagination.
Instructions
List all branches in a repository.
Args: ctx: The MCP context. workspace: Workspace name or project key. repository: Repository name. base: The base branch from which to find branches. branch_filter: Branch pattern to filter on. start: Starting index. limit: Maximum number of branches to fetch.
Returns: JSON string containing list of branches with their details.
Raises: ValueError: If the Bitbucket client is not configured or available.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | The base branch | |
| limit | No | Maximum number of branches to return | |
| start | No | Starting index. | |
| workspace | Yes | Workspace name (Cloud) or project key (Server/DC) | |
| repository | Yes | Repository name | |
| branch_filter | No | Branch pattern to filter on. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |