gitlab_list_project_members
Retrieve a list of members for a specified GitLab project by providing the project ID or URL-encoded path to manage access and collaboration.
Instructions
List members of a project
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | The ID or URL-encoded path of the project |
Input Schema (JSON Schema)
{
"properties": {
"project_id": {
"description": "The ID or URL-encoded path of the project",
"type": "string"
}
},
"required": [
"project_id"
],
"type": "object"
}
Implementation Reference
- The handler function that implements the gitlab_list_project_members tool. It extracts the project_id from arguments, validates it, calls the usersGroupsManager.listProjectMembers method, and formats the response.export const listProjectMembers: 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.usersGroupsManager.listProjectMembers(project_id as string | number); return formatResponse(data); };
- src/utils/tools-data.ts:817-830 (schema)The input schema definition for the gitlab_list_project_members tool, specifying the required project_id parameter.{ name: 'gitlab_list_project_members', description: 'List members of a project', inputSchema: { type: 'object', properties: { project_id: { type: 'string', description: 'The ID or URL-encoded path of the project' } }, required: ['project_id'] } },
- src/utils/tool-registry.ts:62-70 (registration)The tool registry mapping where gitlab_list_project_members is registered to the usersGroupsHandlers.listProjectMembers handler function.// Users and Groups tools gitlab_list_users: usersGroupsHandlers.listUsers, gitlab_get_user: usersGroupsHandlers.getUser, gitlab_list_groups: usersGroupsHandlers.listGroups, gitlab_get_group: usersGroupsHandlers.getGroup, gitlab_list_group_members: usersGroupsHandlers.listGroupMembers, gitlab_add_group_member: usersGroupsHandlers.addGroupMember, gitlab_list_project_members: usersGroupsHandlers.listProjectMembers, gitlab_add_project_member: usersGroupsHandlers.addProjectMember