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
parentId: z.number().optional().describe("Parent comment ID for replies"),
616
689
filePath: z.string().optional().describe("File path for file-specific comments"),
617
690
line: z.number().optional().describe("Line number for line-specific comments"),
618
-
lineType: z.enum(['ADDED','REMOVED','CONTEXT']).optional().describe("Line type for line comments")
691
+
lineType: z.enum(['ADDED','REMOVED','CONTEXT']).optional().describe("Line type for line comments"),
692
+
pending: z.boolean().optional().describe("If true, creates a pending (draft) comment not visible to others until the review is submitted via bitbucket_submitPullRequestReview. Only works when filePath is provided — top-level PR comments (no filePath) are always posted live.")
693
+
},
694
+
getUser: {
695
+
userSlug: z.string().optional().describe("Exact slug of the user to look up (e.g. 'tdepole'). Use this to confirm a known slug or fetch a user's details."),
696
+
filter: z.string().optional().describe("Search string to find users by name or email. Use this to discover a user's slug when it is not known.")
userSlug: z.string().describe("The username/slug of the PAT token owner — the same user whose credentials are in BITBUCKET_API_TOKEN. Resolution order: (1) author.slug from any comment posted this session, (2) reviewers/participants array from getPullRequest, (3) bitbucket_getUser with a name/email filter."),
703
+
status: z.enum(['APPROVED','NEEDS_WORK','UNAPPROVED']).describe("The review verdict: APPROVED, NEEDS_WORK, or UNAPPROVED"),
704
+
lastReviewedCommit: z.string().optional().describe("Optional hash of the last commit reviewed, used to track review progress")
Copy file name to clipboardExpand all lines: packages/bitbucket/src/index.ts
+23-3Lines changed: 23 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -112,12 +112,32 @@ server.tool(
112
112
}
113
113
);
114
114
115
+
server.tool(
116
+
"bitbucket_getUser",
117
+
"Get a Bitbucket user by their slug, or search for users by name/email to discover their slug. Use this to resolve userSlug for bitbucket_submitPullRequestReview when it is not already known from a comment response or PR participant list.",
"Post a comment to a Bitbucket pull request. Use pending: true to create a draft comment that is only visible to you until you call bitbucket_submitPullRequestReview. NOTE: pending only works when filePath is provided (file-level or inline comments). True top-level PR comments (no filePath) are always posted live and cannot be drafted.",
"Submit a pull request review, publishing all pending (draft) comments and setting the reviewer's verdict. This is equivalent to clicking 'Submit Review' in the Bitbucket UI. Use after posting comments with pending: true. To resolve userSlug: (1) check author.slug in any comment you posted this session, (2) check the reviewers/participants array from bitbucket_getPullRequest, or (3) call bitbucket_getUser with a name/email filter as a last resort.",
0 commit comments