Refactor GitLab MCP server implementation

- Removed gitlab-index.js and integrated its functionality into index.js.
- Updated server name to "gitlab-mcp-server" and version to "1.1.0".
- Enhanced GitLab API client with methods for creating, merging, retrieving, and closing merge requests.
- Added tools for handling merge requests with detailed input validation using Zod.
- Implemented command-line argument parsing for transport mode (stdio or http) and port configuration.
- Introduced Streamable HTTP transport for remote access and debugging.
- Updated package dependencies to the latest versions.
This commit is contained in:
zhangguoyun committed 2025-12-15 17:28:56 +08:00
1 parent 09d624a464
commit 347096b2e1
5 files changed
+1060 -663

No files matched your search

+10 -4
View File
@@ -1,12 +1,18 @@
{
"name": "gitlab-mcp-server",
"version": "1.0.0",
"version": "1.1.0",
"main": "index.js",
"type": "module",
"bin": {
"gitlab-mcp-server": "./index.js",
"gitlab-mcp": "./index.js"
},
"scripts": {
"start": "node index.js",
"gitlab": "npx @modelcontextprotocol/inspector node gitlab-index.js",
"dev": "npx @modelcontextprotocol/inspector node index.js"
"start:stdio": "node index.js --transport stdio",
"start:http": "node index.js --transport http --port 3000",
"dev": "npx @modelcontextprotocol/inspector node index.js",
"dev:http": "node index.js --transport http --port 3000"
},
"keywords": [
"mcp",
@@ -17,7 +23,7 @@
"license": "ISC",
"description": "A Model Context Protocol server for GitLab operations, primarily for creating and merging merge requests",
"dependencies": {
"@modelcontextprotocol/sdk": "^1.22.0",
"@modelcontextprotocol/sdk": "^1.24.3",
"zod": "^3.25.76"
},
"devDependencies": {