@zereight/mcp-gitlab 2.1.25 → 2.1.26

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
@@ -267,8 +267,13 @@ the token to GitLab on behalf of the caller.
267
267
  | `REMOTE_AUTHORIZATION` | ✅ | Set to `true` to enable |
268
268
  | `STREAMABLE_HTTP` | ✅ | Must be `true` |
269
269
  | `ENABLE_DYNAMIC_API_URL` | optional | Allow per-request GitLab URL via `X-GitLab-API-URL` header |
270
+ | `GITLAB_ALLOW_UNAUTHENTICATED_TOOL_DISCOVERY` | optional | Allow unauthenticated `initialize`, `notifications/initialized`, and `tools/list` only (tool calls still require auth) |
270
271
  | `MCP_TRUST_PROXY` | optional | Trust `Forwarded` / `X-Forwarded-*` headers behind a reverse proxy (download URLs, Express `req.ip`, OAuth rate limits) |
271
272
 
273
+ `GITLAB_ALLOW_UNAUTHENTICATED_TOOL_DISCOVERY=true` is intended for MCP gateways
274
+ or admin UIs that need to inspect tool metadata before a user provides a GitLab
275
+ token. Leave it disabled unless the tool list is safe to expose in your deployment.
276
+
272
277
  When `MCP_SERVER_URL` is not set, remote download URLs fall back to the local
273
278
  server address. Set `MCP_TRUST_PROXY=true` only if the server is reachable through a
274
279
  trusted reverse proxy and direct client access to the MCP server is blocked.
package/build/config.js CHANGED
@@ -47,6 +47,7 @@ export const SSE = getConfig("sse", "SSE") === "true";
47
47
  export const STREAMABLE_HTTP = getConfig("streamable-http", "STREAMABLE_HTTP") === "true";
48
48
  export const REMOTE_AUTHORIZATION = getConfig("remote-auth", "REMOTE_AUTHORIZATION") === "true";
49
49
  export const GITLAB_MCP_OAUTH = getConfig("mcp-oauth", "GITLAB_MCP_OAUTH") === "true";
50
+ export const GITLAB_ALLOW_UNAUTHENTICATED_TOOL_DISCOVERY = getConfig("allow-unauthenticated-tool-discovery", "GITLAB_ALLOW_UNAUTHENTICATED_TOOL_DISCOVERY") === "true";
50
51
  export const MCP_TRUST_PROXY = getConfig("mcp-trust-proxy", "MCP_TRUST_PROXY") === "true";
51
52
  // ---------------------------------------------------------------------------
52
53
  // OAuth / MCP OAuth