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
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | Yes | The workspace slug | |
| repo_slug | Yes | The repository slug | |
| pr_id | Yes | The pull request ID |
Implementation Reference
- src/BitbucketClient.ts:135-138 (handler)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; } - src/index.ts:485-500 (handler)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), }, ], }; }