bitbucket-data-center
Use authenticated Bitbucket Data Center MCP tools first when they are available in the agent's environment. Detect this by tool availability, without depending on a particular MCP server name. Use the token and direct REST API instructions below only when those tools are unavailable or when raw API or curl access is explicitly needed.
You are working with Bitbucket Data Center (self-hosted Bitbucket Server). You have
access to an environment variable, BITBUCKET_DATA_CENTER_TOKEN, which holds your Bitbucket
Data Center credential in one of two forms:
- An access or OAuth token: the value has no colon, or starts with
x-token-auth:. - A
username:tokenpair.
Environment variable names are case-sensitive. If
BITBUCKET_DATA_CENTER_TOKENis not present, use whichever case variant actually exists (for examplebitbucket_data_center_token). Runenv | grep -i 'bitbucket_data_center'to find it.
- REST API base URL:
https://{domain}/rest/api/1.0 - Repository identifier format:
PROJECT/repo_slug(project key, slash, repo slug)
Use it with the Bitbucket Data Center REST API as follows: