github zereight/gitlab-mcp v3.1.1

50 minutes ago

Changes in v3.1.1

Patch release on top of v3.1.0. No tools were added, removed, or renamed, no input parameter became required, and no environment variable or CLI flag was added. The tools/list schemas are identical to v3.1.0, except for the upload_markdown file_path description.

Fixed

  • list_issue_links now follows GITLAB_MCP_LIST_SUMMARY_DEFAULT like the other list tools (#1107). The setting is still off by default, so default replies are unchanged. With it on, an omitted summary returns a summary that keeps issue_link_id and link_type. Pass summary: false for the full GitLab JSON.
  • Merge request responses keep source_project_id and target_project_id, including through JMESPath projections, so clients can tell same-project and fork merge requests apart (#1126, thanks @mandreev-dev). The values are strings; missing and null IDs stay missing and null.
  • upload_markdown tells the model where file_path is resolved: relative to the server's working directory, with absolute paths and .. rejected. Path errors (absolute path, .., symlink, file not found) now come back as tool results with a Next: hint instead of internal errors. An absolute path is now reported as "absolute paths are not allowed", including for the download tools' local_path (#1081, thanks @igorsaevets).
  • A 404 Project Not Found now tells the model to check project_id and that the token can read the project, instead of asking for the resource iid (#1106).

Security

  • Snippet tools called without project_id now apply the managed masking policy bound to the server's default project (GITLAB_PROJECT_ID, or the single allowed project). Before, that policy was skipped, so its keywords could reach the client unmasked, or the call failed with "does not cover this project-less tool" (#1122, #1112). If your policy file uses unboundProjectBehavior: "builtin" and the default project is not bound to a policy group, such snippet calls now fail instead of returning unmasked text; bind the project in the policy file.
  • Cached remote-authorization session credentials are compared in constant time with timingSafeEqual in Streamable HTTP mode (#1125, thanks @Fangwenky).
  • Updated the locked cross-spawn to 7.1.2, which fixes a command injection on Windows when spawning batch files (GHSA-ghv9-86vm-4v8m) (#1130). Only the lockfile changed, so it reaches the Docker image and source checkouts; npm install users resolve dependencies fresh.

Documentation

  • The help tool, the bundled skill, and the docs now recommend wait_for_pipeline / wait_for_job over polling list tools, and the opt-in GITLAB_MCP_LIST_SUMMARY_DEFAULT=true and GITLAB_MCP_COMPACT_TOOLS settings for smaller replies. Both settings stay off by default (#1103).

Internal (no behavior change)

  • Continued the index.ts split (#516): release, orbit, vulnerability, and code search tools, the permission-mode gate, and startup validation moved into their own modules (#1104, #1105, #1109, #1110, #1111, #1113). Import cycles were broken and checked in CI (#1108), and default-project masking scope is now a per-tool declaration (#1112). Tool names, schemas, and messages are unchanged.
  • Live tests back off on GitLab 429 responses (#1102, #1123). Dependency and CI updates: express-rate-limit 8.7.5 and pkce-challenge 5.0.2 (lockfile), Docker base image digest, and pinned cosign-installer, scorecard-action, and codeql-action versions (#1116 to #1120, #1128, #1129, #1131, #1132).

Full changelog: v3.1.0...v3.1.1

Don't miss a new gitlab-mcp release

NewReleases is sending notifications on new releases.