Skip to main content
Glama
jlromano

Bitbucket MCP Server

by jlromano

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
NameRequiredDescriptionDefault
workspaceYesThe workspace slug
repo_slugYesThe repository slug
pr_idYesThe pull request ID
contentYesThe comment content

Implementation Reference

  • 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: {

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jlromano/bitbucket-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server