Skip to main content
Glama

MCP Bitbucket Python

by Kallows

MCP Bitbucket Python 🦊

用于 Bitbucket 集成的 MCP 服务器的 Python 实现。MCP(模型上下文协议)为 AI 应用程序提供安全的本地工具访问。该服务器与您的 AI 应用程序在同一台机器上本地运行。

安装

# Install the server locally git clone https://github.com/kallows/mcp-bitbucket.git

可用工具

此 MCP 服务器提供以下 Bitbucket 集成工具:

  • bb_create_repository :创建一个新的 Bitbucket 存储库
    • 必需:名称(存储库名称)
    • 可选:描述、工作区(默认为 kallows)、project_key、is_private(默认值:true)、has_issues(默认值:true)
  • bb_create_branch :在存储库中创建一个新分支
    • 必需:repo_slug、branch(新分支的名称)
    • 可选:工作区(默认为 kallows)、起始点(默认为 main)
  • bb_delete_repository :删除 Bitbucket 存储库
    • 必需:repo_slug
    • 可选:工作区(默认为 kallows)
  • bb_read_file :从存储库读取文件
    • 必需:repo_slug,路径(存储库中的文件路径)
    • 可选:工作区(默认为 kallows)、分支(默认为主/主)
  • bb_write_file :在存储库中创建或更新文件
    • 必需:repo_slug、路径、内容
    • 可选:工作区(默认为 kallows)、分支(默认为主)、消息(提交消息)
  • bb_create_issue :在存储库中创建问题
    • 必需:repo_slug、标题、内容
    • 可选:工作区(默认为 kallows)、类型(bug/enhancement/proposal/task)、优先级(trivial/minor/major/critical/blocker)
  • bb_delete_issue :从存储库中删除问题
    • 必需:repo_slug、issue_id
    • 可选:工作区(默认为 kallows)
  • bb_search_repositories :使用查询语法搜索 Bitbucket 存储库
    • 必需:查询(例如,'name〜“test”'或'project.key =“PROJ”')
    • 可选:工作区(默认为 kallows)、页面(默认值:1)、pagelen(默认值:10,最大值:100)
  • bb_delete_file :从存储库中删除文件
    • 必需:repo_slug,路径
    • 可选:工作区(默认为 kallows)、分支(默认为主)、消息(提交消息)
  • bb_create_pull_request :创建拉取请求
    • 必需:repo_slug、title、source_branch
    • 可选:工作区(默认为 kallows)、destination_branch(默认为 main)、描述、close_source_branch(默认值:true)

环境设置

服务器需要将 Bitbucket 凭证设置为环境变量:

export BITBUCKET_USERNAME="your-username" export BITBUCKET_APP_PASSWORD="your-app-password"

项目结构

mcp-bitbucket/ ├── README.md ├── pyproject.toml ├── src/ │ └── bitbucket_api/ │ ├── __init__.py │ └── server.py └── tests/ ├── __init__.py ├── test_bb_api.py └── test_bb_integration.py
Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

MCP 服务器的 Python 实现,可为 AI 应用程序提供安全的本地 Bitbucket 集成,提供存储库管理、分支创建、文件操作、问题跟踪和拉取请求创建的工具。

  1. 安装
    1. 可用工具
      1. 环境设置
        1. 项目结构

          Related MCP Servers

          • -
            security
            F
            license
            -
            quality
            A Python implementation of the MCP server that enables AI models to connect with external tools and data sources through a standardized protocol, supporting tool invocation and resource access via JSON-RPC.
            Last updated -
            1
            Python
          • A
            security
            A
            license
            A
            quality
            An MCP server that enables interaction with Bitbucket repositories through the Model Context Protocol, supporting both Bitbucket Cloud and Server with features for PR lifecycle management and code review.
            Last updated -
            16
            1,479
            6
            TypeScript
            MIT License
          • -
            security
            A
            license
            -
            quality
            A dynamic MCP server that automatically discovers Python files in a directory and exposes them as tools to any MCP-compatible AI client, allowing users to easily create and deploy custom AI tools.
            Last updated -
            Python
            MIT License
          • -
            security
            F
            license
            -
            quality
            A high-speed MCP server that enables AI assistants like Claude to interact with local filesystems, manage Git repositories, and provide interactive experiences through a standardized JSON-based protocol.
            Last updated -
            3
            Python
            • Apple

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/Kallows/mcp-bitbucket'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server