This Bitbucket Server MCP implementation, developed for managing pull requests in Bitbucket Server environments, provides a TypeScript-based interface for AI assistants to interact with Bitbucket Server's API. Built using the Model Context Protocol SDK, it offers tools for creating, retrieving, merging, and declining pull requests, as well as adding comments and fetching diffs. The implementation focuses on streamlining PR workflows, making it easier for AI models to assist in code review processes and PR management. It's particularly useful for development teams using Bitbucket Server who want to integrate AI assistance into their PR workflows, enabling more efficient code reviews, automated PR creation, and status updates without requiring deep knowledge of Bitbucket Server's API intricacies.
暂无评论. 成为第一个评论的人!
登录以参与讨论
Discover and explore Bitbucket projects. Lists all accessible projects with their details. Parameters: limit (optional integer, default: 25, max: 1000), start (optional integer, default: 0)
Browse and discover repositories. Explore repositories within specific projects or across all accessible projects. Parameters: project (optional string), limit (optional integer, default: 25, max: 1000), start (optional integer, default: 0)
Propose code changes for review. Creates a new pull request to submit code changes. Parameters: project (optional string), repository (required string), title (required string), description (optional string), sourceBranch (required string), targetBranch (required string), reviewers (optional array of strings)
Retrieves detailed pull request information. Parameters: project (optional string), repository (required string), prId (required integer)
Merges an approved pull request into the target branch. Parameters: project (optional string), repository (required string), prId (required integer), message (optional string), strategy (optional string: 'merge-commit', 'squash', 'fast-forward')
Declines a pull request that should not be merged. Parameters: project (optional string), repository (required string), prId (required integer), message (optional string)
Adds comments to pull requests for review feedback. Parameters: project (optional string), repository (required string), prId (required integer), text (required string), parentId (optional integer)
Retrieves the code differences in the pull request. Parameters: project (optional string), repository (required string), prId (required integer), contextLines (optional integer, default: 10), maxLinesPerFile (optional integer)
Fetches review history, approval status, and reviewer feedback. No parameters required.
Gets the complete activity timeline for a pull request. Parameters: project (optional string), repository (required string), prId (required integer)
Filters pull request activities to return only the comments. Parameters: project (optional string), repository (required string), prId (required integer)
Search across repositories using the Bitbucket search API. Parameters: query (required string), project (optional string), repository (optional string), type (optional string), limit (optional integer, default: 25, max: 100), start (optional integer, default: 0)
Retrieve the content of specific files from repositories with support for large files through pagination. Parameters: project (optional string), repository (required string), filePath (required string), branch (optional string), limit (optional integer, default: 100, max: 1000), start (optional integer, default: 0)
Browse files and directories in repositories. Parameters: project (optional string), repository (required string), path (optional string), branch (optional string), limit (optional integer, default: 50)
List branches in a repository with optional filtering. Parameters: project (optional string), repository (required string), filterText (optional string), limit (optional integer, default: 25, max: 1000), start (optional integer, default: 0)
List commits in a repository with optional branch and author filtering. Parameters: project (optional string), repository (required string), branch (optional string), author (optional string), limit (optional integer, default: 25, max: 1000), start (optional integer, default: 0)
Delete a branch from a repository. Parameters: project (optional string), repository (required string), branch (required string)
Approve a pull request as the current authenticated user. Parameters: project (optional string), repository (required string), prId (required integer)
Remove approval from a pull request. Parameters: project (optional string), repository (required string), prId (required integer)