get_pipeline
Retrieve detailed information about a specific GitLab pipeline by providing the project ID and pipeline ID. This tool helps users monitor pipeline status, view execution details, and track CI/CD progress within GitLab projects.
Instructions
Get details of a specific pipeline
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID or path | |
| pipeline_id | Yes | Pipeline ID |
Implementation Reference
- src/handlers/pipelines.ts:40-51 (handler)The main handler function that executes the get_pipeline tool by fetching pipeline details from the GitLab API using the provided project_id and pipeline_id, then returning the JSON response.async getPipeline(args: GetPipelineParams) { const data = await this.client.get(`/projects/${encodeURIComponent(args.project_id)}/pipelines/${args.pipeline_id}`); return { content: [ { type: 'text', text: JSON.stringify(data, null, 2), }, ], }; }
- src/tools/pipelines.ts:69-86 (registration)MCP tool registration in the pipelineTools array, defining the tool name, description, and input schema.{ name: 'get_pipeline', description: 'Get details of a specific pipeline', inputSchema: { type: 'object', properties: { project_id: { type: 'string', description: 'Project ID or path', }, pipeline_id: { type: 'number', description: 'Pipeline ID', }, }, required: ['project_id', 'pipeline_id'], }, },
- src/types.ts:362-365 (schema)TypeScript interface defining the input parameters (project_id and pipeline_id) used by the get_pipeline handler.export interface GetPipelineParams { project_id: string; pipeline_id: number; }