模型上下文提供服务器

Gitlab MCP服务器是一个为Cursor等MCP客户端提供模型上下文服务的工具,支持本地运行和容器化部署。

  • by beingnishas
  • Python
  • 本地部署
  • 1 星标
  • 更新于
在 GitHub 查看 beingnishas/gitlab-mcp

使用说明

gitlab mcp服务器

Gitlab MCP(ModelContextProvider)服务器


在类似MCP客户端的游标中本地运行

从游标运行此MCP服务器。转到光标设置->工具和集成->添加MCP服务器

{
  "mcpServers": {
      "gitlab-mcp-local": {
       "command": "python",
       "args": ["gitlab_mcp_server.py"],
       "trust": true
     }
  }
}

在当地建设

要使用Podman在本地构建容器映像,请运行:

podman build -t gitlab-mcp-server:latest -f Containerfile .

这将创建一个名为的本地映像 gitlab-mcp-server:latest 您可以使用它来运行服务器。

使用Podman或Docker运行

使用Podman运行的示例配置:

{
  "mcpServers": {
    "gitlab-mcp-server": {
      "command": "podman",
      "args": [
        "run",
        "-i",
        "--rm",
        "--env", "MCP_GITLAB_URL",
        "--env", "MCP_GITLAB_TOKEN",
        "localhost/gitlab-mcp-server:latest"
      ],
    }
  }
}