Skip to content

MCP Tools Reference

The bbkt MCP server exposes 9 core, multiplexed tools. Every tool relies on an action enum property to select discrete API operations.

bbkt mcp supports two transports:

  • Stdio (default)bbkt mcp. Use for local MCP clients (Claude Desktop, Cursor, Zed).
  • HTTP Streamablebbkt mcp --port <n>. Use for remote/network clients (SSE-based).

Token introspection: At startup the server calls Bitbucket’s /user endpoint and reads the X-OAuth-Scopes response header to discover the granted scopes of the credential in use (scoped Atlassian API token or OAuth bearer). Tools whose required scope is missing are silently dropped before the MCP catalog is published, so the AI agent never sees write tools it would fail to call.

Explicit denial: You can forcefully deny the LLM access to any individual tool (e.g., manage_repositories) via the BITBUCKET_DISABLED_TOOLS environment variable (comma-separated).

Terminal window
export BITBUCKET_DISABLED_TOOLS="manage_repositories,manage_pipelines"

Get and list Bitbucket workspaces you have access to.

  • Actions: list, get

Manage repositories across your workspaces.

  • Actions: list, get, create, delete
  • Optional params: role, language, is_private, project_key
  • Required scope: repository

Interact with repository branches and tags.

  • Actions: list-branches, create-branch, delete-branch, list-tags, create-tag
  • Required params: name, target (for creations)
  • Required scope: repository

Explore commit history, diffs, and diffstats.

  • Actions: list, get, diff, diffstat
  • Optional params: path (filter by directory)
  • Required scope: repository

Interact with source code files and directory graphs directly through the Bitbucket API, bypassing local Git clones.

  • Actions: read_file, list_directory, get_history, search, write_file, delete_file
  • Required params: path, content (for writing)
  • Required scope: repository

End-to-end pull request management integration.

  • Actions: list, get, create, update, merge, approve, unapprove, decline, get-diff, get-diffstat, get-commits
  • Optional params: source_branch, destination_branch, merge_strategy, draft
  • Required scope: pullrequest

Interact directly with your team inside active pull requests.

  • Actions: list, create, update, delete, resolve, unresolve
  • Optional params: line_from, line_to, file_path (for inline comments)
  • Required scope: pullrequest

Trigger and monitor standard Bitbucket pipelines integration tests and deployments.

  • Actions: list, get, trigger, stop, list-steps, get-step-log
  • Required scope: pipeline

Interact with the repository Issue Tracker.

  • Actions: list, get, create, update
  • Required scope: issue