Bitbucket MCP Server for Cloudflare Workers
73 tools available in the Bitbucket MCP server. Each tool can be called by AI assistants to perform specific actions.
bitbucket_list_commitsList commits in a repository.
Args:
Returns: List of commits with hash, message, author, and date.
{
"type": "object",
"required": [
"workspace",
"repo_slug"
],
"properties": {
"page": {
"type": "integer",
"minimum": 1
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"exclude": {
"type": "string",
"description": "Exclude commits reachable from this ref"
},
"include": {
"type": "string",
"description": "Include commits reachable from this ref"
},
"pagelen": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"revision": {
"type": "string",
"description": "Branch, tag, or commit to start from"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_get_commitGet details for a specific commit.
Args:
Returns: Commit details including hash, message, author, date, and parents.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"commit_hash"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
},
"commit_hash": {
"type": "string",
"description": "Commit hash"
}
}
}bitbucket_list_commit_statusesList build statuses for a commit.
Args:
Returns: List of build statuses with state, key, name, and URL.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"commit_hash"
],
"properties": {
"page": {
"type": "integer",
"minimum": 1
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"pagelen": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
},
"commit_hash": {
"type": "string",
"description": "Commit hash"
}
}
}bitbucket_create_commit_statusCreate a build status for a commit.
Args:
Returns: The created commit status.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"commit_hash",
"state",
"key",
"url"
],
"properties": {
"key": {
"type": "string",
"description": "Unique key for this status"
},
"url": {
"type": "string",
"description": "URL to the build system"
},
"name": {
"type": "string",
"description": "Display name"
},
"state": {
"enum": [
"SUCCESSFUL",
"FAILED",
"INPROGRESS",
"STOPPED"
],
"type": "string",
"description": "Status state"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
},
"commit_hash": {
"type": "string",
"description": "Commit hash"
},
"description": {
"type": "string",
"description": "Status description"
}
}
}bitbucket_get_diffGet the diff between two commits or a commit and its parent.
Args:
Returns: The unified diff as text.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"spec"
],
"properties": {
"spec": {
"type": "string",
"description": "Diff spec (e.g., \"commit1..commit2\" or \"commit"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_list_deploymentsList deployments in a repository.
Args:
Returns: List of deployments with state, environment, and release information.
{
"type": "object",
"required": [
"workspace",
"repo_slug"
],
"properties": {
"page": {
"type": "integer",
"minimum": 1
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"pagelen": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_get_deploymentGet details for a specific deployment.
Args:
Returns: Deployment details including state, environment, release, and pipeline information.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"deployment_uuid"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
},
"deployment_uuid": {
"type": "string",
"description": "Deployment UUID"
}
}
}bitbucket_list_environmentsList deployment environments in a repository.
Args:
Returns: List of deployment environments with name, type, and configuration.
{
"type": "object",
"required": [
"workspace",
"repo_slug"
],
"properties": {
"page": {
"type": "integer",
"minimum": 1
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"pagelen": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_get_environmentGet details for a specific deployment environment.
Args:
Returns: Environment details including name, type, restrictions, and lock status.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"environment_uuid"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
},
"environment_uuid": {
"type": "string",
"description": "Environment UUID"
}
}
}bitbucket_list_downloadsList downloadable files/artifacts for a repository.
Args:
Returns: List of downloads with name, size, and download count.
{
"type": "object",
"required": [
"workspace",
"repo_slug"
],
"properties": {
"page": {
"type": "integer",
"minimum": 1
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"pagelen": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_delete_downloadDelete a downloadable file/artifact.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"filename"
],
"properties": {
"filename": {
"type": "string",
"description": "Filename to delete"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_get_file_contentGet the content of a file from the repository.
Args:
Returns: The file content as text.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"path"
],
"properties": {
"ref": {
"type": "string",
"description": "Branch, tag, or commit hash"
},
"path": {
"type": "string",
"description": "File path"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_list_directoryList the contents of a directory in the repository.
Args:
Returns: List of files and directories with path, type, and size.
{
"type": "object",
"required": [
"workspace",
"repo_slug"
],
"properties": {
"ref": {
"type": "string",
"description": "Branch, tag, or commit hash"
},
"page": {
"type": "integer",
"minimum": 1
},
"path": {
"type": "string",
"default": "",
"description": "Directory path"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"pagelen": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_list_issuesList issues in a repository.
Note: Issues must be enabled on the repository.
Args:
Returns: List of issues with id, title, state, priority, kind, and assignee.
{
"type": "object",
"required": [
"workspace",
"repo_slug"
],
"properties": {
"q": {
"type": "string",
"description": "Query filter"
},
"page": {
"type": "integer",
"minimum": 1
},
"sort": {
"type": "string",
"description": "Sort field"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"pagelen": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_get_issueGet details for a specific issue.
Args:
Returns: Issue details including title, content, state, priority, kind, assignee, and more.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"issue_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"issue_id": {
"type": "integer",
"description": "Issue ID"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_create_issueCreate a new issue in a repository.
Note: Issues must be enabled on the repository.
Args:
Returns: The created issue.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"title"
],
"properties": {
"title": {
"type": "string",
"description": "Issue title"
},
"content": {
"type": "string",
"default": "bug') .describe('Issue kind'), priority: z .enum(['trivial', 'minor', 'major', 'critical', 'blocker']) .default('major') .describe('Priority",
"description": "Issue content"
},
"version": {
"type": "string",
"description": "Version name"
},
"component": {
"type": "string",
"description": "Component name"
},
"milestone": {
"type": "string",
"description": "Milestone name"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
},
"assignee_uuid": {
"type": "string",
"description": "Assignee UUID"
}
}
}bitbucket_update_issueUpdate an existing issue.
Args:
Returns: The updated issue.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"issue_id"
],
"properties": {
"kind": {
"enum": [
"bug",
"enhancement",
"proposal",
"task"
],
"type": "string",
"description": "New kind"
},
"title": {
"type": "string",
"description": "New title"
},
"content": {
"type": "string",
"description": "New content"
},
"issue_id": {
"type": "integer",
"description": "Issue ID"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
},
"assignee_uuid": {
"type": "string",
"description": "New assignee UUID or null"
}
}
}bitbucket_delete_issueDelete an issue.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"issue_id"
],
"properties": {
"issue_id": {
"type": "integer",
"description": "Issue ID"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_list_issue_commentsList comments on an issue.
Args:
Returns: List of comments with id, content, author, and timestamps.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"issue_id"
],
"properties": {
"page": {
"type": "integer",
"minimum": 1
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"pagelen": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"issue_id": {
"type": "integer",
"description": "Issue ID"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_create_issue_commentAdd a comment to an issue.
Args:
Returns: The created comment.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"issue_id",
"content"
],
"properties": {
"content": {
"type": "string",
"description": "Comment content"
},
"issue_id": {
"type": "integer",
"description": "Issue ID"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_list_pipelinesList pipelines in a repository.
Args:
Returns: List of pipelines with build number, state, target, duration, and timestamps.
{
"type": "object",
"required": [
"workspace",
"repo_slug"
],
"properties": {
"page": {
"type": "integer",
"minimum": 1
},
"sort": {
"type": "string",
"description": "Sort field"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"pagelen": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_get_pipelineGet details for a specific pipeline.
Args:
Returns: Pipeline details including state, target, trigger, duration, and timestamps.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"pipeline_uuid"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
},
"pipeline_uuid": {
"type": "string",
"description": "Pipeline UUID"
}
}
}bitbucket_trigger_pipelineTrigger a new pipeline run.
Args:
Returns: The triggered pipeline.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"target_type"
],
"properties": {
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
},
"target_name": {
"type": "string",
"description": "Branch name, tag name, or commit hash"
},
"target_type": {
"enum": [
"branch",
"tag",
"commit"
],
"type": "string",
"description": "Target type"
},
"selector_pattern": {
"type": "string",
"description": "Selector pattern for custom pipelines"
}
}
}bitbucket_stop_pipelineStop a running pipeline.
Args:
Returns: Confirmation that the pipeline was stopped.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"pipeline_uuid"
],
"properties": {
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
},
"pipeline_uuid": {
"type": "string",
"description": "Pipeline UUID"
}
}
}bitbucket_list_pipeline_stepsList steps for a pipeline.
Args:
Returns: List of pipeline steps with name, state, duration, and timestamps.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"pipeline_uuid"
],
"properties": {
"page": {
"type": "integer",
"minimum": 1
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"pagelen": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
},
"pipeline_uuid": {
"type": "string",
"description": "Pipeline UUID"
}
}
}bitbucket_get_pipeline_step_logGet the log output for a pipeline step.
Args:
Returns: The log output as text.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"pipeline_uuid",
"step_uuid"
],
"properties": {
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"step_uuid": {
"type": "string",
"description": "Step UUID"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
},
"pipeline_uuid": {
"type": "string",
"description": "Pipeline UUID"
}
}
}bitbucket_list_pipeline_variablesList pipeline variables for a repository.
Args:
Returns: List of pipeline variables with key, value (if not secured), and secured flag.
{
"type": "object",
"required": [
"workspace",
"repo_slug"
],
"properties": {
"page": {
"type": "integer",
"minimum": 1
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"pagelen": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_create_tagCreate a new tag in a repository.
Args:
Returns: The created tag.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"name",
"target"
],
"properties": {
"name": {
"type": "string",
"description": "New tag name"
},
"target": {
"type": "string",
"description": "Commit hash to tag"
},
"message": {
"type": "string",
"description": "Tag message (for annotated tags)"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_create_pipeline_variableCreate a pipeline variable for a repository.
Args:
Returns: The created pipeline variable.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"key",
"value"
],
"properties": {
"key": {
"type": "string",
"description": "Variable key/name"
},
"value": {
"type": "string",
"description": "Variable value"
},
"secured": {
"type": "boolean",
"default": false,
"description": "Whether the variable is secured"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_delete_pipeline_variableDelete a pipeline variable.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"variable_uuid"
],
"properties": {
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
},
"variable_uuid": {
"type": "string",
"description": "Variable UUID"
}
}
}bitbucket_list_pull_requestsList pull requests in a repository.
Args:
Returns: List of pull requests with id, title, state, author, and branches.
{
"type": "object",
"required": [
"workspace",
"repo_slug"
],
"properties": {
"q": {
"type": "string",
"description": "Query filter"
},
"page": {
"type": "integer",
"minimum": 1
},
"sort": {
"type": "string",
"description": "Sort field"
},
"state": {
"type": "string",
"description": "Filter by state (OPEN, MERGED, DECLINED, SUPERSEDED)"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"pagelen": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_get_pull_requestGet details for a specific pull request.
Args:
Returns: Pull request details including title, description, state, branches, reviewers, and more.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"pr_id"
],
"properties": {
"pr_id": {
"type": "integer",
"description": "Pull request ID"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_create_pull_requestCreate a new pull request.
Args:
Returns: The created pull request.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"title",
"source_branch"
],
"properties": {
"title": {
"type": "string",
"description": "Pull request title"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"reviewers": {
"type": "array",
"items": {
"type": "string"
},
"description": "Array of reviewer UUIDs"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
},
"description": {
"type": "string",
"description": "Pull request description"
},
"source_branch": {
"type": "string",
"description": "Source branch name"
},
"destination_branch": {
"type": "string",
"description": "Destination branch name"
},
"close_source_branch": {
"type": "boolean",
"default": false,
"description": "Close source branch after merge"
}
}
}bitbucket_update_pull_requestUpdate an existing pull request.
Args:
Returns: The updated pull request.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"pr_id"
],
"properties": {
"pr_id": {
"type": "integer",
"description": "Pull request ID"
},
"title": {
"type": "string",
"description": "New title"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"reviewers": {
"type": "array",
"items": {
"type": "string"
},
"description": "New reviewer UUIDs"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
},
"description": {
"type": "string",
"description": "New description"
},
"destination_branch": {
"type": "string",
"description": "New destination branch"
}
}
}bitbucket_approve_pull_requestApprove a pull request.
Args:
Returns: Confirmation of approval.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"pr_id"
],
"properties": {
"pr_id": {
"type": "integer",
"description": "Pull request ID"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_unapprove_pull_requestRemove approval from a pull request.
Args:
Returns: Confirmation of unapproval.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"pr_id"
],
"properties": {
"pr_id": {
"type": "integer",
"description": "Pull request ID"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_decline_pull_requestDecline a pull request.
Args:
Returns: The declined pull request.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"pr_id"
],
"properties": {
"pr_id": {
"type": "integer",
"description": "Pull request ID"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_delete_tagDelete a tag from a repository.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"tag_name"
],
"properties": {
"tag_name": {
"type": "string",
"description": "Tag name to delete"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_merge_pull_requestMerge a pull request.
Args:
Returns: The merged pull request.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"pr_id"
],
"properties": {
"pr_id": {
"type": "integer",
"description": "Pull request ID"
},
"message": {
"type": "string",
"description": "Merge commit message"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
},
"close_source_branch": {
"type": "boolean",
"description": "Close source branch after merge"
}
}
}bitbucket_list_pull_request_commentsList comments on a pull request.
Args:
Returns: List of comments with id, content, author, and timestamps.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"pr_id"
],
"properties": {
"page": {
"type": "integer",
"minimum": 1
},
"pr_id": {
"type": "integer",
"description": "Pull request ID"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"pagelen": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_create_pull_request_commentAdd a comment to a pull request.
Args:
Returns: The created comment.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"pr_id",
"content"
],
"properties": {
"pr_id": {
"type": "integer",
"description": "Pull request ID"
},
"content": {
"type": "string",
"description": "Comment content"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_get_pull_request_diffGet the diff for a pull request.
Args:
Returns: The unified diff as text.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"pr_id"
],
"properties": {
"pr_id": {
"type": "integer",
"description": "Pull request ID"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_list_branchesList branches in a repository.
Args:
Returns: List of branches with name and target commit.
{
"type": "object",
"required": [
"workspace",
"repo_slug"
],
"properties": {
"q": {
"type": "string",
"description": "Query filter"
},
"page": {
"type": "integer",
"minimum": 1
},
"sort": {
"type": "string",
"description": "Sort field"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"pagelen": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_get_branchGet details for a specific branch.
Args:
Returns: Branch details including name, target commit, and merge strategies.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"branch_name"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
},
"branch_name": {
"type": "string",
"description": "Branch name"
}
}
}bitbucket_create_branchCreate a new branch in a repository.
Args:
Returns: The created branch.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"name",
"target"
],
"properties": {
"name": {
"type": "string",
"description": "New branch name"
},
"target": {
"type": "string",
"description": "Commit hash or branch name to create from"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_delete_branchDelete a branch from a repository.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"branch_name"
],
"properties": {
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
},
"branch_name": {
"type": "string",
"description": "Branch name to delete"
}
}
}bitbucket_list_tagsList tags in a repository.
Args:
Returns: List of tags with name, target commit, and message.
{
"type": "object",
"required": [
"workspace",
"repo_slug"
],
"properties": {
"q": {
"type": "string",
"description": "Query filter"
},
"page": {
"type": "integer",
"minimum": 1
},
"sort": {
"type": "string",
"description": "Sort field"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"pagelen": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_get_tagGet details for a specific tag.
Args:
Returns: Tag details including name, target commit, message, and tagger.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"tag_name"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"tag_name": {
"type": "string",
"description": "Tag name"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_get_branching_modelGet the branching model configuration for a repository.
Args:
Returns: Branching model configuration including development and production branches, and branch types.
{
"type": "object",
"required": [
"workspace",
"repo_slug"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_get_branch_restrictionGet details for a specific branch restriction.
Args:
Returns: Branch restriction details including kind, pattern, and users/groups.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"restriction_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
},
"restriction_id": {
"type": "integer",
"description": "Restriction ID"
}
}
}bitbucket_list_repositoriesList repositories in a workspace.
Returns a paginated list of repositories. Can filter by role (member, contributor, admin, owner).
Args:
Returns: List of repositories with name, full_name, privacy status, and more.
{
"type": "object",
"required": [
"workspace"
],
"properties": {
"q": {
"type": "string",
"description": "Query filter"
},
"page": {
"type": "integer",
"minimum": 1,
"description": "Page number"
},
"sort": {
"type": "string",
"description": "Sort field"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"pagelen": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Items per page"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_get_repositoryGet details for a specific repository.
Args:
Returns: Repository details including name, description, size, language, main branch, etc.
{
"type": "object",
"required": [
"workspace",
"repo_slug"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_create_repositoryCreate a new repository in a workspace.
Args:
Returns: The created repository.
{
"type": "object",
"required": [
"workspace",
"repo_slug"
],
"properties": {
"name": {
"type": "string",
"description": "Display name"
},
"has_wiki": {
"type": "boolean",
"default": false,
"description": "Enable wiki"
},
"language": {
"type": "string",
"description": "Programming language"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
},
"has_issues": {
"type": "boolean",
"default": false,
"description": "Enable issue tracker"
},
"is_private": {
"type": "boolean",
"default": true,
"description": "Private repository"
},
"description": {
"type": "string",
"description": "Repository description"
},
"project_key": {
"type": "string",
"description": "Project key"
}
}
}bitbucket_update_repositoryUpdate an existing repository.
Args:
Returns: The updated repository.
{
"type": "object",
"required": [
"workspace",
"repo_slug"
],
"properties": {
"has_wiki": {
"type": "boolean",
"description": "Enable wiki"
},
"language": {
"type": "string",
"description": "Programming language"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
},
"has_issues": {
"type": "boolean",
"description": "Enable issue tracker"
},
"is_private": {
"type": "boolean",
"description": "Private repository"
},
"description": {
"type": "string",
"description": "New description"
}
}
}bitbucket_delete_repositoryDelete a repository. This action is IRREVERSIBLE.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"workspace",
"repo_slug"
],
"properties": {
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_list_forksList forks of a repository.
Args:
Returns: List of forked repositories.
{
"type": "object",
"required": [
"workspace",
"repo_slug"
],
"properties": {
"page": {
"type": "integer",
"minimum": 1
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"pagelen": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_fork_repositoryFork a repository to a target workspace.
Args:
Returns: The forked repository.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"target_workspace"
],
"properties": {
"name": {
"type": "string",
"description": "Name for the fork"
},
"repo_slug": {
"type": "string",
"description": "Source repository slug"
},
"workspace": {
"type": "string",
"description": "Source workspace slug or UUID"
},
"target_workspace": {
"type": "string",
"description": "Target workspace slug"
}
}
}bitbucket_list_branch_restrictionsList branch restrictions for a repository.
Args:
Returns: List of branch restrictions with kind, pattern, and users/groups.
{
"type": "object",
"required": [
"workspace",
"repo_slug"
],
"properties": {
"page": {
"type": "integer",
"minimum": 1
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"pagelen": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_create_branch_restrictionCreate a branch restriction for a repository.
Restriction kinds:
Args:
Returns: The created branch restriction.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"kind"
],
"properties": {
"kind": {
"type": "string",
"description": "Restriction kind"
},
"users": {
"type": "array",
"items": {
"type": "string"
},
"description": "User UUIDs that can bypass"
},
"value": {
"type": "number",
"description": "Value for numeric restrictions"
},
"groups": {
"type": "array",
"items": {
"type": "string"
},
"description": "Group slugs that can bypass"
},
"pattern": {
"type": "string",
"description": "Branch pattern (for glob/regex)"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
},
"branch_type": {
"type": "string",
"description": "Branch type (for branching_model)"
}
}
}bitbucket_update_branch_restrictionUpdate an existing branch restriction.
Args:
Returns: The updated branch restriction.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"restriction_id"
],
"properties": {
"users": {
"type": "array",
"items": {
"type": "string"
},
"description": "New user UUIDs"
},
"value": {
"type": "number",
"description": "New value"
},
"groups": {
"type": "array",
"items": {
"type": "string"
},
"description": "New group slugs"
},
"pattern": {
"type": "string",
"description": "New branch pattern"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
},
"restriction_id": {
"type": "integer",
"description": "Restriction ID"
}
}
}bitbucket_delete_branch_restrictionDelete a branch restriction.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"restriction_id"
],
"properties": {
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
},
"restriction_id": {
"type": "integer",
"description": "Restriction ID"
}
}
}bitbucket_list_deploy_keysList deploy keys for a repository.
Args:
Returns: List of deploy keys with id, label, and key information.
{
"type": "object",
"required": [
"workspace",
"repo_slug"
],
"properties": {
"page": {
"type": "integer",
"minimum": 1
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"pagelen": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_get_deploy_keyGet details for a specific deploy key.
Args:
Returns: Deploy key details including key, label, and timestamps.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"key_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"key_id": {
"type": "integer",
"description": "Deploy key ID"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_create_deploy_keyCreate a deploy key for a repository.
Args:
Returns: The created deploy key.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"key",
"label"
],
"properties": {
"key": {
"type": "string",
"description": "SSH public key"
},
"label": {
"type": "string",
"description": "Key label"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_delete_deploy_keyDelete a deploy key.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"key_id"
],
"properties": {
"key_id": {
"type": "integer",
"description": "Deploy key ID"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_list_webhooksList webhooks for a repository.
Args:
Returns: List of webhooks with UUID, URL, active status, and events.
{
"type": "object",
"required": [
"workspace",
"repo_slug"
],
"properties": {
"page": {
"type": "integer",
"minimum": 1
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"pagelen": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_get_webhookGet details for a specific webhook.
Args:
Returns: Webhook details including URL, description, active status, and events.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"webhook_uuid"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
},
"webhook_uuid": {
"type": "string",
"description": "Webhook UUID"
}
}
}bitbucket_create_webhookCreate a webhook for a repository.
Common events:
Args:
Returns: The created webhook.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"url",
"events"
],
"properties": {
"url": {
"type": "string",
"description": "Webhook URL"
},
"active": {
"type": "boolean",
"default": true,
"description": "Whether the webhook is active"
},
"events": {
"type": "array",
"items": {
"type": "string"
},
"description": "Events to trigger the webhook"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
},
"description": {
"type": "string",
"description": "Webhook description"
}
}
}bitbucket_update_webhookUpdate an existing webhook.
Args:
Returns: The updated webhook.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"webhook_uuid"
],
"properties": {
"url": {
"type": "string",
"description": "New webhook URL"
},
"active": {
"type": "boolean",
"description": "New active status"
},
"events": {
"type": "array",
"items": {
"type": "string"
},
"description": "New events"
},
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
},
"description": {
"type": "string",
"description": "New description"
},
"webhook_uuid": {
"type": "string",
"description": "Webhook UUID"
}
}
}bitbucket_delete_webhookDelete a webhook.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"workspace",
"repo_slug",
"webhook_uuid"
],
"properties": {
"repo_slug": {
"type": "string",
"description": "Repository slug"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
},
"webhook_uuid": {
"type": "string",
"description": "Webhook UUID"
}
}
}bitbucket_list_workspacesList all workspaces accessible by the authenticated user.
Returns a paginated list of workspaces.
Args:
Returns: List of workspaces with slug, name, and UUID.
{
"type": "object",
"properties": {
"page": {
"type": "integer",
"minimum": 1,
"description": "Page number"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
},
"pagelen": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Items per page"
}
}
}bitbucket_get_workspaceGet details for a specific workspace.
Args:
Returns: Workspace details including name, slug, UUID, and links.
{
"type": "object",
"required": [
"workspace"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}bitbucket_list_workspace_membersList all members of a workspace.
Args:
Returns: List of workspace members with their roles and permissions.
{
"type": "object",
"required": [
"workspace"
],
"properties": {
"page": {
"type": "integer",
"minimum": 1,
"description": "Page number"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"pagelen": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Items per page"
},
"workspace": {
"type": "string",
"description": "Workspace slug or UUID"
}
}
}