
aashari/mcp-server-atlassian-bitbucket 是从 https://github.com/aashari/mcp-server-atlassian-bitbucket. 导入的 MCP 服务器候选
概览
aashari/mcp-server-atlassian-bitbucket 是从 https://github.com/aashari/mcp-server-atlassian-bitbucket. 导入的 MCP 服务器候选
概述(AI 翻译)
通过将Claude、Cursor AI及其他AI助手直接连接到你的仓库、拉取请求和代码,改变你的Bitbucket工作方式。获得即时洞察,自动化代码审查,简化你的开发流程。
你能做什么
- 询问AI你的代码:“我主仓库中最新的提交是什么?”
- 获取公关洞察:“显示所有需要审核的开放拉取请求”
- 搜索你的代码库:“查找所有使用认证功能的JavaScript文件”
- 审查代码变更:“比较我的功能分支与主分支之间的差异”
- 管理拉取请求:“为我的新功能分支创建PR”
- 自动化工作流程:“在PR #123中添加测试结果注释”
完美
- 开发者希望在代码审查和仓库管理上获得AI协助
- 团队负责人需要快速洞察项目状态和拉取请求活动
- DevOps 工程师 自动化仓库工作流程和分支管理
- 任何想使用自然语言与Bitbucket交互的人
要求
- Node.js 18.0.0 或更高
- Bitbucket云端账户(非Bitbucket服务器/数据中心)
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Connect AI to Your Bitbucket Repositories
Transform how you work with Bitbucket by connecting Claude, Cursor AI, and other AI assistants directly to your repositories, pull requests, and code. Get instant insights, automate code reviews, and streamline your development workflow.
What You Can Do
- Ask AI about your code: “What’s the latest commit in my main repository?”
- Get PR insights: “Show me all open pull requests that need review”
- Search your codebase: “Find all JavaScript files that use the authentication function”
- Review code changes: “Compare the differences between my feature branch and main”
- Manage pull requests: “Create a PR for my new-feature branch”
- Automate workflows: “Add a comment to PR #123 with the test results”
Perfect For
- Developers who want AI assistance with code reviews and repository management
- Team Leads needing quick insights into project status and pull request activity
- DevOps Engineers automating repository workflows and branch management
- Anyone who wants to interact with Bitbucket using natural language
Requirements
- Node.js 18.0.0 or higher
- Bitbucket Cloud account (not Bitbucket Server/Data Center)
- Authentication credentials: Scoped API Token (recommended) or App Password (legacy)
Quick Start
Get up and running in 2 minutes:
1. Get Your Bitbucket Credentials
IMPORTANT: Bitbucket App Passwords are being deprecated and will be removed by June 2026. We recommend using Scoped API Tokens for new setups.
Option A: Scoped API Token (Recommended - Future-Proof)
Bitbucket is deprecating app passwords. Use the new scoped API tokens instead:
- Go to Atlassian API Tokens
- Click “Create API token with scopes”
- Select “Bitbucket” as the product
- Choose the appropriate scopes:
- For read-only access:
repository,workspace - For full functionality:
repository,workspace,pullrequest
- For read-only access:
- Copy the generated token (starts with
ATATT) - Use with your Atlassian email as the username
Option B: App Password (Legacy - Will be deprecated)
Generate a Bitbucket App Password (legacy method):
- Go to Bitbucket App Passwords
- Click “Create app password”
- Give it a name like “AI Assistant”
- Select these permissions:
- Workspaces: Read
- Repositories: Read (and Write if you want AI to create PRs/comments)
- Pull Requests: Read (and Write for PR management)
2. Try It Instantly
安装
npx -y @aashari/mcp-server-atlassian-bitbucket配置
{
"mcpServers": {
"bitbucket": {
"command": "npx",
"args": ["-y", "@aashari/mcp-server-atlassian-bitbucket"],
"env": {
"ATLASSIAN_USER_EMAIL": "[email protected]",
"ATLASSIAN_API_TOKEN": "your_scoped_api_token"
}
}
}
}