add_comment
Enhance pull request reviews by adding comments, including inline feedback on specific code lines, directly within Bitbucket repositories using the Bitbucket MCP Server.
Instructions
Add a comment to a pull request (general or inline on specific code)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
comment_text | Yes | Comment text | |
file_path | No | File path for inline comment (optional, e.g., "src/main.js") | |
line_number | No | Line number for inline comment (optional, required with file_path) | |
line_type | No | Type of line for inline comment: ADDED, REMOVED, or CONTEXT (optional, default: CONTEXT) | |
parent_comment_id | No | Parent comment ID for replies (optional) | |
pull_request_id | Yes | Pull request ID | |
repository | Yes | Repository slug (e.g., "my-repo") | |
workspace | Yes | Bitbucket workspace/project key (e.g., "PROJ") |