# Bitbucket (verified)

Host Git repos with built-in CI/CD pipelines and pull request reviews. Manage branches, run builds, and collaborate on code.

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add bitbucket

# Browse available tools
npx -y @smithery/cli@latest tool list bitbucket

# Get full schema for a tool
npx -y @smithery/cli@latest tool get bitbucket BITBUCKET_CREATE_BRANCH

# Call a tool
npx -y @smithery/cli@latest tool call bitbucket BITBUCKET_CREATE_BRANCH '{}'
```

## Direct MCP Connection

Endpoint: `https://bitbucket.run.tools`

## Tools (17)

- `BITBUCKET_CREATE_BRANCH` — Creates a new branch in a Bitbucket repository from a target commit hash; the branch name must be unique, adhere to Bit…
- `BITBUCKET_CREATE_ISSUE` — Creates a new issue in a Bitbucket repository, setting the authenticated user as reporter; ensures assignee (if provide…
- `BITBUCKET_CREATE_ISSUE_COMMENT` — Adds a new comment with markdown support to an existing Bitbucket issue.
- `BITBUCKET_CREATE_PULL_REQUEST` — Creates a new pull request in a specified Bitbucket repository, ensuring the source branch exists and is distinct from …
- `BITBUCKET_CREATE_REPOSITORY` — Creates a new Bitbucket 'git' repository in a specified workspace, defaulting to the workspace's oldest project if `pro…
- `BITBUCKET_CREATE_SNIPPET_COMMENT` — Posts a new top-level comment or a threaded reply to an existing comment on a specified Bitbucket snippet.
- `BITBUCKET_DELETE_ISSUE` — Permanently deletes a specific issue, identified by its `issue_id`, from the repository specified by `repo_slug` within…
- `BITBUCKET_DELETE_REPOSITORY` — Permanently deletes a specified Bitbucket repository; this action is irreversible and does not affect forks.
- `BITBUCKET_GET_CURRENT_USER` — Retrieves the profile information (UUID, display name, links, creation date) for the currently authenticated Bitbucket …
- `BITBUCKET_GET_FILE_FROM_REPOSITORY` — Retrieves a specific file's content from a Bitbucket repository at a given commit (hash, branch, or tag), failing if th…
- `BITBUCKET_GET_PULL_REQUEST` — Get a single pull request by ID with complete details.
- `BITBUCKET_GET_SNIPPET` — Retrieves a specific Bitbucket snippet by its encoded ID from an existing workspace, returning its metadata and file st…
- `BITBUCKET_LIST_PULL_REQUESTS` — Lists pull requests in a specified, accessible Bitbucket repository, optionally filtering by state (OPEN, MERGED, DECLI…
- `BITBUCKET_LIST_REPOSITORIES_IN_WORKSPACE` — Lists repositories in a specified Bitbucket workspace, accessible to the authenticated user, with options to filter by …
- `BITBUCKET_LIST_WORKSPACE_MEMBERS` — Lists all members of a specified Bitbucket workspace; the workspace must exist.
- `BITBUCKET_LIST_WORKSPACES` — Lists Bitbucket workspaces accessible to the authenticated user, optionally filtered and sorted.
- `BITBUCKET_UPDATE_ISSUE` — Updates an existing issue in a Bitbucket repository by modifying specified attributes; requires `workspace`, `repo_slug…

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get bitbucket <tool-name>
```
