Skip to main content

A simple MCP server for Bitbucket

Project description

MCP Bitbucket Review Server

This is an MCP server for LLMs to use capabilities of bitbucket to it's code review workflows.

Installation

[!IMPORTANT]
You need python 3.10 or above for this to work.

Install from pip:

pip install mcp-bitbucket-review

Configuration in Cursor

  1. Go to File -> Preferences -> Cursor Settings -> MCP & Integrations.

  2. Add a new MCP server.

  3. Add the bitbucket server MCP from the following to the mcpServers object of mcp.json:

    {
        "mcpServers": {
            // ... your rest of the MCP servers
            "bitbucket": {
                "command": "mcp-bitbucket-review-server",
                "env": {
                    "BITBUCKET_EMAIL": "YOUR_BITBUCKET_EMAIL",
                    "BITBUCKET_API_TOKEN": "YOUR_BITBUCKET_API_TOKEN"
                }
            }
        }
    }
    
  4. Save the settings.

Usage sample

Open new chat and give following prompt:

Review pull request <YOUR_PULL_REQUEST_URL>

Get API token from bitbucket

  1. Go to https://id.atlassian.com/manage-profile/security/api-tokens

  2. Click on button labelled Create API token with scopes

  3. Give scopes and store the API token. Make sure you give the following scopes to the API token:

    read:pullrequest:bitbucket
    write:pullrequest:bitbucket
    read:repository:bitbucket
    

Happy coding!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_bitbucket_review-0.1.1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_bitbucket_review-0.1.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file mcp_bitbucket_review-0.1.1.tar.gz.

File metadata

  • Download URL: mcp_bitbucket_review-0.1.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for mcp_bitbucket_review-0.1.1.tar.gz
Algorithm Hash digest
SHA256 427fddf6e09d71aa81ba581797f9368678d1f854ed2a134ed6ae71d35d8999aa
MD5 2759869179cdc21549acd69158a1cbec
BLAKE2b-256 a78ad5e4ebb2ac1e12148b1b41dfd078c5156289344e33934f5e51fb86b603be

See more details on using hashes here.

File details

Details for the file mcp_bitbucket_review-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_bitbucket_review-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c9a09a45eae4f89621e9450d4162e133adc312ab8df9d36fb41c59441a115cd5
MD5 9823cf76f25ead805c098843aeb38524
BLAKE2b-256 94b9a15dde5d76dac97fe33634ee444c2699dc628fb6d3841e000d35d5436d3a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page