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
Copy file name to clipboardExpand all lines: README.md
+113-5Lines changed: 113 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,9 @@ MCP (Model Context Protocol) server for Bitbucket Server Pull Request management
7
7
8
8
## ✨ New Features
9
9
10
+
-**🔍 Advanced Search**: Search code and files across repositories with project/repository filtering using the `search` tool
11
+
-**📄 File Operations**: Read file contents and browse repository directories with `get_file_content` and `browse_repository`
12
+
-**💬 Comment Management**: Extract and filter PR comments with `get_comments` tool
10
13
-**🔍 Project Discovery**: List all accessible Bitbucket projects with `list_projects`
11
14
-**📁 Repository Browsing**: Explore repositories across projects with `list_repositories`
12
15
-**🔧 Flexible Project Support**: Make the default project optional - specify per command or use `BITBUCKET_DEFAULT_PROJECT`
@@ -206,6 +209,85 @@ Parameters:
206
209
- See approval and review history
207
210
- Understand the full PR lifecycle
208
211
212
+
Parameters:
213
+
-`project`: Bitbucket project key (optional, uses BITBUCKET_DEFAULT_PROJECT if not provided)
214
+
-`repository` (required): Repository slug
215
+
-`prId` (required): Pull request ID
216
+
217
+
### `get_comments`
218
+
219
+
**Extract PR comments only**: Filters pull request activities to return only the comments, making it easier to focus on discussion content without reviews or other activities.
220
+
221
+
**Use cases:**
222
+
- Read PR discussion threads
223
+
- Extract feedback and questions
224
+
- Focus on comment content without noise
225
+
- Analyze conversation flow
226
+
227
+
Parameters:
228
+
-`project`: Bitbucket project key (optional, uses BITBUCKET_DEFAULT_PROJECT if not provided)
229
+
-`repository` (required): Repository slug
230
+
-`prId` (required): Pull request ID
231
+
232
+
### `search`
233
+
234
+
**Advanced code and file search**: Search across repositories using the Bitbucket search API with support for project/repository filtering and query optimization. Searches both file contents and filenames. **Note**: Search only works on the default branch of repositories.
235
+
236
+
**Use cases:**
237
+
- Find specific code patterns across projects
238
+
- Locate files by name or content
239
+
- Search within specific projects or repositories
240
+
- Filter by file extensions
241
+
242
+
Parameters:
243
+
-`query` (required): Search query string
244
+
-`project`: Bitbucket project key to limit search scope
245
+
-`repository`: Repository slug for repository-specific search
246
+
-`type`: Query optimization - "file" (wraps query in quotes for exact filename matching) or "code" (default search behavior)
247
+
-`limit`: Number of results to return (default: 25, max: 100)
248
+
-`start`: Start index for pagination (default: 0)
249
+
250
+
**Query syntax examples:**
251
+
-`"README.md"` - Find exact filename
252
+
-`config ext:yml` - Find config in YAML files
253
+
-`function project:MYPROJECT` - Search for "function" in specific project
254
+
-`bug fix repo:PROJ/my-repo` - Search in specific repository
255
+
256
+
### `get_file_content`
257
+
258
+
**Read file contents with pagination**: Retrieve the content of specific files from repositories with support for large files through pagination.
259
+
260
+
**Use cases:**
261
+
- Read source code files
262
+
- View configuration files
263
+
- Extract documentation content
264
+
- Inspect specific file versions
265
+
266
+
Parameters:
267
+
-`project`: Bitbucket project key (optional, uses BITBUCKET_DEFAULT_PROJECT if not provided)
268
+
-`repository` (required): Repository slug
269
+
-`filePath` (required): Path to the file in the repository
270
+
-`branch`: Branch or commit hash (optional, defaults to main/master)
271
+
-`limit`: Maximum lines per request (default: 100, max: 1000)
272
+
-`start`: Starting line number for pagination (default: 0)
273
+
274
+
### `browse_repository`
275
+
276
+
**Explore repository structure**: Browse files and directories in repositories to understand project organization and locate specific files.
277
+
278
+
**Use cases:**
279
+
- Explore repository structure
280
+
- Navigate directory trees
281
+
- Find files and folders
282
+
- Understand project organization
283
+
284
+
Parameters:
285
+
-`project`: Bitbucket project key (optional, uses BITBUCKET_DEFAULT_PROJECT if not provided)
286
+
-`repository` (required): Repository slug
287
+
-`path`: Directory path to browse (optional, defaults to root)
288
+
-`branch`: Branch or commit hash (optional, defaults to main/master)
0 commit comments