gitlab_delete_trigger_token
Remove a pipeline trigger token from a GitLab project by specifying the project ID and trigger ID using the GitLab MCP Server.
Instructions
Delete a pipeline trigger token
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | The ID or URL-encoded path of the project | |
| trigger_id | Yes | The ID of the trigger |
Implementation Reference
- src/handlers/cicd-handlers.ts:63-74 (handler)Handler function that validates parameters, calls ciCdManager.deleteTriggerToken to delete the trigger token, and returns formatted response.*/ export const deleteTriggerToken: ToolHandler = async (params, context) => { const { project_id, trigger_id } = params.arguments || {}; if (!project_id || !trigger_id) { throw new McpError(ErrorCode.InvalidParams, 'project_id and trigger_id are required'); } const data = await context.ciCdManager.deleteTriggerToken(project_id as string | number, trigger_id as number); return formatResponse(data); }; /**
- src/utils/tools-data.ts:561-578 (schema)Input schema definition specifying required project_id and trigger_id parameters for the tool.{ name: 'gitlab_delete_trigger_token', description: 'Delete a pipeline trigger token', inputSchema: { type: 'object', properties: { project_id: { type: 'string', description: 'The ID or URL-encoded path of the project' }, trigger_id: { type: 'number', description: 'The ID of the trigger' } }, required: ['project_id', 'trigger_id'] } },
- src/utils/tool-registry.ts:54-54 (registration)Tool registration mapping 'gitlab_delete_trigger_token' to the cicdHandlers.deleteTriggerToken function.gitlab_delete_trigger_token: cicdHandlers.deleteTriggerToken,