get_project
Retrieve detailed information about a GitLab project using its ID or path to access project data, configurations, and metadata.
Instructions
Get details of a specific project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID or path (e.g., "1" or "group/project") |
Implementation Reference
- src/handlers/projects.ts:48-59 (handler)The main handler function for the 'get_project' tool. Fetches project details from the GitLab API using the provided project_id and returns the JSON response.async getProject(args: GetProjectParams) { const data = await this.client.get(`/projects/${encodeURIComponent(args.project_id)}`); return { content: [ { type: 'text', text: JSON.stringify(data, null, 2), }, ], }; }
- src/tools/projects.ts:38-51 (schema)MCP tool definition including name, description, and input schema for 'get_project' (requires project_id). Used for tool listing.{ name: 'get_project', description: 'Get details of a specific project', inputSchema: { type: 'object', properties: { project_id: { type: 'string', description: 'Project ID or path (e.g., "1" or "group/project")', }, }, required: ['project_id'], }, },
- src/server.ts:157-160 (registration)Tool call dispatcher/registration in the MCP server. Matches tool name 'get_project' and invokes the projectHandlers.getProject method.case "get_project": return await this.projectHandlers.getProject( args as unknown as GetProjectParams );
- src/types.ts:211-213 (schema)TypeScript interface defining the input parameters for the getProject handler (project_id: string). Imported and used for type safety.export interface GetProjectParams { project_id: string; }