BitbucketMcpServers

BitbucketMcpServersは、C#で開発されたBitbucketリポジトリの管理を効率化するツールです。主に、リポジトリの自動化、ワークフローの最適化、セキュリティ分析を行います。ユーザーは簡単にリポジトリの状態を確認し、必要な操作を迅速に実行できます。

GitHubスター

2

ユーザー評価

未評価

お気に入り

0

閲覧数

13

フォーク

0

イシュー

0

README
Bitbucket MCP Server

This project contains an MCP (Model Context Protocol) server that can interact with Bitbucket.

BitbucketMcpServer Configuration

The BitbucketMcpServer console application requires configuration to connect to your Bitbucket account and target repository. This configuration can be provided via command-line arguments or environment variables. Command-line arguments take precedence over environment variables.

Building and Running

To build the solution:

dotnet build
Build the standalone executable for local MCP
dotnet publish .\src\BitbucketMcpServer\BitbucketMcpServer.csproj -o publish
Example Usage
Cline Setup
  1. Build the standalone executable for local MCP

  2. Copy the standalone executable to a directory in your PATH

  3. Open the Cline MCP Configuation file (cline_mcp_settings.json) in Visual Studio Code.

  4. Add the following configuration:

    {
        "Bitbucket": {
            "autoApprove": [],
            "disabled": false,
            "timeout": 60,
            "command": "BitbucketMcpServer",
            "args": [
                "-u",
                "{{ bitbucket_username }}",
                "-p",
                "{{ bitbucket_app_password }}",
                "-a",
                "{{ bitbucket_account_name }}",
                "-r",
                "{{ bitbucket_repo_name }}"
            ],
            "transportType": "stdio"
            }
    }
    
Dependencies
  • SharpBucket: A .NET wrapper for the Bitbucket Cloud's REST APIs.
  • Serilog: For logging.
  • ModelContextProtocol: For MCP server integration (though this example primarily focuses on SharpBucket usage).