mcp-bitbucket-server 1.8.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/CLAUDE.md +33 -33
  2. package/dist/tools/projects/list_projects.js +1 -1
  3. package/dist/tools/projects/list_projects.js.map +1 -1
  4. package/dist/tools/pull-requests/add_pr_comment.js +2 -2
  5. package/dist/tools/pull-requests/add_pr_comment.js.map +1 -1
  6. package/dist/tools/pull-requests/add_pr_comment_reaction.js +1 -1
  7. package/dist/tools/pull-requests/add_pr_comment_reaction.js.map +1 -1
  8. package/dist/tools/pull-requests/add_pr_file_comment.js +2 -2
  9. package/dist/tools/pull-requests/add_pr_file_comment.js.map +1 -1
  10. package/dist/tools/pull-requests/add_pr_line_comment.js +2 -2
  11. package/dist/tools/pull-requests/add_pr_line_comment.js.map +1 -1
  12. package/dist/tools/pull-requests/create_pull_request.js +1 -1
  13. package/dist/tools/pull-requests/create_pull_request.js.map +1 -1
  14. package/dist/tools/pull-requests/delete_pr_comment.js +1 -1
  15. package/dist/tools/pull-requests/delete_pr_comment.js.map +1 -1
  16. package/dist/tools/pull-requests/get_inbox_pull_requests.js +1 -1
  17. package/dist/tools/pull-requests/get_inbox_pull_requests.js.map +1 -1
  18. package/dist/tools/pull-requests/get_pr_activities.js +1 -1
  19. package/dist/tools/pull-requests/get_pr_activities.js.map +1 -1
  20. package/dist/tools/pull-requests/get_pr_changes.js +2 -2
  21. package/dist/tools/pull-requests/get_pr_changes.js.map +1 -1
  22. package/dist/tools/pull-requests/get_pr_details.js +1 -1
  23. package/dist/tools/pull-requests/get_pr_details.js.map +1 -1
  24. package/dist/tools/pull-requests/get_pr_diff.js +1 -1
  25. package/dist/tools/pull-requests/get_pr_diff.js.map +1 -1
  26. package/dist/tools/pull-requests/get_pr_file_diff.js +1 -1
  27. package/dist/tools/pull-requests/get_pr_file_diff.js.map +1 -1
  28. package/dist/tools/pull-requests/remove_pr_comment_reaction.js +1 -1
  29. package/dist/tools/pull-requests/remove_pr_comment_reaction.js.map +1 -1
  30. package/dist/tools/pull-requests/update_review_status.js +1 -1
  31. package/dist/tools/pull-requests/update_review_status.js.map +1 -1
  32. package/dist/tools/repositories/list_repositories.js +1 -1
  33. package/dist/tools/repositories/list_repositories.js.map +1 -1
  34. package/dist/tools/users/get_all_users.js +1 -1
  35. package/dist/tools/users/get_all_users.js.map +1 -1
  36. package/dist/tools/users/get_user_profile.js +1 -1
  37. package/dist/tools/users/get_user_profile.js.map +1 -1
  38. package/package.json +1 -1
package/CLAUDE.md CHANGED
@@ -128,7 +128,7 @@ const schema = z.object({
128
128
 
129
129
  export const toolNameTool = (server: McpServer) => {
130
130
  server.registerTool(
131
- "bitbucket_tool_name",
131
+ "tool_name",
132
132
  {
133
133
  title: "Human Readable Title",
134
134
  description: "Clear description of what this tool does",
@@ -202,7 +202,7 @@ The linter will auto-fix formatting, catch unused variables, and ensure code qua
202
202
  // ✅ Good - simple and direct using the library
203
203
  export const getUserProfileTool = (server: McpServer) => {
204
204
  server.registerTool(
205
- "bitbucket_get_user_profile",
205
+ "get_user_profile",
206
206
  {
207
207
  title: "Get Bitbucket User Profile",
208
208
  description: "Gets Bitbucket Server user profile details by username",
@@ -238,19 +238,19 @@ export const getUserProfileTool = (server: McpServer) => {
238
238
 
239
239
  ## Current Tools
240
240
 
241
- ### bitbucket_get_user_profile
241
+ ### get_user_profile
242
242
  **File**: `src/tools/users/get_user_profile.ts`
243
243
  **Endpoint**: `GET /users/{username}`
244
244
  **Parameters**:
245
245
  - `username` (required): The username/slug of the Bitbucket Server user
246
246
 
247
- ### bitbucket_get_all_users
247
+ ### get_all_users
248
248
  **File**: `src/tools/users/get_all_users.ts`
249
249
  **Endpoint**: `GET /users`
250
250
  **Parameters**:
251
251
  - `filter` (optional): Filter users by username, name or email (partial match)
252
252
 
253
- ### bitbucket_list_projects
253
+ ### list_projects
254
254
  **File**: `src/tools/projects/list_projects.ts`
255
255
  **Endpoint**: `GET /projects`
256
256
  **Parameters**:
@@ -263,7 +263,7 @@ export const getUserProfileTool = (server: McpServer) => {
263
263
 
264
264
  **Purpose**: Discover available projects that the authenticated user has access to. Use the project key from this response to list repositories in specific projects.
265
265
 
266
- ### bitbucket_list_repositories
266
+ ### list_repositories
267
267
  **File**: `src/tools/repositories/list_repositories.ts`
268
268
  **Endpoint**: `GET /projects/{projectKey}/repos`
269
269
  **Parameters**:
@@ -271,7 +271,7 @@ export const getUserProfileTool = (server: McpServer) => {
271
271
 
272
272
  **Note**: According to Swagger, this endpoint does NOT support `name` or `permission` query parameters. Only pagination (`start`, `limit`) is supported.
273
273
 
274
- ### bitbucket_get_inbox_pull_requests
274
+ ### get_inbox_pull_requests
275
275
  **File**: `src/tools/pull-requests/get_inbox_pull_requests.ts`
276
276
  **Endpoint**: `GET /inbox/pull-requests`
277
277
  **Parameters**:
@@ -297,7 +297,7 @@ export const getUserProfileTool = (server: McpServer) => {
297
297
 
298
298
  **Purpose**: Discover all PRs across all projects and repositories that need your review in one call. Much more efficient than querying project by project. Use the `id`, `projectKey`, and `repositorySlug` from the response to review specific PRs with other tools.
299
299
 
300
- ### bitbucket_create_pull_request
300
+ ### create_pull_request
301
301
  **File**: `src/tools/pull-requests/create_pull_request.ts`
302
302
  **Endpoint**: `POST /projects/{projectKey}/repos/{repositorySlug}/pull-requests`
303
303
  **Parameters**:
@@ -319,7 +319,7 @@ export const getUserProfileTool = (server: McpServer) => {
319
319
  - 404: Repository or branches don't exist
320
320
  - 409: Branches are the same, PR already exists, or target repo is archived
321
321
 
322
- ### bitbucket_get_pull_request
322
+ ### get_pull_request
323
323
  **File**: `src/tools/pull-requests/get_pr_details.ts`
324
324
  **Endpoint**: `GET /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}`
325
325
  **Parameters**:
@@ -339,7 +339,7 @@ export const getUserProfileTool = (server: McpServer) => {
339
339
 
340
340
  **Purpose**: Get comprehensive metadata for a pull request. Use this when you need full PR details including source/destination branches, author information, and reviewers. Essential for tools that need to understand PR context before performing operations.
341
341
 
342
- ### bitbucket_get_pull_request_diff
342
+ ### get_pull_request_diff
343
343
  **File**: `src/tools/pull-requests/get_pr_diff.ts`
344
344
  **Endpoint**: `GET /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/diff/{path}`
345
345
  **Parameters**:
@@ -359,7 +359,7 @@ export const getUserProfileTool = (server: McpServer) => {
359
359
 
360
360
  **Purpose**: Get the complete diff for a PR in one call (when `path` is omitted) or for a specific file. The format parameter controls the response type based on the Accept header. Use `format='text'` (default) for raw text suitable for parsing or display - the background-greg service uses this for generating PR review contexts. Use `format='json'` when you need structured data with exact line numbers and segments.
361
361
 
362
- ### bitbucket_add_pr_comment
362
+ ### add_pr_comment
363
363
  **File**: `src/tools/pull-requests/add_pr_comment.ts`
364
364
  **Endpoint**: `POST /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments`
365
365
  **Parameters**:
@@ -373,7 +373,7 @@ export const getUserProfileTool = (server: McpServer) => {
373
373
 
374
374
  **Returns**: Simple success message with comment ID.
375
375
 
376
- ### bitbucket_add_pr_file_comment
376
+ ### add_pr_file_comment
377
377
  **File**: `src/tools/pull-requests/add_pr_file_comment.ts`
378
378
  **Endpoint**: `POST /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments`
379
379
  **Parameters**:
@@ -383,11 +383,11 @@ export const getUserProfileTool = (server: McpServer) => {
383
383
  - `text` (required): The comment text
384
384
  - `path` (required): File path to attach the comment to (e.g., "src/main.ts")
385
385
 
386
- **Purpose**: Add a comment attached to a specific file in the PR (file-level comment, not line-specific). The comment will appear at the file level in the PR diff view. For replies to existing comments, use bitbucket_add_pr_comment with parentId.
386
+ **Purpose**: Add a comment attached to a specific file in the PR (file-level comment, not line-specific). The comment will appear at the file level in the PR diff view. For replies to existing comments, use add_pr_comment with parentId.
387
387
 
388
388
  **Returns**: Simple success message with comment ID.
389
389
 
390
- ### bitbucket_add_pr_line_comment
390
+ ### add_pr_line_comment
391
391
  **File**: `src/tools/pull-requests/add_pr_line_comment.ts`
392
392
  **Endpoint**: `POST /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments`
393
393
  **Parameters**:
@@ -400,11 +400,11 @@ export const getUserProfileTool = (server: McpServer) => {
400
400
  - `lineType` (required): Type of line - "ADDED" (green +), "REMOVED" (red -), or "CONTEXT" (unchanged)
401
401
  - `fileType` (required): Side of diff - "FROM" (source/old) or "TO" (destination/new)
402
402
 
403
- **Purpose**: Add an inline comment to a specific line in the PR diff. Use line numbers from `bitbucket_get_pull_request_file_diff` (destination line for TO side, source line for FROM side). Match the `lineType` to the segment type from the diff. For replies to existing comments, use bitbucket_add_pr_comment with parentId.
403
+ **Purpose**: Add an inline comment to a specific line in the PR diff. Use line numbers from `get_pull_request_file_diff` (destination line for TO side, source line for FROM side). Match the `lineType` to the segment type from the diff. For replies to existing comments, use add_pr_comment with parentId.
404
404
 
405
405
  **Returns**: Simple success message with comment ID.
406
406
 
407
- ### bitbucket_get_pull_request_changes
407
+ ### get_pull_request_changes
408
408
  **File**: `src/tools/pull-requests/get_pr_changes.ts`
409
409
  **Endpoint**: `GET /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/changes`
410
410
  **Parameters**:
@@ -417,7 +417,7 @@ export const getUserProfileTool = (server: McpServer) => {
417
417
 
418
418
  **Purpose**: Get an overview of all files changed in a PR. Use this as the first step before fetching detailed diffs. Always returns all changes with comment counts included.
419
419
 
420
- ### bitbucket_get_pull_request_file_diff
420
+ ### get_pull_request_file_diff
421
421
  **File**: `src/tools/pull-requests/get_pr_file_diff.ts`
422
422
  **Endpoint**: `GET /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/diff/{path}`
423
423
  **Parameters**:
@@ -429,9 +429,9 @@ export const getUserProfileTool = (server: McpServer) => {
429
429
 
430
430
  **Returns**: Structured JSON with hunks, segments, and exact line numbers for each change. Each line includes `source` (FROM line number) and `destination` (TO line number) fields. Existing comments are embedded in the diff. Whitespace changes are always included.
431
431
 
432
- **Purpose**: Get line-by-line diff data for commenting on specific lines. Use the line numbers from this response when calling `bitbucket_add_pr_comment`.
432
+ **Purpose**: Get line-by-line diff data for commenting on specific lines. Use the line numbers from this response when calling `add_pr_comment`.
433
433
 
434
- ### bitbucket_get_pull_request_activities
434
+ ### get_pull_request_activities
435
435
  **File**: `src/tools/pull-requests/get_pr_activities.ts`
436
436
  **Endpoint**: `GET /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/activities`
437
437
  **Parameters**:
@@ -466,14 +466,14 @@ export const getUserProfileTool = (server: McpServer) => {
466
466
  - Get all activity: Omit `activityTypes` parameter
467
467
 
468
468
  **Token Optimization**: Response is automatically optimized to reduce token usage by ~50%:
469
- - Removes `diff` field (use `commentAnchor.path` with `bitbucket_get_pull_request_file_diff` to fetch code context on demand)
469
+ - Removes `diff` field (use `commentAnchor.path` with `get_pull_request_file_diff` to fetch code context on demand)
470
470
  - Removes `user.links` from all user objects
471
471
  - Removes `comment.permittedOperations`
472
472
  - Simplifies `reactions` and `likedBy` to counts only
473
473
 
474
474
  **Purpose**: Get an overview of PR activity. Can filter to specific types (e.g., only comments) to reduce response size. Each comment activity includes full comment text, author, and creation date. For inline comments, use `commentAnchor` (path, line, lineType, fileType) to fetch the relevant diff separately.
475
475
 
476
- ### bitbucket_update_review_status
476
+ ### update_review_status
477
477
  **File**: `src/tools/pull-requests/update_review_status.ts`
478
478
  **Endpoint**: `PUT /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/participants/{userSlug}`
479
479
  **Parameters**:
@@ -496,7 +496,7 @@ export const getUserProfileTool = (server: McpServer) => {
496
496
 
497
497
  **Note**: The tool makes a lightweight request to `/application-properties` to extract the authenticated username from the `X-AUSERNAME` response header, eliminating the need for users to provide their own slug.
498
498
 
499
- ### bitbucket_delete_pr_comment
499
+ ### delete_pr_comment
500
500
  **File**: `src/tools/pull-requests/delete_pr_comment.ts`
501
501
  **Endpoint**: `DELETE /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments/{commentId}`
502
502
  **Parameters**:
@@ -515,7 +515,7 @@ export const getUserProfileTool = (server: McpServer) => {
515
515
  - Others' comments: Requires REPO_ADMIN permission
516
516
  - Comments with replies: Cannot be deleted (will return error)
517
517
 
518
- ### bitbucket_add_pr_comment_reaction
518
+ ### add_pr_comment_reaction
519
519
  **File**: `src/tools/pull-requests/add_pr_comment_reaction.ts`
520
520
  **Endpoint**: `PUT /comment-likes/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments/{commentId}/reactions/{emoticon}`
521
521
  **Parameters**:
@@ -538,7 +538,7 @@ export const getUserProfileTool = (server: McpServer) => {
538
538
 
539
539
  **Note**: Uses the Bitbucket Server comment-likes plugin API (`/rest/comment-likes/latest/`), not the core API.
540
540
 
541
- ### bitbucket_remove_pr_comment_reaction
541
+ ### remove_pr_comment_reaction
542
542
  **File**: `src/tools/pull-requests/remove_pr_comment_reaction.ts`
543
543
  **Endpoint**: `DELETE /comment-likes/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments/{commentId}/reactions/{emoticon}`
544
544
  **Parameters**:
@@ -552,7 +552,7 @@ export const getUserProfileTool = (server: McpServer) => {
552
552
 
553
553
  **Purpose**: Remove an emoticon reaction from a pull request comment. Only the user who added the reaction can remove it. If the reaction doesn't exist, the operation still succeeds (idempotent).
554
554
 
555
- **Supported Emoticons**: Same as `bitbucket_add_pr_comment_reaction`
555
+ **Supported Emoticons**: Same as `add_pr_comment_reaction`
556
556
 
557
557
  **Note**: Uses the Bitbucket Server comment-likes plugin API (`/rest/comment-likes/latest/`), not the core API.
558
558
 
@@ -562,7 +562,7 @@ For agents reviewing PRs and leaving comments on specific lines:
562
562
 
563
563
  0. **Discover PRs to review**:
564
564
  ```
565
- bitbucket_get_inbox_pull_requests()
565
+ get_inbox_pull_requests()
566
566
  → Returns PRs across all projects: [{id, title, description, state, author, projectKey, repositorySlug, ...}, ...]
567
567
  ```
568
568
  Use `id`, `projectKey`, and `repositorySlug` from each PR for the following steps.
@@ -570,10 +570,10 @@ For agents reviewing PRs and leaving comments on specific lines:
570
570
  1. **[Optional] Get activity overview or comments**:
571
571
  ```
572
572
  # Get all activity
573
- bitbucket_get_pull_request_activities(projectKey, repositorySlug, pullRequestId)
573
+ get_pull_request_activities(projectKey, repositorySlug, pullRequestId)
574
574
 
575
575
  # Or get only comments (smaller response)
576
- bitbucket_get_pull_request_activities(projectKey, repositorySlug, pullRequestId,
576
+ get_pull_request_activities(projectKey, repositorySlug, pullRequestId,
577
577
  activityTypes=["COMMENTED", "REVIEW_COMMENTED"])
578
578
  → Returns filtered activities: [{action: "COMMENTED", comment: {text, author, ...}, ...}, ...]
579
579
  ```
@@ -581,19 +581,19 @@ For agents reviewing PRs and leaving comments on specific lines:
581
581
 
582
582
  2. **Get all changed files**:
583
583
  ```
584
- bitbucket_get_pull_request_changes(projectKey, repositorySlug, pullRequestId)
584
+ get_pull_request_changes(projectKey, repositorySlug, pullRequestId)
585
585
  → Returns list of files: [{path, type: "MODIFY", ...}, ...]
586
586
  ```
587
587
 
588
588
  3. **For each file of interest, get structured diff**:
589
589
  ```
590
- bitbucket_get_pull_request_file_diff(projectKey, repositorySlug, pullRequestId, path="src/main.ts")
590
+ get_pull_request_file_diff(projectKey, repositorySlug, pullRequestId, path="src/main.ts")
591
591
  → Returns: {hunks: [{segments: [{type: "ADDED", lines: [{source: 42, destination: 43, line: "code"}]}]}]}
592
592
  ```
593
593
 
594
594
  4. **Comment on specific lines**:
595
595
  ```
596
- bitbucket_add_pr_line_comment(
596
+ add_pr_line_comment(
597
597
  projectKey, repositorySlug, pullRequestId,
598
598
  text="Consider using const here",
599
599
  path="src/main.ts",
@@ -606,13 +606,13 @@ For agents reviewing PRs and leaving comments on specific lines:
606
606
  5. **Update review status**:
607
607
  ```
608
608
  # Approve the PR
609
- bitbucket_update_review_status(
609
+ update_review_status(
610
610
  projectKey, repositorySlug, pullRequestId,
611
611
  status="APPROVED"
612
612
  )
613
613
 
614
614
  # Or request changes
615
- bitbucket_update_review_status(
615
+ update_review_status(
616
616
  projectKey, repositorySlug, pullRequestId,
617
617
  status="NEEDS_WORK"
618
618
  )
@@ -7,7 +7,7 @@ const schema = z.object({
7
7
  limit: z.number().optional().describe('Maximum number of projects to return (default: 25)'),
8
8
  });
9
9
  export const listProjectsTool = (server) => {
10
- server.registerTool('bitbucket_list_projects', {
10
+ server.registerTool('list_projects', {
11
11
  title: 'List Projects',
12
12
  description: 'Retrieve a page of projects. Only projects for which the authenticated user has PROJECT_VIEW permission will be returned. Can filter by name or permission level.',
13
13
  inputSchema: schema.shape,
@@ -1 +1 @@
1
- {"version":3,"file":"list_projects.js","sourceRoot":"","sources":["../../../src/tools/projects/list_projects.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,yCAAyC,CAAC;IAC/E,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,yEAAyE,CAAC;IACrH,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4CAA4C,CAAC;IACnF,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,oDAAoD,CAAC;CAC5F,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,MAAiB,EAAE,EAAE;IACpD,MAAM,CAAC,YAAY,CACjB,yBAAyB,EAC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Ae,EACf;QACE,KAAK,EAAE,eAAe;QACtB,WAAW,EACT,mKAAmK;QACrK,WAAW,EAAE,MAAM,CAAC,KAAK;KAC1B,EACD,KAAK,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE;QAC3C,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;QAEvF,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;iBACtC;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
@@ -8,9 +8,9 @@ const schema = z.object({
8
8
  parentId: z.number().optional().describe('Parent comment ID to reply to an existing comment'),
9
9
  });
10
10
  export const addPrCommentTool = (server) => {
11
- server.registerTool('bitbucket_add_pr_comment', {
11
+ server.registerTool('add_pr_comment', {
12
12
  title: 'Add General Pull Request Comment',
13
- description: 'Add a general comment to a pull request (not attached to any specific file or line). Use parentId to reply to an existing comment. For file or line-specific comments, use bitbucket_add_pr_file_comment or bitbucket_add_pr_line_comment instead.',
13
+ description: 'Add a general comment to a pull request (not attached to any specific file or line). Use parentId to reply to an existing comment. For file or line-specific comments, use add_pr_file_comment or add_pr_line_comment instead.',
14
14
  inputSchema: schema.shape,
15
15
  }, async ({ projectKey, repositorySlug, pullRequestId, text, parentId }) => {
16
16
  const result = await bitbucketService.addPullRequestComment({
@@ -1 +1 @@
1
- {"version":3,"file":"add_pr_comment.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/add_pr_comment.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,MAAM,M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E,MAAM;oBACZ,IAAI,EAAE,OAAO;iBACd;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
@@ -10,7 +10,7 @@ const schema = z.object({
10
10
  .describe('The emoticon to add (thumbsup, thumbsdown, heart, thinking_face, laughing)'),
11
11
  });
12
12
  export const addPrCommentReactionTool = (server) => {
13
- server.registerTool('bitbucket_add_pr_comment_reaction', {
13
+ server.registerTool('add_pr_comment_reaction', {
14
14
  title: 'Add Emoticon Reaction to PR Comment',
15
15
  description: 'Add an emoticon reaction to a pull request comment. Supported emoticons: thumbsup, thumbsdown, heart, thinking_face, laughing. The operation is idempotent - adding the same reaction twice will succeed.',
16
16
  inputSchema: schema.shape,
@@ -1 +1 @@
1
- {"version":3,"file":"add_pr_comment_reaction.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/add_pr_comment_reaction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IAC5D,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IAC1D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IACzD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IAChD,QAAQ,EAAE,CAAC;SACR,IAAI,CAAC,CAAC,UAAU,EAAE,YAAY,EAAE,OAAO,EAAE,eAAe,EAAE,UAAU,CAAC,CAAC;SACtE,QAAQ,CAAC,4EAA4E,CAAC;CAC1F,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,MAAiB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EAAE,YAAY,EAAE,OAAO,EAAE,eAAe,EAAE,UAAU,CAAC,CAAC;SACtE,QAAQ,CAAC,4EAA4E,CAAC;CAC1F,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,MAAiB,EAAE,EAAE;IAC5D,MAAM,CAAC,YAAY,CACjB,yBAAyB,EACzB;QACE,KAAK,EAAE,qCAAqC;QAC5C,WAAW,EACT,2MAA2M;QAC7M,WAAW,EAAE,MAAM,CAAC,KAAK;KAC1B,EACD,KAAK,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC3E,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,6BAA6B,CAAC;YAClE,UAAU;YACV,cAAc;YACd,aAAa;YACb,SAAS;YACT,QAAQ;SACT,CAAC,CAAC;QAEH,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,aAAa,MAAM,CAAC,QAAQ,CAAC,QAAQ,mCAAmC,SAAS,OAAO,MAAM,CAAC,IAAI,CAAC,WAAW,GAAG;iBACzH;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
@@ -8,9 +8,9 @@ const schema = z.object({
8
8
  path: z.string().describe('File path to attach the comment to (e.g., "src/main.ts")'),
9
9
  });
10
10
  export const addPrFileCommentTool = (server) => {
11
- server.registerTool('bitbucket_add_pr_file_comment', {
11
+ server.registerTool('add_pr_file_comment', {
12
12
  title: 'Add File-Level Pull Request Comment',
13
- description: 'Add a comment attached to a specific file in a pull request (not to a specific line). The comment will appear at the file level in the PR diff view. To reply to an existing comment (including file/line comments), use bitbucket_add_pr_comment instead.',
13
+ description: 'Add a comment attached to a specific file in a pull request (not to a specific line). The comment will appear at the file level in the PR diff view. To reply to an existing comment (including file/line comments), use add_pr_comment instead.',
14
14
  inputSchema: schema.shape,
15
15
  }, async ({ projectKey, repositorySlug, pullRequestId, text, path }) => {
16
16
  const result = await bitbucketService.addPullRequestComment({
@@ -1 +1 @@
1
- {"version":3,"file":"add_pr_file_comment.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/add_pr_file_comment.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IAC5D,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IAC1D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IACzD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC;IAC7C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,0DAA0D,CAAC;CACtF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,MAAiB,EAAE,EAAE;IACxD,MAAM,CAAC,YAAY,CACjB,+BAA+B,EAC/B;QACE,KAAK,EAAE,qCAAqC;QAC5C,WAAW,EACT,4PAA4P;QAC9P,WAAW,EAAE,MAAM,CAAC,KAAK;KAC1B,EACD,KAAK,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE;QAClE,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,qBAAqB,CAAC;YAC1D,UAAU;YACV,cAAc;YACd,aAAa;YACb,IAAI;YACJ,IAAI;SACL,CAAC,CAAC;QAEH,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,g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oBACZ,IAAI,EAAE,gDAAgD,MAAM,CAAC,EAAE,EAAE;iBAClE;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
@@ -13,9 +13,9 @@ const schema = z.object({
13
13
  fileType: z.enum(['FROM', 'TO']).describe('Side of diff: FROM (source/old) or TO (destination/new)'),
14
14
  });
15
15
  export const addPrLineCommentTool = (server) => {
16
- server.registerTool('bitbucket_add_pr_line_comment', {
16
+ server.registerTool('add_pr_line_comment', {
17
17
  title: 'Add Line-Level Pull Request Comment',
18
- description: 'Add an inline comment to a specific line in a pull request. Use the line numbers from bitbucket_get_pull_request_file_diff (destination line for TO side, source line for FROM side). Match the lineType to the segment type from the diff (ADDED/REMOVED/CONTEXT). To reply to an existing comment (including file/line comments), use bitbucket_add_pr_comment instead.',
18
+ description: 'Add an inline comment to a specific line in a pull request. Use the line numbers from get_pull_request_file_diff (destination line for TO side, source line for FROM side). Match the lineType to the segment type from the diff (ADDED/REMOVED/CONTEXT). To reply to an existing comment (including file/line comments), use add_pr_comment instead.',
19
19
  inputSchema: schema.shape,
20
20
  }, async ({ projectKey, repositorySlug, pullRequestId, text, path, line, lineType, fileType }) => {
21
21
  const result = await bitbucketService.addPullRequestComment({
@@ -1 +1 @@
1
- {"version":3,"file":"add_pr_line_comment.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/add_pr_line_comment.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IAC5D,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IAC1D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAA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AAE,QAAQ,EAAE,EAAE,EAAE;QAC5F,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,qBAAqB,CAAC;YAC1D,UAAU;YACV,cAAc;YACd,aAAa;YACb,IAAI;YACJ,IAAI;YACJ,IAAI;YACJ,QAAQ;YACR,QAAQ;SACT,CAAC,CAAC;QAEH,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,gDAAgD,MAAM,CAAC,EAAE,EAAE;iBAClE;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
@@ -10,7 +10,7 @@ const schema = z.object({
10
10
  reviewers: z.array(z.string()).optional().describe('Array of reviewer usernames to add'),
11
11
  });
12
12
  export const createPullRequestTool = (server) => {
13
- server.registerTool('bitbucket_create_pull_request', {
13
+ server.registerTool('create_pull_request', {
14
14
  title: 'Create Pull Request',
15
15
  description: 'Create a new pull request from a source branch to a target branch. Accepts simple branch names (e.g., "feature-x", "main") - they are automatically converted to full refs. Returns the created PR details including ID, title, state, and web URL.',
16
16
  inputSchema: schema.shape,
@@ -1 +1 @@
1
- {"version":3,"file":"create_pull_request.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/create_pull_request.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IAC5D,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IAC1D,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,wCAAwC,CAAC;IACzE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;IAClE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC;IACtC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;IAChF,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;CACzF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,MAAiB,EAAE,EAAE;IACzD,MAAM,CAAC,YAAY,CACjB,+BAA+B,EAC/B;QACE,KAAK,EAAE,qBAAqB;QAC5B,WAAW,EACT,qPAAqP;QACvP,WAAW,EAAE,MAAM,CAAC,KAAK;KAC1B,EACD,KAAK,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,EAAE;QAC5F,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,iBAAiB,CAAC;YACtD,UAAU;YACV,cAAc;YACd,KAAK;YACL,WAAW;YACX,UAAU;YACV,QAAQ;YACR,SAAS;SACV,CAAC,CAAC;QAEH,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;iBACtC;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"create_pull_request.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/create_pull_request.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,MAAM,MAAM,GAAG,CAAC,C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I,EAAE,CAAC,CAAC;iBACtC;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
@@ -8,7 +8,7 @@ const schema = z.object({
8
8
  version: z.number().describe('The expected version of the comment (get from comment object)'),
9
9
  });
10
10
  export const deletePrCommentTool = (server) => {
11
- server.registerTool('bitbucket_delete_pr_comment', {
11
+ server.registerTool('delete_pr_comment', {
12
12
  title: 'Delete Pull Request Comment',
13
13
  description: 'Delete a pull request comment. You can delete your own comments. Only REPO_ADMIN users can delete comments created by others. Comments with replies cannot be deleted. You must provide the comment version to prevent concurrent modification conflicts - get the version from the comment object.',
14
14
  inputSchema: schema.shape,
@@ -1 +1 @@
1
- {"version":3,"file":"delete_pr_comment.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/delete_pr_comment.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IAC5D,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IAC1D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IACzD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;IACjE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,+DAA+D,CAAC;CAC9F,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,MAAiB,EAAE,EAAE;IACvD,MAAM,CAAC,YAAY,CACjB,6BAA6B,EAC7B;QACE,KAAK,EAAE,6BAA6B;QACpC,WAAW,EACT,qSAAqS;QAC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E,MAAM,CAAC,KAAK;KAC1B,EACD,KAAK,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE;QAC1E,MAAM,gBAAgB,CAAC,wBAAwB,CAAC;YAC9C,UAAU;YACV,cAAc;YACd,aAAa;YACb,SAAS;YACT,OAAO;SACR,CAAC,CAAC;QAEH,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,WAAW,SAAS,wBAAwB;iBACnD;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
@@ -5,7 +5,7 @@ const schema = z.object({
5
5
  limit: z.number().optional().describe('Maximum number of pull requests to return (default: 25)'),
6
6
  });
7
7
  export const getInboxPullRequestsTool = (server) => {
8
- server.registerTool('bitbucket_get_inbox_pull_requests', {
8
+ server.registerTool('get_inbox_pull_requests', {
9
9
  title: 'Get Inbox Pull Requests',
10
10
  description: "Returns pull requests in the authenticated user's inbox where they are assigned as a reviewer. Returns PRs across all projects and repositories in one call. Each PR includes only essential review information: id, title, description, state, author name, projectKey, and repositorySlug - everything needed to review the PR using other tools. Response is heavily optimized to reduce token usage by ~92%.",
11
11
  inputSchema: schema.shape,
@@ -1 +1 @@
1
- {"version":3,"file":"get_inbox_pull_requests.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/get_inbox_pull_requests.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAG/D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4CAA4C,CAAC;IACnF,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,yD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CAAC;gBACjC,EAAE,EAAE,EAAE,CAAC,EAAE;gBACT,KAAK,EAAE,EAAE,CAAC,KAAK;gBACf,WAAW,EAAE,EAAE,CAAC,WAAW;gBAC3B,KAAK,EAAE,EAAE,CAAC,KAAK;gBACf,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW;gBAClC,UAAU,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG;gBAC3C,cAAc,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI;gBACxC,WAAW,EAAE,EAAE,CAAC,WAAW;gBAC3B,WAAW,EAAE,EAAE,CAAC,WAAW;aAC5B,CAAC,CAAC;SACJ,CAAC;QAEF,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;iBACvC;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
@@ -31,7 +31,7 @@ const schema = z.object({
31
31
  limit: z.number().optional().describe('Maximum number of items to return (default: 25)'),
32
32
  });
33
33
  export const getPrActivitiesTool = (server) => {
34
- server.registerTool('bitbucket_get_pull_request_activities', {
34
+ server.registerTool('get_pull_request_activities', {
35
35
  title: 'Get Pull Request Activities',
36
36
  description: "Gets activity on a pull request including comments, approvals, merges, reviews, and updates. Can optionally filter by activity types (e.g., only comments). Returns a paginated list with action types like COMMENTED, APPROVED, DECLINED, MERGED, REVIEWED, etc. Use activityTypes parameter to filter: e.g., ['COMMENTED', 'REVIEW_COMMENTED'] for only comments. Response is optimized for token usage - use commentAnchor.path with get_pr_file_diff to fetch code context when needed.",
37
37
  inputSchema: schema.shape,
@@ -1 +1 @@
1
- {"version":3,"file":"get_pr_activities.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/get_pr_activities.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE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aAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;YACpG,YAAY,GAAG;gBACb,GAAG,QAAQ;gBACX,MAAM,EAAE,cAAc;gBACtB,IAAI,EAAE,cAAc,CAAC,MAAM;aAC5B,CAAC;QACJ,CAAC;QAED,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;iBAC5C;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"get_pr_activities.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/get_pr_activities.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAQ/D,sDAAsD;AACtD,MAAM,YAAY,GAAG,CAAC,CAAC,IAAI,CAAC;IAC1B,UAAU;IACV,sBAAsB;IACtB,sBAAsB;IACtB,WAAW;IACX,UAAU;IACV,SAAS;IACT,QAAQ;IACR,QAAQ;IACR,UAAU;IACV,UAAU;IACV,kBAAkB;IAClB,kBAAkB;IAClB,iBAAiB;IACjB,UAAU;IACV,YAAY;IACZ,SAAS;CACV,CAAC,CAAC;AAEH,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IAC5D,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IAC1D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IACzD,aAAa,EAAE,CAAC;SACb,KAAK,CAAC,YAAY,CAAC;SACnB,QAAQ,EAAE;SACV,QAAQ,CACP,0IAA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;gBACpB,GAAG,IAAI;gBACP,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC;gBACnC,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,qBAAqB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;aAChF,CAAC;YAEF,OAAO,aAAa,CAAC;QACvB,CAAC,CAAC,CAAC;QAEH,wCAAwC;QACxC,IAAI,YAAY,GAAgC;YAC9C,GAAG,QAAQ;YACX,MAAM,EAAE,cAAc;SACvB,CAAC;QAEF,IAAI,aAAa,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC9C,MAAM,cAAc,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,aAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;YACpG,YAAY,GAAG;gBACb,GAAG,QAAQ;gBACX,MAAM,EAAE,cAAc;gBACtB,IAAI,EAAE,cAAc,CAAC,MAAM;aAC5B,CAAC;QACJ,CAAC;QAED,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;iBAC5C;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
@@ -7,9 +7,9 @@ const schema = z.object({
7
7
  limit: z.number().optional().describe('Number of items to return (default: 25, note: endpoint is not paged)'),
8
8
  });
9
9
  export const getPrChangesTool = (server) => {
10
- server.registerTool('bitbucket_get_pull_request_changes', {
10
+ server.registerTool('get_pull_request_changes', {
11
11
  title: 'Get Pull Request Changes',
12
- description: 'Gets a list of all changed files in a pull request with file-level metadata (file paths, change types like ADD/MODIFY/DELETE, content IDs). This is useful for getting an overview of what files changed. For line-by-line diff data, use bitbucket_get_pull_request_file_diff.',
12
+ description: 'Gets a list of all changed files in a pull request with file-level metadata (file paths, change types like ADD/MODIFY/DELETE, content IDs). This is useful for getting an overview of what files changed. For line-by-line diff data, use get_pull_request_file_diff.',
13
13
  inputSchema: schema.shape,
14
14
  }, async ({ projectKey, repositorySlug, pullRequestId, limit }) => {
15
15
  const result = await bitbucketService.getPullRequestChanges({
@@ -1 +1 @@
1
- {"version":3,"file":"get_pr_changes.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/get_pr_changes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IAC5D,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IAC1D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IACzD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,sEAAsE,CAAC;CAC9G,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,MAAiB,EAAE,EAAE;IACpD,MAAM,CAAC,YAAY,CACjB,oCAAoC,EACpC;QACE,KAAK,EAAE,0BAA0B;QACjC,WAAW,EACT,iRAAiR;QACnR,WAAW,EAAE,MAAM,CAAC,KAAK;KAC1B,EACD,KAAK,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,EAAE,KAAK,EAAE,EAAE,EAAE;QAC7D,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,qBAAqB,CAAC;YAC1D,UAAU;YACV,cAAc;YACd,aAAa;YACb,KAAK;SACN,CAAC,CAAC;QAEH,OAAO;YACL,OAAO,E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;oBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;iBACtC;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
@@ -6,7 +6,7 @@ const schema = z.object({
6
6
  pullRequestId: z.number().describe('The pull request ID'),
7
7
  });
8
8
  export const getPullRequestDetailsTool = (server) => {
9
- server.registerTool('bitbucket_get_pull_request', {
9
+ server.registerTool('get_pull_request', {
10
10
  title: 'Get Pull Request Details',
11
11
  description: 'Retrieve full details for a pull request including title, description, author, state, source branch (fromRef), destination branch (toRef), created/updated dates, reviewers, and participants. Use this to get comprehensive PR metadata.',
12
12
  inputSchema: schema.shape,
@@ -1 +1 @@
1
- {"version":3,"file":"get_pr_details.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/get_pr_details.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IAC5D,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IAC1D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;CAC1D,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,MAAiB,EAAE,EAAE;IAC7D,MAAM,CAAC,YAAY,CACjB,4BAA4B,EAC5B;QACE,KAAK,EAAE,0BAA0B;QACjC,WAAW,EACT,2OAA2O;QAC7O,WAAW,EAAE,MAAM,CAAC,KAAK;KAC1B,EACD,KAAK,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,EAAE,EAAE,EAAE;QACtD,MA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ACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;iBACtC;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
@@ -15,7 +15,7 @@ const schema = z.object({
15
15
  .describe('Response format: "text" for raw diff, "json" for structured (default: text)'),
16
16
  });
17
17
  export const getPullRequestDiffTool = (server) => {
18
- server.registerTool('bitbucket_get_pull_request_diff', {
18
+ server.registerTool('get_pull_request_diff', {
19
19
  title: 'Get Pull Request Diff',
20
20
  description: 'Retrieve diff for a pull request. Omit the path parameter to get the full PR diff, or specify a file path to get diff for a specific file. Use format="text" (default) for raw unified diff format, or format="json" for structured diff with hunks and segments. Use contextLines to control how many unchanged lines are shown around changes. Use sinceId and untilId to get diff between specific commits (useful for reviewing incremental changes).',
21
21
  inputSchema: schema.shape,
@@ -1 +1 @@
1
- {"version":3,"file":"get_pr_diff.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/get_pr_diff.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IAC5D,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IAC1D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IACzD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,0DAA0D,CAAC;IAChG,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,0DAA0D,CAAC;IACnG,OAAO,EAAE,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Y,CACjB,uBAAuB,EACvB;QACE,KAAK,EAAE,uBAAuB;QAC9B,WAAW,EACT,2bAA2b;QAC7b,WAAW,EAAE,MAAM,CAAC,KAAK;KAC1B,EACD,KAAK,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE;QAChH,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,kBAAkB,CAAC;YACvD,UAAU;YACV,cAAc;YACd,aAAa;YACb,IAAI;YACJ,OAAO;YACP,OAAO;YACP,YAAY;YACZ,UAAU;YACV,MAAM;SACP,CAAC,CAAC;QAEH,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;iBAC5E;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
@@ -8,7 +8,7 @@ const schema = z.object({
8
8
  contextLines: z.number().optional().describe('Number of context lines around added/removed lines (default: 10)'),
9
9
  });
10
10
  export const getPrFileDiffTool = (server) => {
11
- server.registerTool('bitbucket_get_pull_request_file_diff', {
11
+ server.registerTool('get_pull_request_file_diff', {
12
12
  title: 'Get Pull Request File Diff',
13
13
  description: 'Gets a structured line-by-line diff for a specific file in a pull request. Returns JSON with hunks, segments, and exact line numbers (source and destination). Includes existing comments embedded in the diff. Whitespace changes are always included. This is essential for commenting on specific lines - use the line numbers from this response when adding comments.',
14
14
  inputSchema: schema.shape,
@@ -1 +1 @@
1
- {"version":3,"file":"get_pr_file_diff.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/get_pr_file_diff.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK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C"}
@@ -10,7 +10,7 @@ const schema = z.object({
10
10
  .describe('The emoticon to remove (thumbsup, thumbsdown, heart, thinking_face, laughing)'),
11
11
  });
12
12
  export const removePrCommentReactionTool = (server) => {
13
- server.registerTool('bitbucket_remove_pr_comment_reaction', {
13
+ server.registerTool('remove_pr_comment_reaction', {
14
14
  title: 'Remove Emoticon Reaction from PR Comment',
15
15
  description: 'Remove an emoticon reaction from a pull request comment. Only the user who added the reaction can remove it. Supported emoticons: thumbsup, thumbsdown, heart, thinking_face, laughing.',
16
16
  inputSchema: schema.shape,
@@ -1 +1 @@
1
- {"version":3,"file":"remove_pr_comment_reaction.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/remove_pr_comment_reaction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IAC5D,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IAC1D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IACzD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IAChD,QAAQ,EAAE,CAAC;SACR,IAAI,CAAC,CAAC,UAAU,EAAE,YAAY,EAAE,OAAO,EAAE,eAAe,EAAE,UAAU,CAAC,CAAC;SACtE,QAAQ,CAAC,+EAA+E,CAAC;CAC7F,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,MAAiB,EAAE,EAAE;IAC/D,MAAM,CAAC,YAAY,CACjB,sCAAsC,EACtC;QACE,KAAK,EAAE,0CAA0C;QACjD,WAAW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AAE;IAC/D,MAAM,CAAC,YAAY,CACjB,4BAA4B,EAC5B;QACE,KAAK,EAAE,0CAA0C;QACjD,WAAW,EACT,yLAAyL;QAC3L,WAAW,EAAE,MAAM,CAAC,KAAK;KAC1B,EACD,KAAK,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC3E,MAAM,gBAAgB,CAAC,gCAAgC,CAAC;YACtD,UAAU;YACV,cAAc;YACd,aAAa;YACb,SAAS;YACT,QAAQ;SACT,CAAC,CAAC;QAEH,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,aAAa,QAAQ,uCAAuC,SAAS,GAAG;iBAC/E;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
@@ -9,7 +9,7 @@ const schema = z.object({
9
9
  .describe('The review status: APPROVED (approve), NEEDS_WORK (request changes), or UNAPPROVED (neutral/remove approval)'),
10
10
  });
11
11
  export const updateReviewStatusTool = (server) => {
12
- server.registerTool('bitbucket_update_review_status', {
12
+ server.registerTool('update_review_status', {
13
13
  title: 'Update Pull Request Review Status',
14
14
  description: 'Change the review status for a pull request. Sets the authenticated user\'s review status to APPROVED (approve the PR), NEEDS_WORK (request changes - shows as "Requested changes" in UI), or UNAPPROVED (neutral/remove approval). Automatically detects the authenticated user and adds them as a participant/reviewer if not already. Updates lastReviewedCommit to the latest commit when approving or requesting changes. Requires REPO_READ permission.',
15
15
  inputSchema: schema.shape,
@@ -1 +1 @@
1
- {"version":3,"file":"update_review_status.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/update_review_status.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IAC5D,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IAC1D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IACzD,MAAM,EAAE,CAAC;SACN,IAAI,CAAC,CAAC,UAAU,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;SAC9C,QAAQ,CACP,8GAA8G,CAC/G;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,MAAiB,EAAE,EAAE;IAC1D,MAAM,CAAC,YAAY,CACjB,gCAAgC,EAChC;QACE,KAAK,EAAE,mCAAmC;QAC1C,WAAW,EACT,+bAA+b;QACjc,WAAW,EAAE,MAAM,CAAC,KAAK;KAC1B,EACD,KAAK,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,EAAE;QAC9D,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,kBAAkB,CAAC;YACvD,UAAU;YACV,cAAc;YACd,aAAa;YACb,MAAM;SACP,CAAC,CAAC;QAEH,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;iBACtC;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"update_review_status.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/update_review_status.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IAC5D,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IAC1D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IACzD,MAAM,EAAE,CAAC;SACN,IAAI,CAAC,CAAC,UAAU,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;SAC9C,QAAQ,CACP,8GAA8G,CAC/G;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,MAAiB,EAAE,EAAE;IAC1D,MAAM,CAAC,YAAY,CACjB,sBAAsB,EACtB;QACE,KAAK,EAAE,mCAAmC;QAC1C,WAAW,EACT,+bAA+b;QACjc,WAAW,EAAE,MAAM,CAAC,KAAK;KAC1B,EACD,KAAK,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,EAAE;QAC9D,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,kBAAkB,CAAC;YACvD,UAAU;YACV,cAAc;YACd,aAAa;YACb,MAAM;SACP,CAAC,CAAC;QAEH,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;iBACtC;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
@@ -4,7 +4,7 @@ const schema = z.object({
4
4
  projectKey: z.string().describe('The Bitbucket Server project key'),
5
5
  });
6
6
  export const listRepositoriesTool = (server) => {
7
- server.registerTool('bitbucket_list_repositories', {
7
+ server.registerTool('list_repositories', {
8
8
  title: 'List Bitbucket Repositories',
9
9
  description: 'List all repositories in a Bitbucket Server project',
10
10
  inputSchema: schema.shape,
@@ -1 +1 @@
1
- {"version":3,"file":"list_repositories.js","sourceRoot":"","sources":["../../../src/tools/repositories/list_repositories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kCAAkC,CAAC;CACpE,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,MAAiB,EAAE,EAAE;IACxD,MAAM,CAAC,YAAY,CACjB,6BAA6B,EAC7B;QACE,KAAK,EAAE,6BAA6B;QACpC,WAAW,EAAE,qDAAqD;QAClE,WAAW,EAAE,MAAM,CAAC,KAAK;KAC1B,EACD,KAAK,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE;QACvB,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,gBAAgB,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC;QAEvE,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;iBACtC;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"list_repositories.js","sourceRoot":"","sources":["../../../src/tools/repositories/list_repositories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kCAAkC,CAAC;CACpE,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,MAAiB,EAAE,EAAE;IACxD,MAAM,CAAC,YAAY,CACjB,mBAAmB,EACnB;QACE,KAAK,EAAE,6BAA6B;QACpC,WAAW,EAAE,qDAAqD;QAClE,WAAW,EAAE,MAAM,CAAC,KAAK;KAC1B,EACD,KAAK,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE;QACvB,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,gBAAgB,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC;QAEvE,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;iBACtC;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
@@ -4,7 +4,7 @@ const schema = z.object({
4
4
  filter: z.string().optional().describe('Filter users by username, name or email address (partial match)'),
5
5
  });
6
6
  export const getAllUsersTool = (server) => {
7
- server.registerTool('bitbucket_get_all_users', {
7
+ server.registerTool('get_all_users', {
8
8
  title: 'Get All Bitbucket Users',
9
9
  description: 'Retrieve a page of users from Bitbucket Server, optionally filtered by search term',
10
10
  inputSchema: schema.shape,
@@ -1 +1 @@
1
- {"version":3,"file":"get_all_users.js","sourceRoot":"","sources":["../../../src/tools/users/get_all_users.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iEAAiE,CAAC;CAC1G,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,MAAiB,EAAE,EAAE;IACnD,MAAM,CAAC,YAAY,CACjB,yBAAyB,EACzB;QACE,KAAK,EAAE,yBAAyB;QA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AmB;QACnB,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;iBACxC;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
@@ -4,7 +4,7 @@ const schema = z.object({
4
4
  username: z.string().describe('The username/slug of the Bitbucket Server user'),
5
5
  });
6
6
  export const getUserProfileTool = (server) => {
7
- server.registerTool('bitbucket_get_user_profile', {
7
+ server.registerTool('get_user_profile', {
8
8
  title: 'Get Bitbucket User Profile',
9
9
  description: 'Gets Bitbucket Server user profile details by username',
10
10
  inputSchema: schema.shape,
@@ -1 +1 @@
1
- {"version":3,"file":"get_user_profile.js","sourceRoot":"","sources":["../../../src/tools/users/get_user_profile.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gDAAgD,CAAC;CAChF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,MAAiB,EAAE,EAAE;IACtD,MAAM,CAAC,YAAY,CACjB,4BAA4B,EAC5B;QACE,KAAK,EAAE,4BAA4B;QACnC,WAAW,EAAE,wDAAwD;QACrE,WAAW,EAAE,MAAM,CAAC,KAAK;KAC1B,EACD,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;QACrB,sBAAsB;QACtB,MAAM,IAAI,GAAG,MAAM,gBAAgB,CAAC,cAAc,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;QAEjE,0DAA0D;QAC1D,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;iBACpC;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"get_user_profile.js","sourceRoot":"","sources":["../../../src/tools/users/get_user_profile.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gDAAgD,CAAC;CAChF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,MAAiB,EAAE,EAAE;IACtD,MAAM,CAAC,YAAY,CACjB,kBAAkB,EAClB;QACE,KAAK,EAAE,4BAA4B;QACnC,WAAW,EAAE,wDAAwD;QACrE,WAAW,EAAE,MAAM,CAAC,KAAK;KAC1B,EACD,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;QACrB,sBAAsB;QACtB,MAAM,IAAI,GAAG,MAAM,gBAAgB,CAAC,cAAc,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;QAEjE,0DAA0D;QAC1D,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;iBACpC;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-bitbucket-server",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "description": "MCP server for Bitbucket Server",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",