Bitbucket Server MCP logo

Bitbucket Server MCP

by garc33

The Bitbucket Server MCP server provides tools and resources to interact with the Bitbucket Server API through the Model Context Protocol (MCP). It facilitates pull request management by offering functionalities to create, retrieve, merge, and decline pull requests, as well as add comments and fetch diffs.

View on GitHub

Last updated: N/A

What is Bitbucket Server MCP?

The Bitbucket Server MCP is a server that enables interaction with the Bitbucket Server API using the Model Context Protocol (MCP). It provides a set of tools for managing pull requests, including creating, retrieving, merging, declining, commenting, and fetching diffs.

How to use Bitbucket Server MCP?

To use the server, you can install it either via Smithery or manually using npm. After installation, configure the server in your VSCode MCP settings file, providing the necessary environment variables such as the Bitbucket Server URL and authentication credentials. Once configured, you can use the provided tools to interact with the Bitbucket Server API.

Key features of Bitbucket Server MCP

  • Create pull requests

  • Retrieve pull request details

  • Merge pull requests

  • Decline pull requests

  • Add comments to pull requests

  • Retrieve diffs for pull requests

  • Fetch pull request review history

Use cases of Bitbucket Server MCP

  • Automating pull request creation and management

  • Integrating Bitbucket Server with other tools and services

  • Streamlining code review workflows

  • Programmatically interacting with the Bitbucket Server API

FAQ from Bitbucket Server MCP

What is the Model Context Protocol (MCP)?

MCP is a protocol that allows different tools and services to communicate and share context with each other.

How do I authenticate with the Bitbucket Server API?

You can authenticate using either a personal access token or username/password credentials. Provide these credentials in the configuration file.

What environment variables are required?

The required environment variables are BITBUCKET_URL (the base URL of your Bitbucket Server instance) and either BITBUCKET_TOKEN (personal access token) or BITBUCKET_USERNAME and BITBUCKET_PASSWORD (basic authentication credentials).

Where are the logs stored?

The server logs all operations to bitbucket.log using Winston.

What is Smithery?

Smithery is a platform that simplifies the installation and management of MCP servers.