Skip to main content
Glama

gitlab_list_projects

Retrieve a list of GitLab projects accessible to the user, filtered by membership, ownership, or search criteria, and manage repository interactions efficiently.

Instructions

List GitLab projects accessible to the user

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
membershipNoLimit to projects the current user is a member of
ownedNoLimit to projects explicitly owned by the current user
per_pageNoNumber of projects to return per page (max 100)
searchNoSearch projects by name

Implementation Reference

  • The main handler function that implements the gitlab_list_projects tool logic, fetching projects from GitLab API endpoint '/projects' with optional search, owned, membership, and per_page filters.
    export const listProjects: ToolHandler = async (params, context) => { const { search, owned, membership, per_page } = params.arguments || {}; const response = await context.axiosInstance.get('/projects', { params: { search, owned: owned === true ? true : undefined, membership: membership === true ? true : undefined, per_page: per_page || 20 } }); return formatResponse(response.data); };
  • The input schema and metadata definition for the gitlab_list_projects tool.
    name: 'gitlab_list_projects', description: 'List GitLab projects accessible to the user', inputSchema: { type: 'object', properties: { search: { type: 'string', description: 'Search projects by name' }, owned: { type: 'boolean', description: 'Limit to projects explicitly owned by the current user' }, membership: { type: 'boolean', description: 'Limit to projects the current user is a member of' }, per_page: { type: 'number', description: 'Number of projects to return per page (max 100)' } } }
  • The registration of the gitlab_list_projects tool in the central toolRegistry, mapping the tool name to its handler function.
    gitlab_list_projects: repoHandlers.listProjects,

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