Skip to main content
Glama
Lexmata

Bitbucket Cloud MCP Server

by Lexmata

get_pipeline

Retrieve detailed information about a specific pipeline run in Bitbucket Cloud, including status, steps, and execution data.

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 main handler for the 'get_pipeline' tool in the ToolHandler class. It validates input parameters using the Zod schema and calls the PipelinesAPI.get method to fetch the 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 schema definition for input validation of 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'), }),
  • Registration of the 'get_pipeline' tool in the toolDefinitions array, including MCP-compatible input schema and description.
    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'], }, },
  • The PipelinesAPI.get method, which performs the actual API call to retrieve pipeline details from Bitbucket.
    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