add_pull_request_comment
Add comments to Bitbucket pull requests to provide feedback, ask questions, or share information during code review processes.
Instructions
Add a comment to a pull request
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | Yes | The workspace slug | |
| repo_slug | Yes | The repository slug | |
| pr_id | Yes | The pull request ID | |
| content | Yes | The comment content |
Implementation Reference
- src/BitbucketClient.ts:171-180 (handler)The implementation of the tool logic that interacts with the Bitbucket API.
async addPullRequestComment( workspace: string, repoSlug: string, prId: number, content: string ): Promise<void> { await this.api.post(`/repositories/${workspace}/${repoSlug}/pullrequests/${prId}/comments`, { content: { raw: content } }); } - src/index.ts:247-265 (registration)The MCP tool registration for 'add_pull_request_comment'.
{ name: 'add_pull_request_comment', description: 'Add a comment to a pull request', inputSchema: { type: 'object', properties: { workspace: { type: 'string', description: 'The workspace slug', }, repo_slug: { type: 'string', description: 'The repository slug', }, pr_id: { type: 'number', description: 'The pull request ID', }, content: {