Bitbucket
Summary
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.
Available Actions(14)
list_projects
Discover and explore Bitbucket projects. Lists all accessible projects with their details. Parameters: limit (number, default: 25, max: 1000), start (number, default: 0)
list_repositories
Browse and discover repositories within specific projects or across all accessible projects. Parameters: project (string, optional), limit (number, default: 25, max: 1000), start (number, default: 0)
create_pull_request
Creates a new pull request to submit code changes, request reviews, or merge feature branches. Parameters: project (string, optional), repository (string, required), title (string, required), description (string, optional), sourceBranch (string, required), targetBranch (string, required), reviewers (array of strings, optional)
get_pull_request
Retrieves detailed pull request information including status, reviewers, commits, and all metadata. Parameters: project (string, optional), repository (string, required), prId (number, required)
merge_pull_request
Merges an approved pull request into the target branch. Parameters: project (string, optional), repository (string, required), prId (number, required), message (string, optional), strategy (string, optional, default: 'merge-commit')
decline_pull_request
Declines a pull request that should not be merged, providing feedback to the author. Parameters: project (string, optional), repository (string, required), prId (number, required), message (string, optional)
add_comment
Adds comments to pull requests for review feedback, discussions, and collaboration. Parameters: project (string, optional), repository (string, required), prId (number, required), text (string, required), parentId (number, optional)
get_diff
Retrieves the code differences showing exactly what was added, removed, or modified in the pull request. Parameters: project (string, optional), repository (string, required), prId (number, required), contextLines (number, optional, default: 10)
get_reviews
Fetches review history, approval status, and reviewer feedback to understand the review state.
get_activities
Gets the complete activity timeline for a pull request including comments, reviews, commits, and other events. Parameters: project (string, optional), repository (string, required), prId (number, required)
get_comments
Filters pull request activities to return only the comments. Parameters: project (string, optional), repository (string, required), prId (number, required)
search
Search across repositories using the Bitbucket search API with support for project/repository filtering and query optimization. Parameters: query (string, required), project (string, optional), repository (string, optional), type (string, optional), limit (number, default: 25, max: 100), start (number, default: 0)
get_file_content
Retrieve the content of specific files from repositories with support for large files through pagination. Parameters: project (string, optional), repository (string, required), filePath (string, required), branch (string, optional), limit (number, default: 100, max: 1000), start (number, default: 0)
browse_repository
Browse files and directories in repositories to understand project organization and locate specific files. Parameters: project (string, optional), repository (string, required), path (string, optional), branch (string, optional), limit (number, default: 50)
コミュニティレビュー
まだレビューはありません. 最初のレビューを投稿しましょう!
会話に参加するにはサインインしてください