Skip to main content
Glama

gitlab_get_integration

Retrieve details of a specific integration (e.g., Slack) for a GitLab project by providing the project ID and integration name. Simplify project management and configuration monitoring.

Instructions

Get integration details for a project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
integrationYesThe name of the integration (e.g., slack)
project_idYesThe ID or URL-encoded path of the project

Implementation Reference

  • The main handler function that implements the gitlab_get_integration tool logic, calling the integrationsManager and formatting the response.
     * Get integration handler
     */
    export const getIntegration: ToolHandler = async (params, context) => {
      const { project_id, integration_slug } = params.arguments || {};
      if (!project_id || !integration_slug) {
        throw new McpError(ErrorCode.InvalidParams, 'project_id and integration_slug are required');
      }
      
      const data = await context.integrationsManager.getIntegration(project_id as string | number, integration_slug as string);
      return formatResponse(data);
    };
  • The input schema definition for the gitlab_get_integration tool, specifying parameters project_id and integration.
    {
      name: 'gitlab_get_integration',
      description: 'Get integration details for a project',
      inputSchema: {
        type: 'object',
        properties: {
          project_id: {
            type: 'string',
            description: 'The ID or URL-encoded path of the project'
          },
          integration: {
            type: 'string',
            description: 'The name of the integration (e.g., slack)'
          }
        },
        required: ['project_id', 'integration']
      }
    },
  • The registration of gitlab_get_integration tool mapping to integrationHandlers.getIntegration in the tool registry.
    // Integration tools
    gitlab_list_integrations: integrationHandlers.listIntegrations,
    gitlab_get_integration: integrationHandlers.getIntegration,
    gitlab_update_slack_integration: integrationHandlers.updateSlackIntegration,
    gitlab_disable_slack_integration: integrationHandlers.disableSlackIntegration,
    gitlab_list_webhooks: integrationHandlers.listWebhooks,
    gitlab_get_webhook: integrationHandlers.getWebhook,
    gitlab_add_webhook: integrationHandlers.addWebhook,
    gitlab_update_webhook: integrationHandlers.updateWebhook,
    gitlab_delete_webhook: integrationHandlers.deleteWebhook,
    gitlab_test_webhook: integrationHandlers.testWebhook,
  • Import of integrationHandlers module containing the getIntegration function.
    import * as integrationHandlers from "../handlers/integration-handlers.js";

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