bitbucket-mcp
by MatanYemini·★ 136·综合分 48
Bitbucket MCP 服务器让 AI 助手可以与 Bitbucket 代码库和拉取请求交互。
概述
Bitbucket MCP 服务器通过模型上下文协议 (Model Context Protocol) 提供与 Bitbucket Cloud 和 Server API 的全面集成。它提供了管理代码库、拉取请求和相关资源的工具,具备适当的身份验证和安全功能。该服务器默认设计为安全模式,避免使用删除操作以防止数据丢失,同时可根据需要启用危险操作。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
如果你的团队使用 Bitbucket 进行版本控制,并希望 AI 助手直接与仓库、拉取请求和代码审查流程交互,请选择此 MCP 服务器。
什么时候不要选它
如果你需要执行对 Bitbucket 的写入操作(仅限于 PR 操作)或仅使用 GitHub,请避免使用此服务器,因为没有来自同一作者的 GitHub 集成。
此 server 暴露的工具
从 README 抽取出 12 个工具listRepositoriesLists repositories in a workspace
getRepositoryGets details for a specific repository
getPullRequestsGets pull requests for a repository
createPullRequestCreates a new pull request
getPullRequestGets details for a specific pull request
updatePullRequestUpdates a pull request
getPullRequestActivityGets the activity log for a pull request
approvePullRequestApproves a pull request
mergePullRequestMerges a pull request
addPullRequestCommentCreates a comment on a pull request
createDraftPullRequestCreates a new draft pull request
publishDraftPullRequestPublishes a draft pull request to make it ready for review
可对比工具
安装
安装
使用 NPX(推荐)
BITBUCKET_URL="https://api.bitbucket.org/2.0" \
BITBUCKET_WORKSPACE="your-workspace" \
BITBUCKET_USERNAME="your-username" \
BITBUCKET_PASSWORD="your-app-password" \
npx -y bitbucket-mcp@latestClaude Desktop 配置
{
"mcpServers": {
"bitbucket": {
"command": "npx",
"args": ["-y", "bitbucket-mcp@latest"],
"env": {
"BITBUCKET_URL": "https://api.bitbucket.org/2.0",
"BITBUCKET_WORKSPACE": "your-workspace",
"BITBUCKET_USERNAME": "your-username",
"BITBUCKET_PASSWORD": "your-app-password"
}
}
}
}FAQ
- 如何向 Bitbucket 进行身份验证?
- 您可以使用用户名/应用密码或访问令牌进行身份验证。对于用户名/密码,请创建具有 '代码库:读取' 和 '拉取请求:读取、写入' 权限的应用密码。
- 这个 MCP 服务器支持 Bitbucket Server 吗?
- 是的,此 MCP 服务器同时支持 Bitbucket Cloud 和 Server。对于 Server,请将 BITBUCKET_URL 设置为您的自托管实例 URL。
bitbucket-mcp 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。