This provides a go bitbucket cli bb-cli, an mcp server bb-mcp and a terraform provider. All by focusing on low maintenance using auto generation from the official OpenAPI Spec.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add bitbucket-fabianschurig --env BITBUCKET_TOKEN='<BITBUCKET_TOKEN>' -- docker run -i --rm -e BITBUCKET_TOKEN ghcr.io/fabianschurig/bitbucket-mcp:0.20.2~/.codex/config.toml
[mcp_servers.bitbucket-fabianschurig]
command = "docker"
args = ["run", "-i", "--rm", "-e", "BITBUCKET_TOKEN", "ghcr.io/fabianschurig/bitbucket-mcp:0.20.2"]
env = { BITBUCKET_TOKEN = "<BITBUCKET_TOKEN>" }
# codex mcp add bitbucket-fabianschurig --env BITBUCKET_TOKEN='<BITBUCKET_TOKEN>' -- docker run -i --rm -e BITBUCKET_TOKEN ghcr.io/fabianschurig/bitbucket-mcp:0.20.2~/.cursor/mcp.json
{
"mcpServers": {
"bitbucket-fabianschurig": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"BITBUCKET_TOKEN",
"ghcr.io/fabianschurig/bitbucket-mcp:0.20.2"
],
"env": {
"BITBUCKET_TOKEN": "<BITBUCKET_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"bitbucket-fabianschurig": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"BITBUCKET_TOKEN",
"ghcr.io/fabianschurig/bitbucket-mcp:0.20.2"
],
"env": {
"BITBUCKET_TOKEN": "<BITBUCKET_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"bitbucket-fabianschurig": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"BITBUCKET_TOKEN",
"ghcr.io/fabianschurig/bitbucket-mcp:0.20.2"
],
"env": {
"BITBUCKET_TOKEN": "<BITBUCKET_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"bitbucket-fabianschurig": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"BITBUCKET_TOKEN",
"ghcr.io/fabianschurig/bitbucket-mcp:0.20.2"
],
"env": {
"BITBUCKET_TOKEN": "<BITBUCKET_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"bitbucket-fabianschurig": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"BITBUCKET_TOKEN",
"ghcr.io/fabianschurig/bitbucket-mcp:0.20.2"
],
"env": {
"BITBUCKET_TOKEN": "<BITBUCKET_TOKEN>"
}
}
}
}需要的环境变量
BITBUCKET_TOKEN
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。