MCP Catalogs
首页

bitbucket-mcp

by MatanYemini·136·综合分 48

Bitbucket MCP 服务器让 AI 助手可以与 Bitbucket 代码库和拉取请求交互。

developer-toolsproductivitygithub
88
Forks
34
活跃 Issue
本月
最近提交
2 天前
收录于

概述

Bitbucket MCP 服务器通过模型上下文协议 (Model Context Protocol) 提供与 Bitbucket Cloud 和 Server API 的全面集成。它提供了管理代码库、拉取请求和相关资源的工具,具备适当的身份验证和安全功能。该服务器默认设计为安全模式,避免使用删除操作以防止数据丢失,同时可根据需要启用危险操作。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:自动化 Bitbucket 仓库的 PR 审查和批准流程
:将 Bitbucket 仓库信息集成到 AI 助手的工作流程中
:创建监控 Bitbucket 拉取请求活动的 AI 驱动仪表板
:如何向 Bitbucket 进行身份验证?
:这个 MCP 服务器支持 Bitbucket Server 吗?

什么时候选它

如果你的团队使用 Bitbucket 进行版本控制,并希望 AI 助手直接与仓库、拉取请求和代码审查流程交互,请选择此 MCP 服务器。

什么时候不要选它

如果你需要执行对 Bitbucket 的写入操作(仅限于 PR 操作)或仅使用 GitHub,请避免使用此服务器,因为没有来自同一作者的 GitHub 集成。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • listRepositories

    Lists repositories in a workspace

  • getRepository

    Gets details for a specific repository

  • getPullRequests

    Gets pull requests for a repository

  • createPullRequest

    Creates a new pull request

  • getPullRequest

    Gets details for a specific pull request

  • updatePullRequest

    Updates a pull request

  • getPullRequestActivity

    Gets the activity log for a pull request

  • approvePullRequest

    Approves a pull request

  • mergePullRequest

    Merges a pull request

  • addPullRequestComment

    Creates a comment on a pull request

  • createDraftPullRequest

    Creates a new draft pull request

  • publishDraftPullRequest

    Publishes a draft pull request to make it ready for review

可对比工具

github-mcpgit-mcpbitbucket-api-wrapper

安装

安装

使用 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@latest

Claude 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 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。