Skip to main content
Glama
jlromano

Bitbucket MCP Server

by jlromano

get_pull_request

Retrieve detailed information about a specific Bitbucket pull request using workspace, repository, and PR ID parameters.

Instructions

Get details of a specific pull request

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workspaceYesThe workspace slug
repo_slugYesThe repository slug
pr_idYesThe pull request ID

Implementation Reference

  • The actual implementation of getPullRequest that interacts with the Bitbucket API.
    async getPullRequest(workspace: string, repoSlug: string, prId: number): Promise<PullRequest> {
      const response = await this.api.get(`/repositories/${workspace}/${repoSlug}/pullrequests/${prId}`);
      return response.data;
    }
  • The MCP tool handler in index.ts that calls BitbucketClient.getPullRequest.
    case 'get_pull_request': {
      const { workspace, repo_slug, pr_id } = args as {
        workspace: string;
        repo_slug: string;
        pr_id: number;
      };
      const pullRequest = await client.getPullRequest(workspace, repo_slug, pr_id);
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(pullRequest, null, 2),
          },
        ],
      };
    }

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