@zereight/mcp-gitlab 2.0.20 → 2.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -247,6 +247,7 @@ stdio_gitlab_mcp_client = MCPClient(
247
247
 
248
248
  ```shell
249
249
  docker run -i --rm \
250
+ -e HOST=0.0.0.0 \
250
251
  -e GITLAB_PERSONAL_ACCESS_TOKEN=your_gitlab_token \
251
252
  -e GITLAB_API_URL="https://gitlab.com/api/v4" \
252
253
  -e GITLAB_READ_ONLY_MODE=true \
@@ -273,6 +274,7 @@ docker run -i --rm \
273
274
 
274
275
  ```shell
275
276
  docker run -i --rm \
277
+ -e HOST=0.0.0.0 \
276
278
  -e GITLAB_PERSONAL_ACCESS_TOKEN=your_gitlab_token \
277
279
  -e GITLAB_API_URL="https://gitlab.com/api/v4" \
278
280
  -e GITLAB_READ_ONLY_MODE=true \
@@ -333,6 +335,7 @@ docker run -i --rm \
333
335
 
334
336
  #### Performance & Security Configuration
335
337
 
338
+ - `HOST`: Server host address. Default: `127.0.0.1` (localhost only). Set to `0.0.0.0` to allow external connections (required for Docker with port forwarding).
336
339
  - `MAX_SESSIONS`: Maximum number of concurrent sessions allowed. Default: `1000`. Valid range: 1-10000. When limit is reached, new connections are rejected with HTTP 503.
337
340
  - `MAX_REQUESTS_PER_MINUTE`: Rate limit per session in requests per minute. Default: `60`. Valid range: 1-1000. Exceeded requests return HTTP 429.
338
341
  - `PORT`: Server port. Default: `3002`. Valid range: 1-65535.
@@ -361,6 +364,7 @@ When using `REMOTE_AUTHORIZATION=true`, the MCP server can support multiple user
361
364
  ```bash
362
365
  # Start server with remote authorization
363
366
  docker run -d \
367
+ -e HOST=0.0.0.0 \
364
368
  -e STREAMABLE_HTTP=true \
365
369
  -e REMOTE_AUTHORIZATION=true \
366
370
  -e GITLAB_API_URL="https://gitlab.com/api/v4" \
package/build/index.js CHANGED
@@ -165,7 +165,7 @@ const STREAMABLE_HTTP = process.env.STREAMABLE_HTTP === "true";
165
165
  const REMOTE_AUTHORIZATION = process.env.REMOTE_AUTHORIZATION === "true";
166
166
  const ENABLE_DYNAMIC_API_URL = process.env.ENABLE_DYNAMIC_API_URL === "true";
167
167
  const SESSION_TIMEOUT_SECONDS = process.env.SESSION_TIMEOUT_SECONDS ? parseInt(process.env.SESSION_TIMEOUT_SECONDS) : 3600;
168
- const HOST = process.env.HOST || "0.0.0.0";
168
+ const HOST = process.env.HOST || "127.0.0.1";
169
169
  const PORT = process.env.PORT || 3002;
170
170
  // Add proxy configuration
171
171
  const HTTP_PROXY = process.env.HTTP_PROXY;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zereight/mcp-gitlab",
3
- "version": "2.0.20",
3
+ "version": "2.0.21",
4
4
  "description": "MCP server for using the GitLab API",
5
5
  "license": "MIT",
6
6
  "author": "zereight",