mcp-server-gitlab

MIT License
67
2

Integrations

  • Utilizes Bun as the JavaScript runtime environment for building and running the MCP server.

  • Provides tools for interacting with GitLab's RESTful API, enabling searching users and projects, managing tasks, creating and updating merge requests, adding comments, and executing custom API calls.

중국어판

mcp-gitlab MCP 서버(영어)

fastmcp 프레임워크 기반으로 구축된 GitLab 통합 서버로, 다양한 GitLab RESTful API 도구를 제공합니다. Claude, Smithery 및 기타 플랫폼과의 통합을 지원합니다.

특징

  • GitlabSearchUserProjectsTool : 사용자 이름으로 사용자 및 활성 프로젝트 검색
  • GitlabGetUserTasksTool : 현재 사용자의 보류 중인 작업 가져오기
  • GitlabSearchProjectDetailsTool : 프로젝트 및 세부 정보 검색
  • GitlabCreateMRCommentTool : 병합 요청에 주석 추가
  • GitlabAcceptMRTool : 병합 요청 수락 및 병합
  • GitlabUpdateMRTool : 병합 요청 담당자, 검토자, 제목, 설명 및 레이블 업데이트
  • GitlabCreateMRTool : 담당자 및 검토자를 포함한 새 병합 요청 생성
  • GitlabRawApiTool : 사용자 정의 매개변수로 모든 GitLab API 호출

빠른 시작

지엑스피1

환경 변수

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"}

사용 예

각 도구의 매개변수에 대한 자세한 예는 USAGE.md를 참조하세요.

프로젝트 구조

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

완성

클로드 데스크톱 클라이언트

구성에 추가:

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

대장간

Smithery 플랫폼에서 직접 사용하세요:

smithery add @zephyr-mcp/gitlab

또는 Smithery UI에서 "@zephyr-mcp/gitlab"을 검색하여 작업 공간에 추가하세요.

환경 변수:

  • GITLAB_API_URL : GitLab API의 기본 URL
  • GITLAB_TOKEN : GitLab API 인증을 위한 액세스 토큰

관련 링크

You must be authenticated.

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

MCP가 GitLab을 기반으로 하는 더 많은 GitLab RESTful을 지원합니다. API 도구, 支持项目搜索, 任务管理, 合并请求创建与审核等功能, 帮助开发团队高效协작품.

  1. 특징
    1. 빠른 시작
      1. 환경 변수
        1. 사용 예
          1. 프로젝트 구조
            1. 완성
              1. 클로드 데스크톱 클라이언트
              2. 대장간
            2. 관련 링크

              Related MCP Servers

              • A
                security
                A
                license
                A
                quality
                MCP Server for the GitLab API, enabling project management, file operations, and more.
                Last updated -
                9
                1,630
                44,247
                JavaScript
                MIT License
                • Linux
                • Apple
              • A
                security
                A
                license
                A
                quality
                gitlab mcp
                Last updated -
                13
                983
                75
                JavaScript
                MIT License
                • Linux
                • Apple
              • -
                security
                A
                license
                -
                quality
                GitLabとの連携機能を提供するModel Context Protocol (MCP) サーバーです。GitLabの特定のプロジェクトからパイプラインの失敗情報やマージリクエストへの指摘事項を取得し、AIアシスタントに提供します。
                Last updated -
                Python
                MIT License

              View all related MCP servers

              ID: x6a0een21s