Skip to main content
Glama
Lexmata

Bitbucket Cloud MCP Server

by Lexmata

get_pull_request

Retrieve details of a specific pull request including source, destination, and status from Bitbucket Cloud.

Instructions

Get details of a specific pull request including its source, destination, and status.

Input Schema

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

Implementation Reference

  • The handler logic for the 'get_pull_request' tool. It validates input parameters using Zod schema and calls the PullRequestsAPI.get method to fetch the pull request details.
    case 'get_pull_request': { const params = toolSchemas.get_pull_request.parse(args); return this.prs.get(params.workspace, params.repo_slug, params.pr_id); }
  • Zod input schema for the 'get_pull_request' tool, defining required parameters: workspace, repo_slug, and pr_id.
    get_pull_request: z.object({ workspace: z.string().describe('The workspace slug'), repo_slug: z.string().describe('The repository slug'), pr_id: z.number().describe('The pull request ID'), }),
  • MCP tool registration for 'get_pull_request', including name, description, and JSON schema for input validation.
    { name: 'get_pull_request', description: 'Get details of a specific pull request including its source, destination, and status.', inputSchema: { type: 'object' as const, 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' }, }, required: ['workspace', 'repo_slug', 'pr_id'], }, },

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/Lexmata/bitbucket-mcp'

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