gitlab_get_issue_details
Retrieve detailed information about a specific GitLab issue by providing the project path and issue internal ID. This tool enables AI agents to access issue data for integration workflows.
Instructions
Gets detailed information about a specific GitLab issue.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | The path of the GitLab project. | |
| issueIid | Yes | The internal ID of the issue. |
Implementation Reference
- src/gitlab.service.ts:655-660 (handler)The core handler function in GitLabService that fetches detailed information about a GitLab issue using the GitLab API endpoint.async getIssueDetails(projectPath: string, issueIid: number): Promise<any> { const encodedProjectPath = encodeURIComponent(projectPath); return this.callGitLabApi<any>( `projects/${encodedProjectPath}/issues/${issueIid}`, ); }
- src/index.ts:848-864 (schema)Input schema definition for the gitlab_get_issue_details tool, specifying parameters projectPath and issueIid.name: 'gitlab_get_issue_details', description: 'Gets detailed information about a specific GitLab issue.', inputSchema: { type: 'object', properties: { projectPath: { type: 'string', description: 'The path of the GitLab project.', }, issueIid: { type: 'number', description: 'The internal ID of the issue.', }, }, required: ['projectPath', 'issueIid'], }, },
- src/index.ts:1970-1983 (registration)Tool registration in the MCP server request handler switch statement, dispatching calls to gitlabService.getIssueDetails and formatting the response.case 'gitlab_get_issue_details': { if (!gitlabService) { throw new Error('GitLab service is not initialized.'); } const { projectPath, issueIid } = args as { projectPath: string; issueIid: number }; const result = await gitlabService.getIssueDetails(projectPath, issueIid); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], };
- src/index.ts:848-864 (registration)Tool object registration in the allTools array, which is used for listTools and filtered for availability.name: 'gitlab_get_issue_details', description: 'Gets detailed information about a specific GitLab issue.', inputSchema: { type: 'object', properties: { projectPath: { type: 'string', description: 'The path of the GitLab project.', }, issueIid: { type: 'number', description: 'The internal ID of the issue.', }, }, required: ['projectPath', 'issueIid'], }, },