Skip to main content
Glama

mcp-server-gitlab

Fotos en chino

Servidor MCP mcp-gitlab (en inglés)

Un servidor de integración de GitLab basado en el framework fastmcp, que proporciona diversas herramientas API RESTful de GitLab. Compatible con Claude, Smithery y otras plataformas.

Características

  • GitlabSearchUserProjectsTool : busca usuarios y sus proyectos activos por nombre de usuario
  • GitlabGetUserTasksTool : Obtener las tareas pendientes del usuario actual
  • GitlabSearchProjectDetailsTool : Buscar proyectos y detalles
  • GitlabCreateMRCommentTool : Agregar comentarios a las solicitudes de fusión
  • GitlabAcceptMRTool : aceptar y fusionar solicitudes de fusión
  • GitlabUpdateMRTool : Actualizar el asignado, los revisores, el título, la descripción y las etiquetas de la solicitud de fusión
  • GitlabCreateMRTool : Crea una nueva solicitud de fusión con asignados y revisores
  • GitlabRawApiTool : llama a cualquier API de GitLab con parámetros personalizados

Inicio rápido

# Install dependencies bun install # Build the project bun run build # Start the server bun run start

Variables de entorno

GITLAB_API_URL=https://your-gitlab-instance.com GITLAB_TOKEN=your_access_token # Optional: Provide a mapping from usernames to user IDs (JSON string) # This can reduce API calls, especially when referencing the same users frequently # Example: '{"username1": 123, "username2": 456}' GITLAB_USER_MAPPING={"username1": 123, "username2": 456} # Optional: Provide a mapping from project names to project IDs (JSON string) # Project IDs can be numbers or strings (e.g., 'group/project') # This can reduce API calls and ensure the correct project is used # Example: '{"project-name-a": 1001, "group/project-b": "group/project-b"}' GITLAB_PROJECT_MAPPING={"project-name-a": 1001, "group/project-b": "group/project-b"}

Ejemplos de uso

Consulte USAGE.md para obtener ejemplos detallados de los parámetros de cada herramienta.

Estructura del proyecto

src/ ├── server/ │ └── GitlabMCPServer.ts # MCP server entry point ├── tools/ │ ├── GitlabAcceptMRTool.ts │ ├── GitlabCreateMRCommentTool.ts │ ├── GitlabGetUserTasksTool.ts │ ├── GitlabRawApiTool.ts │ ├── GitlabSearchProjectDetailsTool.ts │ ├── GitlabSearchUserProjectsTool.ts │ └── gitlab/ │ ├── FieldFilterUtils.ts │ ├── GitlabApiClient.ts │ └── GitlabApiTypes.ts ├── utils/ │ ├── is.ts │ └── sensitive.ts smithery.json # Smithery config USAGE.md # Usage examples package.json tsconfig.json

Integración

Cliente de escritorio Claude

Añade a tu configuración:

{ "mcpServers": { "@zephyr-mcp/gitlab": { "command": "npx", "args": ["-y", "@zephyr-mcp/gitlab"] } } }

Herrería

Úselo directamente en la plataforma Smithery:

smithery add @zephyr-mcp/gitlab

O busque "@zephyr-mcp/gitlab" en Smithery UI y agréguelo a su espacio de trabajo.

Variables de entorno:

  • GITLAB_API_URL : URL base de su API de GitLab
  • GITLAB_TOKEN : Token de acceso para la autenticación de la API de GitLab

Enlaces relacionados

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Aplicación MCP para GitLab, solución RESTful para GitLab API:

  1. Características
    1. Inicio rápido
      1. Variables de entorno
        1. Ejemplos de uso
          1. Estructura del proyecto
            1. Integración
              1. Cliente de escritorio Claude
              2. Herrería
            2. Enlaces relacionados

              Related MCP Servers

              • A
                security
                A
                license
                A
                quality
                gitlab mcp
                Last updated -
                13
                4,715
                226
                JavaScript
                MIT License
                • Linux
                • Apple
              • -
                security
                A
                license
                -
                quality
                GitLabとの連携機能を提供するModel Context Protocol (MCP) サーバーです。GitLabの特定のプロジェクトからパイプラインの失敗情報やマージリクエストへの指摘事項を取得し、AIアシスタントに提供します。
                Last updated -
                Python
                MIT License
              • -
                security
                F
                license
                -
                quality
                An MCP server that enables communication with GitLab repositories, allowing interaction with GitLab's API to manage projects, issues, and repositories through natural language.
                Last updated -
                20
                1
                JavaScript
                MIT License

              View all related MCP servers

              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/ZephyrDeng/mcp-server-gitlab'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server