You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<ahref="https://glama.ai/mcp/servers/jskr5c1zq3"><imgwidth="380"height="200"src="https://glama.ai/mcp/servers/jskr5c1zq3/badge"alt="Bitbucket Server MCP server" /></a>
7
7
8
+
## ✨ New Features
9
+
10
+
-**🔍 Project Discovery**: List all accessible Bitbucket projects with `list_projects`
11
+
-**📁 Repository Browsing**: Explore repositories across projects with `list_repositories`
12
+
-**🔧 Flexible Project Support**: Make the default project optional - specify per command or use `BITBUCKET_DEFAULT_PROJECT`
13
+
-**📖 Enhanced Documentation**: Improved README with usage examples and better configuration guidance
The server provides the following tools for Bitbucket Server integration:
43
+
The server provides the following tools for comprehensive Bitbucket Server integration:
44
+
45
+
### `list_projects`
46
+
47
+
**Discover and explore Bitbucket projects**: Lists all accessible projects with their details. Essential for project discovery and finding the correct project keys to use in other operations.
48
+
49
+
**Use cases:**
50
+
51
+
- Find available projects when you don't know the exact project key
52
+
- Explore project structure and permissions
53
+
- Discover new projects you have access to
54
+
55
+
Parameters:
56
+
57
+
-`limit`: Number of projects to return (default: 25, max: 1000)
58
+
-`start`: Start index for pagination (default: 0)
59
+
60
+
### `list_repositories`
61
+
62
+
**Browse and discover repositories**: Explore repositories within specific projects or across all accessible projects. Returns comprehensive repository information including clone URLs and metadata.
63
+
64
+
**Use cases:**
65
+
- Find repository slugs for other operations
66
+
- Explore codebase structure across projects
67
+
- Discover repositories you have access to
68
+
- Browse a specific project's repositories
69
+
70
+
Parameters:
71
+
72
+
-`project`: Bitbucket project key (optional, uses BITBUCKET_DEFAULT_PROJECT if not provided)
73
+
-`limit`: Number of repositories to return (default: 25, max: 1000)
74
+
-`start`: Start index for pagination (default: 0)
36
75
37
76
### `create_pull_request`
38
77
39
-
Creates a new pull request.
78
+
**Propose code changes for review**: Creates a new pull request to submit code changes, request reviews, or merge feature branches. Automatically handles branch references and reviewer assignments.
79
+
80
+
**Use cases:**
81
+
- Submit feature development for review
82
+
- Propose bug fixes
83
+
- Request code integration from feature branches
84
+
- Collaborate on code changes
40
85
41
86
Parameters:
42
87
43
-
-`project`: Bitbucket project key (defaults to BITBUCKET_DEFAULT_PROJECT if set)
88
+
-`project`: Bitbucket project key (optional, uses BITBUCKET_DEFAULT_PROJECT if not provided)
44
89
-`repository` (required): Repository slug
45
-
-`title` (required): PR title
46
-
-`description`: PR description
47
-
-`sourceBranch` (required): Source branch name
48
-
-`targetBranch` (required): Target branch name
90
+
-`title` (required): Clear, descriptive PR title
91
+
-`description`: Detailed description with context (supports Markdown)
-`targetBranch` (required): Target branch for merging
49
94
-`reviewers`: Array of reviewer usernames
50
95
51
96
### `get_pull_request`
52
97
53
-
Retrieves detailed information about a specific pull request.
98
+
**Comprehensive PR information**: Retrieves detailed pull request information including status, reviewers, commits, and all metadata. Essential for understanding PR state before taking actions.
99
+
100
+
**Use cases:**
101
+
- Check PR approval status
102
+
- Review PR details and progress
103
+
- Understand changes before merging
104
+
- Monitor PR status
54
105
55
106
Parameters:
56
107
57
-
-`project`: Bitbucket project key (defaults to BITBUCKET_DEFAULT_PROJECT if set)
108
+
-`project`: Bitbucket project key (optional, uses BITBUCKET_DEFAULT_PROJECT if not provided)
58
109
-`repository` (required): Repository slug
59
110
-`prId` (required): Pull request ID
60
111
61
112
### `merge_pull_request`
62
113
63
-
Merges a pull request.
114
+
**Integrate approved changes**: Merges an approved pull request into the target branch. Supports different merge strategies based on your workflow preferences.
115
+
116
+
**Use cases:**
117
+
- Complete the code review process
118
+
- Integrate approved features
119
+
- Apply bug fixes to main branches
120
+
- Release code changes
64
121
65
122
Parameters:
66
123
67
-
-`project`: Bitbucket project key (defaults to BITBUCKET_DEFAULT_PROJECT if set)
124
+
-`project`: Bitbucket project key (optional, uses BITBUCKET_DEFAULT_PROJECT if not provided)
68
125
-`repository` (required): Repository slug
69
126
-`prId` (required): Pull request ID
70
-
-`message`: Merge commit message
71
-
-`strategy`: One of:
72
-
-`merge-commit` (default)
73
-
-`squash`
74
-
-`fast-forward`
127
+
-`message`: Custom merge commit message
128
+
-`strategy`: Merge strategy:
129
+
-`merge-commit` (default): Creates merge commit preserving history
130
+
-`squash`: Combines all commits into one
131
+
-`fast-forward`: Moves branch pointer without merge commit
75
132
76
133
### `decline_pull_request`
77
134
78
-
Declines a pull request.
135
+
**Reject unsuitable changes**: Declines a pull request that should not be merged, providing feedback to the author.
136
+
137
+
**Use cases:**
138
+
- Reject changes that don't meet standards
139
+
- Close PRs that conflict with project direction
140
+
- Request significant rework
141
+
- Prevent unwanted code integration
79
142
80
143
Parameters:
81
144
82
-
-`project`: Bitbucket project key (defaults to BITBUCKET_DEFAULT_PROJECT if set)
145
+
-`project`: Bitbucket project key (optional, uses BITBUCKET_DEFAULT_PROJECT if not provided)
83
146
-`repository` (required): Repository slug
84
147
-`prId` (required): Pull request ID
85
-
-`message`: Reason for declining
148
+
-`message`: Reason for declining (helpful for author feedback)
86
149
87
150
### `add_comment`
88
151
89
-
Adds a comment to a pull request.
152
+
**Participate in code review**: Adds comments to pull requests for review feedback, discussions, and collaboration. Supports threaded conversations.
153
+
154
+
**Use cases:**
155
+
- Provide code review feedback
156
+
- Ask questions about specific changes
157
+
- Suggest improvements
158
+
- Participate in technical discussions
159
+
- Document review decisions
90
160
91
161
Parameters:
92
162
93
-
-`project`: Bitbucket project key (defaults to BITBUCKET_DEFAULT_PROJECT if set)
163
+
-`project`: Bitbucket project key (optional, uses BITBUCKET_DEFAULT_PROJECT if not provided)
0 commit comments