Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault
project_idYesThe ID or URL-encoded path of the project

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);
    };
  • 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']
      }
    },
  • Maps the tool name 'gitlab_disable_slack_integration' to the handler function in the central tool registry.
    gitlab_disable_slack_integration: integrationHandlers.disableSlackIntegration,

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/rifqi96/mcp-gitlab'

If you have feedback or need assistance with the MCP directory API, please join our Discord server