Skip to main content
Glama
Lexmata

Bitbucket Cloud MCP Server

by Lexmata

get_pipeline

Retrieve details of a specific pipeline run in Bitbucket Cloud to monitor execution status, view logs, and track deployment progress.

Instructions

Get details of a specific pipeline run.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workspaceYesThe workspace slug
repo_slugYesThe repository slug
pipeline_uuidYesThe pipeline UUID

Implementation Reference

  • The MCP tool handler case for 'get_pipeline' that validates arguments with Zod schema and calls PipelinesAPI.get to retrieve pipeline details.
    case 'get_pipeline': {
      const params = toolSchemas.get_pipeline.parse(args);
      return this.pipelines.get(params.workspace, params.repo_slug, params.pipeline_uuid);
    }
  • Zod input schema definition for the 'get_pipeline' tool.
    get_pipeline: z.object({
      workspace: z.string().describe('The workspace slug'),
      repo_slug: z.string().describe('The repository slug'),
      pipeline_uuid: z.string().describe('The pipeline UUID'),
    }),
  • Tool registration in the toolDefinitions export array used by MCP, including name, description, and JSON schema.
    {
      name: 'get_pipeline',
      description: 'Get details of a specific pipeline run.',
      inputSchema: {
        type: 'object' as const,
        properties: {
          workspace: { type: 'string', description: 'The workspace slug' },
          repo_slug: { type: 'string', description: 'The repository slug' },
          pipeline_uuid: { type: 'string', description: 'The pipeline UUID' },
        },
        required: ['workspace', 'repo_slug', 'pipeline_uuid'],
      },
    },
  • PipelinesAPI.get method implementation that performs the HTTP GET request to Bitbucket's pipeline endpoint.
    async get(
      workspace: string,
      repo_slug: string,
      pipeline_uuid: string
    ): Promise<BitbucketPipeline> {
      return this.client.get<BitbucketPipeline>(
        `/repositories/${workspace}/${repo_slug}/pipelines/${pipeline_uuid}`
      );
    }

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