Skip to main content
Glama

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

NameRequiredDescriptionDefault
project_idYesThe 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); };
  • 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'] } },
  • 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

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