Skip to main content
Glama
Lexmata

Bitbucket Cloud MCP Server

by Lexmata

request_changes

Request changes on a Bitbucket Cloud pull request to indicate required modifications before approval.

Instructions

Request changes on a pull request.

Input Schema

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

Implementation Reference

  • Handles the 'request_changes' MCP tool call: parses arguments using Zod schema and delegates to PullRequestsAPI.requestChanges method.
    case 'request_changes': { const params = toolSchemas.request_changes.parse(args); await this.prs.requestChanges(params.workspace, params.repo_slug, params.pr_id); return { success: true, message: 'Changes requested' }; }
  • Zod schema definition for validating the input parameters of the 'request_changes' tool.
    request_changes: 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'), }),
  • Registers the 'request_changes' tool with the MCP protocol, including name, description, and JSON schema for inputs.
    { name: 'request_changes', description: 'Request changes on a pull request.', 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'], }, },
  • Core implementation: Makes a POST request to Bitbucket API to request changes on the specified pull request.
    async requestChanges(workspace: string, repo_slug: string, pr_id: number): Promise<void> { await this.client.post( `/repositories/${workspace}/${repo_slug}/pullrequests/${pr_id}/request-changes` ); }

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