Skip to main content
Glama

gitlab_get_merge_request_pipelines

Retrieve pipeline status and details for a GitLab merge request to monitor CI/CD progress and identify potential issues.

Instructions

Gets pipelines for a specific GitLab Merge Request.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mrUrlYesThe URL of the GitLab Merge Request.

Implementation Reference

  • MCP tool handler that extracts mrUrl from arguments, calls the GitLabService.getMergeRequestPipelines method, and returns the JSON-stringified result.
    case 'gitlab_get_merge_request_pipelines': { if (!gitlabService) { throw new Error('GitLab service is not initialized.'); } const { mrUrl } = args as { mrUrl: string }; const result = await gitlabService.getMergeRequestPipelines(mrUrl); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; }
  • Tool schema definition including input schema requiring 'mrUrl' and description.
    { name: 'gitlab_get_merge_request_pipelines', description: 'Gets pipelines for a specific GitLab Merge Request.', inputSchema: { type: 'object', properties: { mrUrl: { type: 'string', description: 'The URL of the GitLab Merge Request.', }, }, required: ['mrUrl'], }, },
  • src/index.ts:1182-1182 (registration)
    The tool is registered in the allTools array, which is filtered based on service availability and returned in ListToolsRequest.
    ];
  • GitLabService method that parses the MR URL to get projectPath and mrIid, then calls the GitLab API endpoint for merge request pipelines.
    async getMergeRequestPipelines(mrUrl: string): Promise<any[]> { const { projectPath, mrIid } = this.parseMrUrl(mrUrl, this.config.url); const encodedProjectPath = encodeURIComponent(projectPath); return this.callGitLabApi<any[]>( `projects/${encodedProjectPath}/merge_requests/${mrIid}/pipelines`, ); }

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/HainanZhao/mcp-gitlab-jira'

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