gitlab_disable_slack_integration
Disable Slack integration for a GitLab project by providing the project ID or URL-encoded path, ensuring streamlined configuration management.
Instructions
Disable Slack integration 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
- The core handler function implementing the gitlab_disable_slack_integration tool logic, which disables the Slack integration for a given GitLab project by calling the integrationsManager./** * Disable Slack integration handler */ export const disableSlackIntegration: 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.integrationsManager.disableSlackIntegration(project_id as string | number); return formatResponse(data); };
- src/utils/tools-data.ts:325-338 (schema)The tool definition including name, description, and input schema (requiring project_id) used for validation.{ name: 'gitlab_disable_slack_integration', description: 'Disable Slack integration 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:41-41 (registration)Maps the tool name 'gitlab_disable_slack_integration' to the handler function in the central tool registry.gitlab_disable_slack_integration: integrationHandlers.disableSlackIntegration,