GitLab看板任务管理服务

一个基于模型上下文协议(MCP)的服务,用于管理GitLab看板上的任务操作,包括任务列表获取、创建、更新、删除和评论添加。

  • by Sunwood-ai-labs
  • TypeScript
  • 本地部署
  • 3 星标
  • 更新于
在 GitHub 查看 Sunwood-ai-labs/gitlab-kanban-mcp-server

使用说明

🎯 GitLab看板MCP服务器

用于管理GitLab看板操作的模型上下文协议服务器。

✨ 特性

🛠️ 可用工具

  • list_tasks -从项目的看板中检索任务列表
  • create_task -在看板板上创建新任务
  • update_task -更新现有任务
  • delete_task -从板中删除任务
  • add_comment -向任务添加注释

🏗️ 项目结构

src/
├── api/
│   └── gitlab.ts      # GitLab API client and methods
├── config/
│   └── gitlab.ts      # GitLab configuration
├── tools/
│   ├── handlers.ts    # Tool handler implementations
│   └── schemas.ts     # Tool schema definitions
└── index.ts          # MCP server main entry point

🚀 入门指南

📦 安装

npm install

🔧 配置

创建一个 .env 包含以下环境变量的文件:

GITLAB_TOKEN=your_gitlab_token
GITLAB_URL=your_gitlab_url  # default: https://gitlab.com

🛠️ Build

npm run build

对于自动重建的开发:

npm run watch

🔍 调试

由于MCP服务器通过stdio进行通信,我们建议使用 MCP检查员:

npm run inspector

📝 用法

临床配置

将以下内容添加到您的 cline_mcp_settings.json:

{
  "mcpServers": {
    "gitlab-kanban-mcp-server": {
      "command": "node",
      "args": ["path/to/gitlab-kanban-mcp-server/build/index.js"],
      "env": {
        "GITLAB_TOKEN": "your_gitlab_token",
        "GITLAB_URL": "your_gitlab_url"
      }
    }
  }
}

🤝 贡献

  1. 分叉此存储库
  2. 创建功能分支(git checkout -b feature/amazing-feature)
  3. 提交您的更改(git commit -m '✨ feat: Add amazing feature')
  4. 推到分支(git push origin feature/amazing-feature)
  5. 创建拉取请求

📄 许可证

该项目根据MIT许可证获得许可。