🎯 GitLab Kanban 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
🚀 入门
📦安装
🔧 配置
使用以下环境变量创建.env
文件:
GITLAB_TOKEN=your_gitlab_token
GITLAB_URL=your_gitlab_url # default: https://gitlab.com
🛠️ 构建
对于使用自动重建的开发:
🔍 调试
由于 MCP 服务器通过 stdio 进行通信,我们建议使用MCP 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"
}
}
}
}
🤝 贡献
- Fork此存储库
- 创建你的功能分支(
git checkout -b feature/amazing-feature
) - 提交您的更改(
git commit -m '✨ feat: Add amazing feature'
) - 推送到分支(
git push origin feature/amazing-feature
) - 创建拉取请求
📄 许可证
该项目已获得 MIT 许可。