gitlab_list_group_members
Retrieve a list of members associated with a specific GitLab group by providing the group ID or path. Facilitates user management and access control within the GitLab MCP Server.
Instructions
List members of a group
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group_id | Yes | The ID or URL-encoded path of the group |
Input Schema (JSON Schema)
{
"properties": {
"group_id": {
"description": "The ID or URL-encoded path of the group",
"type": "string"
}
},
"required": [
"group_id"
],
"type": "object"
}
Implementation Reference
- The handler function that implements the logic for the gitlab_list_group_members tool. It validates the group_id parameter and delegates to the usersGroupsManager to fetch the list of group members.export const listGroupMembers: ToolHandler = async (params, context) => { const { group_id } = params.arguments || {}; if (!group_id) { throw new McpError(ErrorCode.InvalidParams, 'group_id is required'); } const data = await context.usersGroupsManager.listGroupMembers(group_id as string | number); return formatResponse(data); };
- src/utils/tools-data.ts:781-793 (schema)The input schema definition for the gitlab_list_group_members tool, specifying the required group_id parameter.name: 'gitlab_list_group_members', description: 'List members of a group', inputSchema: { type: 'object', properties: { group_id: { type: 'string', description: 'The ID or URL-encoded path of the group' } }, required: ['group_id'] } },
- src/utils/tool-registry.ts:67-67 (registration)Registration of the gitlab_list_group_members tool in the central tool registry, mapping the tool name to its handler function.gitlab_list_group_members: usersGroupsHandlers.listGroupMembers,