
lvluu/bitbucket-dc-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
HTTP MCP server for Bitbucket Data Center REST API
개요
A Model Context Protocol (MCP) server that exposes as tools for AI assistants. This server lets MCP-compatible clients (Claude Desktop, VS Code, IDEs, custom apps) interact with a Bitbucket Data Center instance through 55 tools covering: - — list, get, create, update - — list, get, create, fork, default branch - — CRUD, merge, decline, reopen, approve, reviewers, can-merge - — list, add, get, update, delete (inline + general) - — diffs, file changes, conflict markers - — activity feed, participants, watchers - — blocker comment tasks - — list, create, delete - — list, get, changes, diff - — browse, read, edit, recursive listing - — build statuses per commit, build statistics Once connected, try asking your AI assistant: - "List all repositories in the PROJ project" - "Show me open pull requests in repo X" - "What changed in PR #42?
README
원문 README의 일부입니다. 원문 보기.
Bitbucket DC MCP Server
A Model Context Protocol (MCP) server that exposes Bitbucket Data Center REST API v1.0 as tools for AI assistants.
Overview
This server lets MCP-compatible clients (Claude Desktop, VS Code, IDEs, custom apps) interact with a Bitbucket Data Center instance through 55 tools covering:
- Projects — list, get, create, update
- Repositories — list, get, create, fork, default branch
- Pull Requests — CRUD, merge, decline, reopen, approve, reviewers, can-merge
- PR Comments — list, add, get, update, delete (inline + general)
- PR Diff & Changes — diffs, file changes, conflict markers
- PR Activity — activity feed, participants, watchers
- PR Tasks — blocker comment tasks
- Branches & Tags — list, create, delete
- Commits — list, get, changes, diff (whole commit or one file via
path) - Files — browse, read, edit, recursive listing
- Build Status — build statuses per commit, build statistics
- Merge Queue — enqueue, view, dequeue, and process per-repository merge queues
graph LR
A[AI Client] |MCP| B[bitbucket-dc-mcp]
B |REST API v1.0| C[Bitbucket Data Center]
Example Prompts
Once connected, try asking your AI assistant:
- “List all repositories in the PROJ project”
- “Show me open pull requests in repo X”
- “What changed in PR #42? Summarize the diff”
- “Create a branch called feature/login from main in PROJ/my-repo”
- “Add a comment on PR #15 suggesting a fix for the null check on line 23”
- “What’s the build status for the latest commit on main?”
- “Show me the last 10 commits on the develop branch”
- “Read the contents of src/index.ts from the main branch”
- “Are there any unresolved tasks blocking PR #8 from merging?”
- “Who approved PR #21 and what comments were left?”
- “Enqueue PR #5 into the merge queue for PROJ/my-repo”
- “Show me the merge queue for PROJ/my-repo”
- “Remove PR #5 from the merge queue for PROJ/my-repo”
- “Process the merge queue for PROJ/my-repo”
Installation
Global install
npm install -g @shibainu16/bitbucket-dc-mcp
Using npx (no install required)
BITBUCKET_URL=https://bitbucket.example.com \
BITBUCKET_TOKEN=your-token \
MCP_TRANSPORT=stdio \
npx @shibainu16/bitbucket-dc-mcp
Prerequisites
- Node.js >= 22
- A Bitbucket Data Center instance with API access
- A personal access token or username/password credentials
Quick Start
1. Configure environment
Create a .env file (or export variables in your shell):
설치
npx -y @shibainu16/bitbucket-dc-mcp설정
{
"mcpServers": {
"bitbucket-dc-mcp": {
"command": "npx",
"args": ["-y", "@shibainu16/bitbucket-dc-mcp"],
"env": {
"BITBUCKET_URL": "https://bitbucket.example.com",
"BITBUCKET_TOKEN": "your-token",
"MCP_TRANSPORT": "stdio"
}
}
}
}