gitlab_list_all_releases
Retrieve all release information for a specified GitLab project to track version history and deployment status.
Instructions
Fetches releases for a given GitLab project.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | The path of the GitLab project (e.g., "namespace/project-name"). |
Implementation Reference
- src/gitlab.service.ts:446-450 (handler)Core handler function that fetches and returns all releases for the specified GitLab project using the GitLab API.// New tool: Get Releases for a Project async getReleases(projectPath: string): Promise<any[]> { const encodedProjectPath = encodeURIComponent(projectPath); return this.callGitLabApi<any[]>(`projects/${encodedProjectPath}/releases`); }
- src/index.ts:1386-1400 (handler)MCP server request handler that processes calls to the 'gitlab_list_all_releases' tool by invoking the GitLabService.getReleases method.case 'gitlab_list_all_releases': { if (!gitlabService) { throw new Error('GitLab service is not initialized.'); } const { projectPath } = args as { projectPath: string }; const result = await gitlabService.getReleases(projectPath); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; }
- src/index.ts:238-251 (registration)Tool registration in the allTools array, including name, description, and input schema for the MCP server.name: 'gitlab_list_all_releases', description: 'Fetches releases for a given GitLab project.', inputSchema: { type: 'object', properties: { projectPath: { type: 'string', description: 'The path of the GitLab project (e.g., "namespace/project-name").', }, }, required: ['projectPath'], }, },
- src/index.ts:240-251 (schema)Input schema definition validating the projectPath parameter for the tool.inputSchema: { type: 'object', properties: { projectPath: { type: 'string', description: 'The path of the GitLab project (e.g., "namespace/project-name").', }, }, required: ['projectPath'], }, },