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
| Name | Required | Description | Default |
|---|---|---|---|
| integration | Yes | The name of the integration (e.g., slack) | |
| project_id | Yes | The ID or URL-encoded path of the project |
Input Schema (JSON Schema)
{
"properties": {
"integration": {
"description": "The name of the integration (e.g., slack)",
"type": "string"
},
"project_id": {
"description": "The ID or URL-encoded path of the project",
"type": "string"
}
},
"required": [
"project_id",
"integration"
],
"type": "object"
}
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); };
- src/utils/tools-data.ts:281-298 (schema)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'] } },
- src/utils/tool-registry.ts:37-47 (registration)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,
- src/utils/tool-registry.ts:11-11 (registration)Import of integrationHandlers module containing the getIntegration function.import * as integrationHandlers from "../handlers/integration-handlers.js";