gitlab_list_cicd_variables
Retrieve CI/CD variables for a specific GitLab project using the project ID or URL-encoded path, enabling streamlined pipeline configuration and management.
Instructions
List CI/CD variables for a project
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | The ID or URL-encoded path of the project |
Input Schema (JSON Schema)
{
"properties": {
"project_id": {
"description": "The ID or URL-encoded path of the project",
"type": "string"
}
},
"required": [
"project_id"
],
"type": "object"
}
Implementation Reference
- src/handlers/cicd-handlers.ts:92-103 (handler)The handler function that implements the core logic of the gitlab_list_cicd_variables tool by validating input and calling the CI/CD manager./** * List CI/CD variables handler */ export const listCiCdVariables: ToolHandler = async (params, context) => { const { project_id } = params.arguments || {}; if (!project_id) { throw new McpError(ErrorCode.InvalidParams, 'project_id is required'); } const data = await context.ciCdManager.listCiCdVariables(project_id as string | number); return formatResponse(data); };
- src/utils/tools-data.ts:607-619 (schema)The input schema definition specifying parameters for the gitlab_list_cicd_variables tool.name: 'gitlab_list_cicd_variables', description: 'List CI/CD variables for a project', inputSchema: { type: 'object', properties: { project_id: { type: 'string', description: 'The ID or URL-encoded path of the project' } }, required: ['project_id'] } },
- src/utils/tool-registry.ts:56-56 (registration)Registration of the tool name to its handler function in the central tool registry.gitlab_list_cicd_variables: cicdHandlers.listCiCdVariables,
- src/utils/tool-registry.ts:14-14 (registration)Import of the cicd-handlers module containing the listCiCdVariables function.import * as cicdHandlers from "../handlers/cicd-handlers.js";