Skip to main content
Glama

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
NameRequiredDescriptionDefault
projectPathYesThe path of the GitLab project (e.g., "namespace/project-name").

Implementation Reference

  • 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`); }
  • 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'], }, },
  • 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'], }, },

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